Another lens test
-
- Posts: 517
- Joined: Sun Mar 04, 2007 6:20 am
- Location: Stuttgart, Germany
-
- Posts: 1828
- Joined: Mon Sep 04, 2006 3:33 pm
-
- Posts: 1828
- Joined: Mon Sep 04, 2006 3:33 pm
I'm currently testing the lens model and I can't get it to focus no mather what i do. Any more tips ryjo ?
If the object is closer to the lens, then i have to move the white plane closer to Indigo camera? I went almost all the way to indigo cam, but no changes in output image.
Also, what's that big tube thing that covers all objects? Is that necessary? I'm only using black box, lenses and white plane. Do i miss something? What's that huge tube for?
[edit]:
Ok. I got it focused, but the rendering is not from model i have the lens pointed to. It is focused to the background and no sign of my models. That is really strange, cause my models are right infront of the lens. Help!!!
..Eh.. this is real fun (with real lens)
Anyway.. i get that this is all trial and error, but maybe you have some tips ryjo?
If the object is closer to the lens, then i have to move the white plane closer to Indigo camera? I went almost all the way to indigo cam, but no changes in output image.
Also, what's that big tube thing that covers all objects? Is that necessary? I'm only using black box, lenses and white plane. Do i miss something? What's that huge tube for?
[edit]:
Ok. I got it focused, but the rendering is not from model i have the lens pointed to. It is focused to the background and no sign of my models. That is really strange, cause my models are right infront of the lens. Help!!!

Anyway.. i get that this is all trial and error, but maybe you have some tips ryjo?
edit: The screen should be moved further away from the lens when objects are close to the lens!suvakas wrote:I'm currently testing the lens model and I can't get it to focus no mather what i do. Any more tips ryjo ?
If the object is closer to the lens, then i have to move the white plane closer to Indigo camera? I went almost all the way to indigo cam, but no changes in output image.
Also, what's that big tube thing that covers all objects? Is that necessary? I'm only using black box, lenses and white plane. Do i miss something? What's that huge tube for?
Oh, the tube... remove that

e1.obj -- front lens
e2.obj -- middle lens
e3.obj -- back lens
a.obj -- aperture (six-bladed) (optional)
b.obj -- box sides
c.obj -- casing for objective lens, outside box
f.obj -- front of box, lens opening
s.obj -- screen, back of box
a, b, c and f should be black.
s should be white.
e1-e3 must have these materials:
Code: Select all
<medium>
<name>glass_ior_1_623</name>
<basic>
<ior>1.623</ior>
<cauchy_b_coeff>0.0</cauchy_b_coeff>
<absorption_coefficient_spectrum>
<uniform>
<value>0</value>
</uniform>
</absorption_coefficient_spectrum>
</basic>
</medium>
<medium>
<name>glass_ior_1_624</name>
<basic>
<ior>1.624</ior>
<cauchy_b_coeff>0.0</cauchy_b_coeff>
<absorption_coefficient_spectrum>
<uniform>
<value>0</value>
</uniform>
</absorption_coefficient_spectrum>
</basic>
</medium>
<material>
<name>e1mtl</name>
<specular>
<transparent>true</transparent>
<internal_medium_name>glass_ior_1_623</internal_medium_name>
</specular>
</material>
<material>
<name>e2mtl</name>
<specular>
<transparent>true</transparent>
<internal_medium_name>glass_ior_1_624</internal_medium_name>
</specular>
</material>
<material>
<name>e3mtl</name>
<specular>
<transparent>true</transparent>
<internal_medium_name>glass_ior_1_623</internal_medium_name>
</specular>
</material>
The screen must be moved by 1.5 mm closer to the front to focus at infinity, and the a little closer for objects closer than that.
edit: The screen should be moved further away from the lens when objects are close to the lens!
For the indigo camera, use a small aperture setting (like 0.00001) and <autofocus/>.
hth

Last edited by ryjo on Thu Apr 05, 2007 3:36 am, edited 1 time in total.
-
- Posts: 517
- Joined: Sun Mar 04, 2007 6:20 am
- Location: Stuttgart, Germany
Why did you put the screen in that position then if its not focussed on anything there? Or is it focussing on everything that is even further than infinitely away?ryjo wrote:The screen must be moved by 1.5 mm closer to the front to focus at infinity, and the a little closer for objects closer than that.

In theory the lens is 50 mm, which means that the screen should be at 50 mm when focusing at infinity. But the modelling was not perfect so when trying the lens i realized that the screen should be at 48.5 mm instead. It was just easier to make the change in the xml file (using 'pos') than re-exporting it.mrCarnivore wrote:Why did you put the screen in that position then if its not focussed on anything there? Or is it focussing on everything that is even further than infinitely away?ryjo wrote:The screen must be moved by 1.5 mm closer to the front to focus at infinity, and the a little closer for objects closer than that.

Who is online
Users browsing this forum: Ahrefs [Bot] and 9 guests