HowToPrint
HowToPrint
  • 7
  • 22 450
OptiCore 2024 - Part2: Exploring Lens Designs
Exploring different lens designs in Blender using the OptiCore Addon
Download OptiCore here:
github.com/CodeFHD/OptiCore
Sources of lens-files cited in the video:
www.lens-designs.com/
www.edmundoptics.com/
www.thorlabs.de/
Refractive Index Database:
refractiveindex.info/
00:00 Introduction
06:17 Sources for zmx-files
10:57 Example 1: Wide-angle
21:52 Example 2: Double-Gauss
26:22 Example 3: Fisheye
37:03 Example 4: Smartphone lenses
49:57 Example 5: Cassegrain telescope
56:13 Glass catalogs and missing data
Переглядів: 636

Відео

OptiCore 2024 - Part1: Introduction
Переглядів 1,1 тис.Місяць тому
Updated Introduction to the OptiCore addon for Blender. Download at: github.com/CodeFHD/OptiCore 00:00 Intro 01:28 Installation 02:45 Lens 11:30 Square Lens 12:50 Mirror 14:20 Retroreflector 15:30 Siemens 16:10 zmx-import 18:48 Optomechanics
3D-printer glass bed coating with gluestick
Переглядів 668Рік тому
This is how I coat my 3D-printers bed with gluestick, water and a brush. Link to the model on Thingiverse on which I based the phone stand shown at the end as a test print: www.thingiverse.com/thing:1464340
OptiCore + LuxCore Lens System Tutorial
Переглядів 8 тис.4 роки тому
This is a first tutorial to show how to set up a working lens system model in Blender, based on a triplet lens design. Rendered using Blender and LuxCoreRender www.blender.org/ luxcorerender.org/ The lens model is taken from the free Qioptiq Lens Library www.qioptiq-shop.com/en/Optics-Software/Winlens-Optical-Design-Software/Free-Lens-Library/ .blend-file used to create this video: drive.google...
OptiCore Blender-Addon Introduction
Переглядів 7 тис.4 роки тому
This is an introduction to the OptiCore addon for Blender. You can find and Download the code on GitHub: github.com/CodeFHD/OptiCore #OptiCore #Blender #LuxCoreRender #Optics
Infinity Machine Part 1: 3D-Printed Gears
Переглядів 3614 роки тому
This is the first of two parts of me building an infinity machine, focussing on some design aspects. Especially, how i designed my 3D-printed "bearing-less" shaft. Let me know in the comments how you like this video. I'm always keen on feedback! Background Muisc Credits: Funkorama by Kevin MacLeod Link: incompetech.filmmusic.io/song/3788-funkorama License: creativecommons.org/licenses/by/4.0/
3D Printing Igus Iglidur I150
Переглядів 4,4 тис.4 роки тому
My First Video on this channel, and also my first (proper) attempt of printing with Iglidur I150 from Igus. I've had great results so far with this filament, which produced very smooth surfaces and also accurate tolerances for the parts shown in teh video.

КОМЕНТАРІ

  • @szabolcsturnar4651
    @szabolcsturnar4651 День тому

    Thanks a lot!! :) It is very useful!

  • @dinocroon6287
    @dinocroon6287 4 дні тому

    Thank you for Opticore! I have a question! If we use opticore to make virtual cameras in blender, does the size of the lenses affect the result? Also when using the camera as the reception plan of the reflected image, when we scale the camera to a certain size, it seems that its settings go crazy and difficut to set.. do you have any idea on how to do? Thank you again

    • @howtoprint6002
      @howtoprint6002 День тому

      Thank you for the feedback! I plan to publish the next tutorials in about a week, which will cover the principle setup in Cycles and LuxCoreRender. I hope those will cover your second question. Regarding the size of lenses, they have to be to scale with the scene you are setting up. If the lenses including detector/camera setup are scaled by some factor, you effectively scaled the focal length, but not the field of view and f-number. The result would be that the depth of focus is wrong. Note that currently OptiCore assumes units of millimeters, while Blender natively uses meters, so you might need to scale by a factor of 1000 - depending on how you modeled your scene.

    • @dinocroon6287
      @dinocroon6287 День тому

      @@howtoprint6002 Can't wait!!!

  • @dinocroon6287
    @dinocroon6287 5 днів тому

    Man!!!! I have dowloaded Opticore a while ago! These updates are fantastic!! Thank you so much!! 😘😘😘😘😘😘😘😘

  • @milkogeorgiev1939
    @milkogeorgiev1939 11 днів тому

    Awesome addon and tutorial!

  • @JackToth
    @JackToth 19 днів тому

    Have you found a way around the limitations of floating point error for movement of lens stacks and rendering of very long focal length systems? Seems keeping them static at (0,0,0) is the best/only way to dodge those issues

    • @howtoprint6002
      @howtoprint6002 16 днів тому

      Can't report on findings yet. More tests are planned for Video number 3. A first one I tried already was surprisingly stable, compared to what I remember from my tests with LuxCore a long while ago. However, I'm curious how this may vary for different lens designs. Ultimately, I don't thinkone can do much more, unless you rewrite Blender and any Renderengine to work entierly in 64bit float. Ray portals sound like a good solution for many applications.

    • @JackToth
      @JackToth 16 днів тому

      @ thats what I was thiniking with the bit depth, my workaround was to 'RayPortal' the rays back to a static cam at the origin. But Camera Motion blur becomes dead. Hoping to get you in contact with someones alternative method thats releasing soon. Its very well built. I'll hit u up on instagram

    • @howtoprint6002
      @howtoprint6002 15 днів тому

      Ah I see, valid point about motion blur. Would be interesting to get in contact about alternative methods. I also have some Idea how something like this can be done efficiently, but again that requires implementation in the render engine. Instagram won't be a good channel for me, though. You can find contact information on the github page.

  • @JackToth
    @JackToth 19 днів тому

    Great update!!!! Can't wait to tinker with the zmax imports!

  • @alvaroplazafebres
    @alvaroplazafebres 23 дні тому

    Amigo...lo he probado en el pasado, pero esta actualización es enorme...muchas Gracias!!!!!!!!!!!!!!!!!!!!🙂🙂🙂🙂

  • @acidsilly
    @acidsilly 24 дні тому

    Incredible work

  • @Konecny_M
    @Konecny_M 25 днів тому

    Is there any way for importing cemented doublets?

    • @howtoprint6002
      @howtoprint6002 25 днів тому

      The zmx-import handles cemented lenses just fine. Some lens groups in the examples I show are cemented. You can find example files at Thorlabs or Edmund optics.

    • @Konecny_M
      @Konecny_M 25 днів тому

      @@howtoprint6002 I was testing with Thorlabs lenses actually - the lens gets imported as single body despite showing correctly in zemax, hence my question.

    • @Konecny_M
      @Konecny_M 25 днів тому

      ​@@howtoprint6002 Using Thorlabs AC254-030-A to replicate my problem in new project, getting the same result. Single lens body gets imported, no materials assigned. Yet opening it in zemax shows the expected structure. Is this intentional approximation or bug?

    • @howtoprint6002
      @howtoprint6002 24 дні тому

      @@Konecny_M I just downloaded and tested that Thorlabs file. It works exactly as expected for me, including sequential raytrace. OptiCore creates a single body for cemented lenses, the middle surface is inside, you should see it in wireframe view. I do not currently have any access to Zemax to cross check how it is displayed there. It is consistent with WinLens, also for the raytrace when matching the stop size. If you still feel something is wrong, it would be helpful to have some pictures, you could open an isue on Github for example. About the materials, it only loads the refractive index for the internal "Add ray fan" feature. Materials for Cycles etc. are not created automatically.

    • @howtoprint6002
      @howtoprint6002 24 дні тому

      By the way, it's nice to get feedback on this project from a user with a background in optics! Keep it coming ;)

  • @ravenpotter5131
    @ravenpotter5131 27 днів тому

    Do you have plans to implement Pentaprisms, or other optical prisms?

    • @Konecny_M
      @Konecny_M 27 днів тому

      I actually tried beamsplitter with variable ratios but did not manage to get good results yet.

    • @howtoprint6002
      @howtoprint6002 27 днів тому

      I did have Pentaprisms in mind before. According to my local repo I last worked on it 3 years ago 😅 It was not on my priority list, but if there is some interest, I will bump that.

    • @ravenpotter5131
      @ravenpotter5131 26 днів тому

      @howtoprint6002 I was trying to make a ww2 optical rangefinder, it requires pentaprisms so they'd be helpful! But I'm probably a minority, I 3d model random things for fun.

    • @howtoprint6002
      @howtoprint6002 26 днів тому

      There is another option for you: You can find prisms at those off-the-shelf manufacturers I mentioned in the video. Similar to the zmx-files for optics, they offer CAD-files for most parts. Typical formats like STEP can't be opened directly by Blender, but there are freeware options like FreeCAD to convert them to STL.

    • @Konecny_M
      @Konecny_M 25 днів тому

      ​@@ravenpotter5131 I did try pentaprism, worked on first try. If you want the PLY file just drop me a message.

  • @optiondrone5468
    @optiondrone5468 Місяць тому

    Looks like an excellent tool, thanks for sharing, looking forward to your videos on how to use this tool for general optical simulation and also possibly how to use this tool for custom lens design.

  • @xilm22
    @xilm22 Місяць тому

    production on this video made me double take the amount of views. deserves more recognition

  • @yohaeshwar
    @yohaeshwar Місяць тому

    amazing work. looking forward to the next parts

  • @moritzmoritz1314
    @moritzmoritz1314 Місяць тому

    Very Nice

  • @suburbanimal
    @suburbanimal Місяць тому

    That is very impressive ! That could help me to create more elaborate kinetic/optical art pieces ^_^

  • @photo_ALLRAM
    @photo_ALLRAM Місяць тому

    NICE! THX! Just rediscovered the add-on and your work last week!

  • @ReidFlett-x8p
    @ReidFlett-x8p 2 місяці тому

    cheers bossman

  • @ravenpotter5131
    @ravenpotter5131 4 місяці тому

    This is amazing! Wish i knew about it before trying to hand plot parabolic points...... btw, as anyone could guess, no, i wasn't successful.

  • @haleynghweeping5895
    @haleynghweeping5895 7 місяців тому

    Thanks for the helpful tutorial. May I ask if I want to use this as to render an object (e.g. monkey head) instead of a HDRI, how do I go about doing it?

  • @JoshuaMKerr
    @JoshuaMKerr 9 місяців тому

    Also are there any other places where you can find lens files like the ones in the library? Sorry to bombard, but your video is literally the only useful one I can find on this subject.

    • @howtoprint6002
      @howtoprint6002 9 місяців тому

      There are places you can find lens design files, e.g. www.lens-designs.com/ is one I know of. However these are not Blender files but e.g. Zemax files, so you will have to implement them yourself. Please also observe that the rendering engines for Blender are limited in regards to cemented lenses or correct chromatic aberrations of the glass materials, so you may find that complex lenses don't work well.

  • @danielleriche1044
    @danielleriche1044 9 місяців тому

    If the glue is doing the job, why do you have a brim?

    • @howtoprint6002
      @howtoprint6002 9 місяців тому

      Good question! Maybe it is good to say the combination works well for me and my purposes. Without the brim, in the past, I still had some warping of the first layer in the corners due to the material shrinkage. With the brim, this was effectively resolved. At the same time it is not that much effort to remove, I had more trouble getting rafts off easily in the past if settings are not correct. Therefore, I have been doing it like this for some time now. I should add, I have also not really tried other combinations since.

  • @JoshuaMKerr
    @JoshuaMKerr 9 місяців тому

    While I know it is not advised. Is it still possible to do this with a perspective camera? What are the possible issues with doing it that way?

    • @howtoprint6002
      @howtoprint6002 9 місяців тому

      The main reason for using the Ortho camera is to get the linear view of the sensor, as presented here. Unless I miss something, from the raytracing/performance point of view, the persepctive camera is not different and will work jsut as well.

    • @JoshuaMKerr
      @JoshuaMKerr 9 місяців тому

      @@howtoprint6002 This is going to sound very odd but what if rather than pointing a perspective camera at the 'sensor plane' you shoot straight through the lenses. I'm working on a project that is intending to use virtual lenses to get more interesting renderings. Would doing it this way essentially double up the focal length of the lens?

    • @howtoprint6002
      @howtoprint6002 9 місяців тому

      @@JoshuaMKerr You can do it and you will see something (as I am sure you have tried already when playing around), but it is not going to be the same thing. The reason is the mapping of rays that are being traced to the pixels of the final output image. The standard perspective cameras (without depth of field option) are point sources, i.e. all rays originate from one point and are mapped to the pixels according to direction. With the depth of field option, rays are distributed over different origin locations (e.g. a circular aperture), but still mapped to pixels by direction. For a sensor, it would be that output pixels are mapped by origin location, summing rays from different directions. i.e. the other way round from perspective + depth of field. The orthographic camera does map by location, but without the summing over direction aspect.

    • @JoshuaMKerr
      @JoshuaMKerr 9 місяців тому

      @howtoprint6002 Interesting, thanks for all of the info. Do you think it would be possible to have a chat with you at some point, perhaps over zoom or email. It would be good to pick your brain.

    • @howtoprint6002
      @howtoprint6002 8 місяців тому

      @@JoshuaMKerrI've just sent you an email.

  • @josephshaff5194
    @josephshaff5194 9 місяців тому

    What is the Menu when you first bring the model in I would like to access that again. Not that great a Blender.

    • @howtoprint6002
      @howtoprint6002 9 місяців тому

      Thaks for your long and detailed comments! Regarding this question, the menu unfortunately can't be accessed again after the model is created. This is standard Blender behavior in that regard, as a consequence of it being vertex and not parametric based modelling. because you can then edit any vertex in any way, this would break the geometry away from some mathematical model, and storing the parameters makes little sense. There are already requests to implement the ability to change the lenses afterwards, but it would need some custom implementation, and I did not have the time so far to dive into this. But it is not forgotten.

  • @josephshaff5194
    @josephshaff5194 9 місяців тому

    For the Standard Optics Table / Board the Holes follow Industry Standard Fastener Size of either 1/4 in. Threaded in English Units or 6.0 mm Metric Threaded Fasteners. Now that number is the Nominal Diameter of the hole or Fastener and is what it should be modeled at. Period. I say so we are all modeling things to standards. That is some nice work there ! E-M Drafter / Designer 13 yrs. w/ CAD Physics Student (off cycle)

  • @josephshaff5194
    @josephshaff5194 9 місяців тому

    Hi, The general Rule in 3D CAD Modeling in Professional Software regarding Screw Threads is this: We do not model them because they eat up horrendous amounts of memory which we need. When there is a Cosmetic Threaded Feature command as in SolidWorks or other software we use that. If fake threaded feature does not exist in the software then we leave it as a hole. Another way I've seen it done is there is a hole of Nominal Size and then a dashed circle of thread size at the face; that way it is understood by all that it is a threaded hole or bolt. And the size can be acquired f/ the model w/out even asking, which I thought was pretty cool! Now not everyone in industry has adhered to this standard but that is best practices. Otherwise as on your part you'll have a grid of holes each with a threaded feature and it will try to render them all. Yeah ! Now in industry the standard threaded hole is indicated by a double dashed or hidden line on drawings. The threads are not drawn unless and this is the exception the threads are really LARGE (lol). Even then you can draw like a few on each end and put a phantom line connecting them to avoid drawing however many threads are repeated over the length.

  • @MechThumbs
    @MechThumbs 10 місяців тому

    Great Video Dude Thank you for this video. I was wondering if i should use this material.

  • @gopalshah
    @gopalshah 10 місяців тому

    Hi, now that I'm up and running I am trying the tutorial -- what is the reason to add interior and world volumes vs just using the IOR of the glass material? Is IOR of the glass material only for the surface of the material? But interior volume takes into account the glass 'inside' the lens? What about world volume then? Air? Thanks!

  • @gopalshah
    @gopalshah 10 місяців тому

    Is this still supported? I tried downloading it and couldn't get it to load in Blender 4, 3.6 or 2.93. Traceback error in the preferences add-ons menu.

    • @letskirschjoghurt7359
      @letskirschjoghurt7359 10 місяців тому

      Yes, it should work. What does the error message say?

    • @gopalshah
      @gopalshah 10 місяців тому

      @@letskirschjoghurt7359 ua-cam.com/video/3vJ9WZXZW2k/v-deo.html I made a short video showing what's happening. Error happens when I try to enable it in preferences. I screen-recording this on my Mac, but I'm getting the same error on PC.

    • @howtoprint6002
      @howtoprint6002 10 місяців тому

      @@gopalshah Good idea posting a video, that makes it very clear! Indeed, this 1.0 release version I made some time ago is known to cause this issue. You can better download the addon as the "latest" package. See this issue on GitHub for details: github.com/CodeFHD/OptiCore/issues/17

    • @gopalshah
      @gopalshah 10 місяців тому

      @@howtoprint6002 Ah, thanks! That was easy :) thanks for making this add-on. I look forward to playing around with it + LuxCore.

  • @blower05
    @blower05 Рік тому

    Is the animation a real physics composed by rigid bodies and collision?

    • @howtoprint6002
      @howtoprint6002 Рік тому

      No, for these few objects I just typed some angle keyframes by hand

  • @simonw.1223
    @simonw.1223 Рік тому

    are you german?

  • @jamaicster
    @jamaicster Рік тому

    Can we make a rainbow effect when light passes through a prism with this addon? For example in cycles with nishita sky and sun or any other light source?

    • @howtoprint6002
      @howtoprint6002 Рік тому

      Rainbow effects are not a feature of this addon, but of a Render engine such as Cycles or LuxCoreRender. The keyword here is spectral rendering, or dispersion. LuxCore does support it with its glass material. For cycles, AFAIK it is not yet available but comming. OptiCore only has the purpose to efficiently generate the geometry of optical elements. Not material or light properties.

  • @sto2779
    @sto2779 Рік тому

    The bearings holding up till this day?

    • @howtoprint6002
      @howtoprint6002 Рік тому

      Technically yes, though more on account of not being used much rather than being worn out ;)

  • @enoobdude4693
    @enoobdude4693 Рік тому

    Thank you so much, I’m trying to make a working pin hole camera in blender, and this was a life saver

  • @bean_mhm
    @bean_mhm Рік тому

    This is really cool!!

  • @jigneshbokade8037
    @jigneshbokade8037 Рік тому

    Thank You so much for this valuable add on. I am beginner and starting learning of blender. from last 2 day i had been trying to create spherical mirror effect but i could not do it. finally I found your video So heartly thank you for this. Please give me suggestions how can i start my journey?

  • @tobiashagstrom4168
    @tobiashagstrom4168 Рік тому

    I pretty much can't follow along with this on Blender 3.0. LuxCore is apparently not for this version, or something. The material nodes I get presented with are different from what you get. Etc.

  • @phonkstalker498
    @phonkstalker498 Рік тому

    Thank you very much. I'm going to make a realistic scope lenses, so your video helped much

    • @djo6666
      @djo6666 4 місяці тому

      Hi, I'm currently trying I'm curious to know if you succeeded 😊

    • @phonkstalker498
      @phonkstalker498 4 місяці тому

      @@djo6666 hi there. I watched this tutor to model scope to order, but my client refused such complexity, so i gave it up

    • @djo6666
      @djo6666 4 місяці тому

      @@phonkstalker498 oh okay🤘 that's for my portfolio so i need to achieve it 😀

  • @tharindurajapaksha4322
    @tharindurajapaksha4322 Рік тому

    Hello how to get the laser beam

    • @letskirschjoghurt7359
      @letskirschjoghurt7359 Рік тому

      The laser is a part of the LuxCoreRender Engine. There, it is an option to the 'Area' light source

    • @tharindurajapaksha4322
      @tharindurajapaksha4322 Рік тому

      @@letskirschjoghurt7359 how can we download that engine

  • @Adeloye1000
    @Adeloye1000 2 роки тому

    Hi, kind of an emergency but how did you add the Optque lenses to the mesh library for use here? Really stuck on that step

    • @letskirschjoghurt7359
      @letskirschjoghurt7359 2 роки тому

      Hi. You are talking about how to install an addon in Blender? See e.g. this tutorial: twominutetuts.com/tutorial/installing-add-ons/ The zip file with the addon you have to download from the opticore page on GitHub. If this doesn't help, can you specify more specifically?

  • @helloansuman
    @helloansuman 2 роки тому

    Nice. Waiting for more videos

  • @x_jaydn
    @x_jaydn 2 роки тому

    Super informative! I'm subbing in hopes that you'll follow up with more content in the future! 😎 Are you employed as a lens engineer or something? 🤔 You're incredibly knowledgeable

    • @howtoprint6002
      @howtoprint6002 2 роки тому

      Thanks for the sub :) I've finally have some more time again so I started to prepare for new content ;) I'm not a lens engineer, but working in the field of optics.

    • @x_jaydn
      @x_jaydn 2 роки тому

      @@howtoprint6002 Looking forward to it!~ It would be cool to know the journey of how you got there as well. I'm currently at a point in life where I'm wondering if I should go back to school for a second undergraduate degree, but, instead of in Biomedical Science, this time in Engineering 🤔

  • @boutignylaurent9124
    @boutignylaurent9124 3 роки тому

    Really cool tutorial ! I've been looking for something like this for a while now, thank you ! Would be willing to share your blender project as example ? I followed your instructions but got slighlty different result (not sure why)

    • @howtoprint6002
      @howtoprint6002 2 роки тому

      Hi, I added a link to the blend-file in the video description.

  • @donb4138
    @donb4138 3 роки тому

    This material is awesome for bearings and gear for your 3D printer. The life is very long as well, but cannot be used in and enclosed heated printer.

  • @JackToth
    @JackToth 3 роки тому

    Any chance for cycldrical lens implementation?

    • @howtoprint6002
      @howtoprint6002 3 роки тому

      Cylindrical lenses are already available under the "Square Lens" object

    • @JackToth
      @JackToth 2 роки тому

      @@howtoprint6002 Oh i see! i ended up just making my own with some circles extruded upward, sorry i am just seeing this response now! Great news ! i got an anamorphic lensing system working in blender, you should check it out! I used your program to generate two spherical lenses for a variable diopter set. I hope that is alright with you. ua-cam.com/video/F2cfuNXPfFo/v-deo.html

  • @damieneschimese6309
    @damieneschimese6309 3 роки тому

    Nice ! Could you explain how to create the laser beam source ? Thanks !

    • @howtoprint6002
      @howtoprint6002 3 роки тому

      Hi, hope this will still help after a month... In LuxCore, Laser is hidden as an option to the "Area" type light source

  • @arschrakete
    @arschrakete 3 роки тому

    Awesome. Any chance on getting the .stl models of the gears & holders?

  • @SimulatingPhysics
    @SimulatingPhysics 3 роки тому

    Amazing work :), If I had known about this before, I would have saved a lot of work.

  • @Nobody-Nowhere
    @Nobody-Nowhere 3 роки тому

    This material is really interesting!

  • @AstradTheCynic
    @AstradTheCynic 3 роки тому

    This was amazing! Are you still going to publish other parts?

    • @krewcrosby3289
      @krewcrosby3289 3 роки тому

      I realize it is quite randomly asking but do anyone know of a good place to watch new tv shows online ?

    • @aydinhudson2280
      @aydinhudson2280 3 роки тому

      @Krew Crosby Flixportal :)

    • @krewcrosby3289
      @krewcrosby3289 3 роки тому

      @Aydin Hudson Thanks, I signed up and it seems to work =) I appreciate it!!

    • @aydinhudson2280
      @aydinhudson2280 3 роки тому

      @Krew Crosby Happy to help xD

  • @derrick_builds
    @derrick_builds 3 роки тому

    Love me some igus parts. Great video sir.