Another lens test

Get feedback from others on your works in progress
User avatar
suvakas
3rd Place Winner
Posts: 2613
Joined: Mon Sep 04, 2006 11:08 pm
Location: Estonia
Contact:

Post by suvakas » Wed Apr 04, 2007 7:58 am

Is it normal that it's flipped like that? The reality isn't flipped with real camera.
Why is that happening here?

ryjo
Posts: 68
Joined: Tue Jul 04, 2006 6:16 am
Location: Pluton

Post by ryjo » Wed Apr 04, 2007 8:20 am

It's reversed because the indigo camera is taking a photo of a projected image and not of the objects them selves (which is what a camera normally do).

This is like being inside a camera obscura and taking a photo of the projected image.

User avatar
Kram1032
Posts: 6649
Joined: Tue Jan 23, 2007 3:55 am
Location: Austria near Vienna

Post by Kram1032 » Wed Apr 04, 2007 8:24 am

doule-projected :D

User avatar
suvakas
3rd Place Winner
Posts: 2613
Joined: Mon Sep 04, 2006 11:08 pm
Location: Estonia
Contact:

Post by suvakas » Wed Apr 04, 2007 8:25 am

Gotcha! Of course..stupid me..
Thanks.

mrCarnivore
Posts: 517
Joined: Sun Mar 04, 2007 6:20 am
Location: Stuttgart, Germany

Post by mrCarnivore » Wed Apr 04, 2007 7:06 pm

So the model of a lense actually works the same as the indigo Thin lens model. Without the lens, the render is just much faster...

Did you want to show this? Or was the point something else? :?

StompinTom
Indigo 100
Posts: 1828
Joined: Mon Sep 04, 2006 3:33 pm

Post by StompinTom » Wed Apr 04, 2007 8:45 pm

right well now we can start fucking around with actual lenses, not just a Thin lens model. say a fisheye lens or even a tilt-shift lens. thats whats cool about it.

User avatar
OnoSendai
Developer
Posts: 6243
Joined: Sat May 20, 2006 6:16 pm
Location: Wellington, NZ
Contact:

Post by OnoSendai » Wed Apr 04, 2007 8:46 pm

Plus you can simulate lens flares :)

StompinTom
Indigo 100
Posts: 1828
Joined: Mon Sep 04, 2006 3:33 pm

Post by StompinTom » Wed Apr 04, 2007 8:48 pm

and when we can start simulating lens coatings, things will get really interesting.

User avatar
Kram1032
Posts: 6649
Joined: Tue Jan 23, 2007 3:55 am
Location: Austria near Vienna

Post by Kram1032 » Wed Apr 04, 2007 9:56 pm

lens coatings?
Really nice thread!

User avatar
suvakas
3rd Place Winner
Posts: 2613
Joined: Mon Sep 04, 2006 11:08 pm
Location: Estonia
Contact:

Post by suvakas » Wed Apr 04, 2007 10:21 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!!! :lol: ..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?

ryjo
Posts: 68
Joined: Tue Jul 04, 2006 6:16 am
Location: Pluton

Post by ryjo » Wed Apr 04, 2007 11:50 pm

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?
edit: The screen should be moved further away from the lens when objects are close to the lens!

Oh, the tube... remove that :) it's no longer part of the system. The following obj files are used:
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>
Don't put the object too close to the camera, or it may not be able to focus, no matter how much you move the screen.

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 :)[/u]
Last edited by ryjo on Thu Apr 05, 2007 3:36 am, edited 1 time in total.

mrCarnivore
Posts: 517
Joined: Sun Mar 04, 2007 6:20 am
Location: Stuttgart, Germany

Post by mrCarnivore » Thu Apr 05, 2007 12:00 am

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.
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? ;-)

User avatar
suvakas
3rd Place Winner
Posts: 2613
Joined: Mon Sep 04, 2006 11:08 pm
Location: Estonia
Contact:

Post by suvakas » Thu Apr 05, 2007 12:02 am

Thanks for the info! Yes, i thought that the tube is not useful. I got black image when i used it.
Ok. I will do some more testing with the scene.
It's quite fun to play. 8)

ryjo
Posts: 68
Joined: Tue Jul 04, 2006 6:16 am
Location: Pluton

Post by ryjo » Thu Apr 05, 2007 12:51 am

mrCarnivore wrote:
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.
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? ;-)
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. :roll:

ryjo
Posts: 68
Joined: Tue Jul 04, 2006 6:16 am
Location: Pluton

Post by ryjo » Thu Apr 05, 2007 3:40 am

I was wrong about the movement of the screen: If objects are closer to the camera than infinity then move the screen away from the lens.

So objects @ infinity -> screen @ 48.5 mm
... objects @ 5 m -> screen @ 50 mm (perhaps, i don't know exactly)

Post Reply
30 posts

Who is online

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