Home
Wednesday, May 24, 2017
4:39:21 AM
Users online: 0   You are here >> Home > 3D Design

Forums | 3D Design Forums search
Forum FAQ
   
  1  
How to render/simulate lens projections? (3D)
Athiril 
22/8/08 9:36:08 PM
Titan

http://i37.tinypic.com/1rw2mt.jpg

There ive modelled a camera with a 5 element lens, I want to project the image of the landscape through the lens and onto a plane inside the camera (which is equivalent of a piece of film or sensor - not the plane you can see sticking out, thats the aperture plate).

Ive got the glass set up with it's refractive index and everything.

What kind of trickery do I need? A ray tracing renderer?

I can export the models and import them into Blender if I need?

The image should also project upside down onto the plane like a real lens, as the model I made is a real lens design.

-----
North Coast NSW Photo Community Forums
http://photodan.com.au/forums/

superfireydave 
22/8/08 10:10:56 PM
Titan

I'm not sure you can do this part: "I want to project the image of the landscape through the lens and onto a plane inside the camera (which is equivalent of a piece of film or sensor - not the plane you can see sticking out, thats the aperture plate)." (edit: Unless you make the surface of the plane completely reflective that is)

You can certainly render the image through the lens and should be able to get it correct through raytracing, and then use that as a texture on the plane to give the effect that it's being projected there?


Edited by superfireydave: 22/8/2008 10:11:47 PM

-----
Mreow?
http://www.atomicmpc.com.au/forums.asp?s=2&c=9&t=17306

Athiril 
22/8/08 10:12:53 PM
Titan

ah, ill try making it reflective.

-----
North Coast NSW Photo Community Forums
http://photodan.com.au/forums/

Athiril 
22/8/08 10:21:12 PM
Titan

Cool got it sorted:
http://i35.tinypic.com/11u98gz.jpg

now to get depth of field working..

-----
North Coast NSW Photo Community Forums
http://photodan.com.au/forums/

superfireydave 
22/8/08 11:28:54 PM
Titan

Not sure if you can do refraction etc in Blender.
But it's a raytrace thing, so if Blender has raytrace capability it should be able to do it.

-----
Mreow?
http://www.atomicmpc.com.au/forums.asp?s=2&c=9&t=17306

Athiril 
22/8/08 11:48:09 PM
Titan

yeah i can only get the aperture to mask the image, so its not a real physics simulation.

-----
North Coast NSW Photo Community Forums
http://photodan.com.au/forums/

superfireydave 
23/8/08 1:04:59 PM
Titan

Are there options for material refraction indexes? etc?
edit: I'll see if it's possible in max, which is what I use.
And again, I'm not sure if it's possible for a reflected image to have a DOF. It might be, but most people I know would render the image, then put it on the plane like I originally suggested =P~


Edited by superfireydave: 23/8/2008 1:07:14 PM

-----
Mreow?
http://www.atomicmpc.com.au/forums.asp?s=2&c=9&t=17306

Athiril 
23/8/08 11:47:59 PM
Titan

I might need to use a real program like maya or blender... it should automatically give a depth of field if correcting tracing the rays, ie: a proper simulation as thats what happens in the real world..

here's what i got:

http://i37.tinypic.com/10p38ro.jpg


here is a obj of the lens elements
http://www.photodan.com.au/lens.rar


edit: yeah glass RI is 1.5 on the elements in my c4d project


Edited by Athiril: 23/8/2008 11:49:55 PM

-----
North Coast NSW Photo Community Forums
http://photodan.com.au/forums/
Quote by gummybear
hrm yes, where to find a girl.......



superfireydave 
24/8/08 12:10:51 AM
Titan

" it should automatically give a depth of field if correcting tracing the rays" Renderers don't work that way ;)
You need to add a DoF effect for it to work.

But yes, it's possible to get a rendered view of what you're imagining the reflection to be in Max (the DoF is calculated at render time, and I couldn't get it working on the reflection but I didn't expect that to work at all anyway) and should be in Maya. Not sure about blender tho, and I'm almost positive you wont be able to get a DoF effect in the reflected plane although I might be wrong.

-----
Mreow?
http://www.atomicmpc.com.au/forums.asp?s=2&c=9&t=17306

Athiril 
24/8/08 12:26:17 AM
Titan

If they are ray tracing correctly and not just bs'ing it, then the depth of field should be automatic (as well as the aperture not just masking the image to the shape of the aperture!)

And yes I understand youd normally set a scene camera up with dof enabled in the render settings, but proper ray tracing should be able to handle optical simulations.

-----
North Coast NSW Photo Community Forums
http://photodan.com.au/forums/
Quote by gummybear
hrm yes, where to find a girl.......



superfireydave 
24/8/08 12:33:38 AM
Titan

Why is it important that the plane have the image?
Seriously, you just can't render the image using a camera and the attach the render to the plane as a texture?

-----
Mreow?
http://www.atomicmpc.com.au/forums.asp?s=2&c=9&t=17306

Athiril 
24/8/08 12:38:20 AM
Titan

because I want to physically model lenses in 3D, and no, i dont want optical simulation software :P

im not interested in making animations with depth of field, im interested in the academic and research side of it.

C4D is supposed to ray trace, im not seeing any ray tracing happening, only faking.

-----
North Coast NSW Photo Community Forums
http://photodan.com.au/forums/
Quote by gummybear
hrm yes, where to find a girl.......



  1  
Forums | 3D Design