- 7
- 22 450
HowToPrint
Germany
Приєднався 16 січ 2020
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
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.
Thanks a lot!! :) It is very useful!
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
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.
@@howtoprint6002 Can't wait!!!
Man!!!! I have dowloaded Opticore a while ago! These updates are fantastic!! Thank you so much!! 😘😘😘😘😘😘😘😘
Awesome addon and tutorial!
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
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.
@ 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
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.
Great update!!!! Can't wait to tinker with the zmax imports!
Amigo...lo he probado en el pasado, pero esta actualización es enorme...muchas Gracias!!!!!!!!!!!!!!!!!!!!🙂🙂🙂🙂
Incredible work
Is there any way for importing cemented doublets?
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.
@@howtoprint6002 I was testing with Thorlabs lenses actually - the lens gets imported as single body despite showing correctly in zemax, hence my question.
@@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?
@@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.
By the way, it's nice to get feedback on this project from a user with a background in optics! Keep it coming ;)
Do you have plans to implement Pentaprisms, or other optical prisms?
I actually tried beamsplitter with variable ratios but did not manage to get good results yet.
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.
@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.
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.
@@ravenpotter5131 I did try pentaprism, worked on first try. If you want the PLY file just drop me a message.
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.
production on this video made me double take the amount of views. deserves more recognition
amazing work. looking forward to the next parts
Very Nice
That is very impressive ! That could help me to create more elaborate kinetic/optical art pieces ^_^
NICE! THX! Just rediscovered the add-on and your work last week!
cheers bossman
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.
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?
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.
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.
If the glue is doing the job, why do you have a brim?
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.
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?
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.
@@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?
@@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.
@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.
@@JoshuaMKerrI've just sent you an email.
What is the Menu when you first bring the model in I would like to access that again. Not that great a Blender.
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.
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)
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.
Great Video Dude Thank you for this video. I was wondering if i should use this material.
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!
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.
Yes, it should work. What does the error message say?
@@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.
@@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
@@howtoprint6002 Ah, thanks! That was easy :) thanks for making this add-on. I look forward to playing around with it + LuxCore.
Is the animation a real physics composed by rigid bodies and collision?
No, for these few objects I just typed some angle keyframes by hand
are you german?
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?
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.
The bearings holding up till this day?
Technically yes, though more on account of not being used much rather than being worn out ;)
Thank you so much, I’m trying to make a working pin hole camera in blender, and this was a life saver
This is really cool!!
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?
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.
Thank you very much. I'm going to make a realistic scope lenses, so your video helped much
Hi, I'm currently trying I'm curious to know if you succeeded 😊
@@djo6666 hi there. I watched this tutor to model scope to order, but my client refused such complexity, so i gave it up
@@phonkstalker498 oh okay🤘 that's for my portfolio so i need to achieve it 😀
Hello how to get the laser beam
The laser is a part of the LuxCoreRender Engine. There, it is an option to the 'Area' light source
@@letskirschjoghurt7359 how can we download that engine
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
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?
Nice. Waiting for more videos
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
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.
@@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 🤔
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)
Hi, I added a link to the blend-file in the video description.
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.
Any chance for cycldrical lens implementation?
Cylindrical lenses are already available under the "Square Lens" object
@@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
Nice ! Could you explain how to create the laser beam source ? Thanks !
Hi, hope this will still help after a month... In LuxCore, Laser is hidden as an option to the "Area" type light source
Awesome. Any chance on getting the .stl models of the gears & holders?
Amazing work :), If I had known about this before, I would have saved a lot of work.
This material is really interesting!
This was amazing! Are you still going to publish other parts?
I realize it is quite randomly asking but do anyone know of a good place to watch new tv shows online ?
@Krew Crosby Flixportal :)
@Aydin Hudson Thanks, I signed up and it seems to work =) I appreciate it!!
@Krew Crosby Happy to help xD
Love me some igus parts. Great video sir.