Pinhole Camera with Indigo

Get feedback from others on your works in progress
Post Reply
15 posts • Page 1 of 1
User avatar
kououken
Posts: 11
Joined: Tue Oct 31, 2006 2:24 pm
Location: Kyushu, Japan

Pinhole Camera with Indigo

Post by kououken » Thu Nov 02, 2006 4:49 pm

This was a recreation of the pinhole camera experiment. A test, more than a work of art, but it was VERY cool seeing the inverted scene appear! I just made an enclosure with some colored shapes at one end, and a light source with another box at the other end. I left a very small square opening, and positioned the camera inside the dark inner box to try and catch any light reaching the inside surfaces. Here's the setup:

Image

The normal view of the scene as directly lit, rendered with indigo looks like this:

Image

And here is the image captured from inside the darkbox after 24 hours (not the fastest computer on the block though..)

Image

It may not be pretty, but the image shows the physical accuracy of the indigo renderer. An even smaller pinhole would have left a sharper image, just as a real camera would, but the light reaching inside the box decreases exponentially. I'd love to see any other work that shows off not just the reflection/refraction of light sources, but also light reflecting off other surfaces, or possibly transmitted through a colored material, like a slide. It would be ridiculously slow, but I suppose you could even create a scene with a light shining through lenses to project a filmstrip on a screen!

I think I'll start playing with opposing mirrors next.
-KouOuKen

User avatar
joegiampaoli
Posts: 837
Joined: Thu Oct 05, 2006 7:12 am
Location: San Miguel de Allende-MEXICO
Contact:

Post by joegiampaoli » Thu Nov 02, 2006 5:55 pm

:shock: :shock: :shock:
Holly ****!!!!!
:shock: :shock: :shock:
Joe Giampaoli
Never tie a ship to a single anchor, nor life to a single hope
My Indigo Gallery

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

Post by OnoSendai » Thu Nov 02, 2006 8:27 pm

Nice experiment KouOuKen.
The next step is to use a lens instead of a pinhole. This will allow more light to enter the aperture, while maintaining the focus. The tricky thing is getting the lens the right shape :)
Someone else did a similar Indigo experiment a while ago with a lens, might have been on the old forum.

Actually i have been vaguely considering using this kind of setup for the indigo camera model, because you would get stuff like real lens flare :)

User avatar
manitwo
Posts: 1029
Joined: Wed Jul 05, 2006 4:50 am
Location: Tirol - Austria

Post by manitwo » Thu Nov 02, 2006 9:45 pm

WTF? :shock:
I tried the same months ago but failed :cry:
You managed it! congratulations :D VERY very cool!
i think i'll start testing again ...

Koba
Posts: 36
Joined: Wed Jul 05, 2006 3:44 am

Post by Koba » Thu Nov 02, 2006 11:36 pm

Someone else did a similar Indigo experiment a while ago with a lens, might have been on the old forum.
I remember that thread. Incredible stuff.

Actually, here it is!:

http://www.flipcode.dxbug.com/board/topic/269/0/

You could make out the image in the pinhole camera after a couple of minutes. And the .blend files on the page still work! Check them out.

I would like to compare a pinhole camera scene between indigo versions - as it is one of the toughest physical benchmarks in my opinion.

Koba

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

Post by OnoSendai » Thu Nov 02, 2006 11:39 pm

ah, thanks Koba :)

IanC
Posts: 147
Joined: Thu Aug 24, 2006 4:46 am

Post by IanC » Thu Nov 02, 2006 11:58 pm

T'was me :) (sorry, original pic has been replaced at the top of the image. I'll dig it out tonight).

Koba, mine used a lens instead of a pinhole. I want to get the shape of the iris in the next one, to produce that shaped glow.

I'm going to redo that one, as the lens is really out of shape (or has large problems).

I'll do some tests to determine the best shape for the lens using a sun lamp (also get the focal point).


The lens produces huge glow though.

Koba
Posts: 36
Joined: Wed Jul 05, 2006 3:44 am

Post by Koba » Fri Nov 03, 2006 2:01 am

Ah yes IanC - I was about to say that you used a lens but it slipped my mind while posting/finding your thread. Seeing you did the original indigo pinhole camera (with lens!) perhaps you could rerender the scene in several versions of indigo for comparison?

The prospect of using distorted lenses to create distorted images and perhaps lens flare is interesting. I'm sure a whole load of effects can be achieved by using a physically modelled, non-ideal camera. Try putting dust or water droplets on the lens for example. :D

I've always thought that a perfect camera always gets in the way of photorealism - especially in games.

Koba

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

Post by OnoSendai » Fri Nov 03, 2006 2:07 am

Koba wrote: The prospect of using distorted lenses to create distorted images and perhaps lens flare is interesting.
I wouldn't say lens flare is caused by distorted lenses.
It's either caused by reflections of bright light sources (eg. the sun) off the interior surface of the camera barrel, or unwanted reflections between the different lenses in the camera. (or some combination of the two)

I'm not actually sure which one, I haven't found good information about this in the CG literature.

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

Post by OnoSendai » Fri Nov 03, 2006 2:11 am

One more thing kououken:
I noticed the inside of your camera (the 'darkbox') has a high albedo (eg white) material on each surface. Try making the non-film surfaces black - this should reduce secondary scattering effects and produce a clearer image in less time.

User avatar
zsouthboy
Posts: 1395
Joined: Fri Oct 13, 2006 5:12 am

Post by zsouthboy » Fri Nov 03, 2006 6:00 am

Lens flare in real life is caused by light reflecting between lens elements, and possibly even the image sensor(for digital) back into the lens, even.

Manufacturers attempt to combat this with different lens coatings.

Simulating those, now... that would be a hell of a job. :)

In another note, I currently have a render in process, also, that is simply a test of the physical accuracy of indigo. (Currently at about 90h, around 200k[!] mutations per pixel, and counting)

As an example, I know that the Bi-Dir code is shaking its head right now, just trying to find a damn photon that the camera can see :D :D :D

;)

IanC
Posts: 147
Joined: Thu Aug 24, 2006 4:46 am

Post by IanC » Fri Nov 03, 2006 8:18 am

Koba, sure. Probably not this weekend though, as I have friends down to see me.

I want to create a better version of it before I do though. Keep bugging me and I'll be sure to do it :p.

Ian

Kachu
Posts: 54
Joined: Tue Sep 19, 2006 9:12 am

Post by Kachu » Fri Nov 03, 2006 2:11 pm

Wow its amazing to see what indigo can do. Great scene man.

atmmatt
Posts: 104
Joined: Sun Oct 22, 2006 4:33 am
Location: Pennsylvania - USA

Post by atmmatt » Fri Nov 03, 2006 5:08 pm

I'm pretty sure you can use a plano-convex lens for camera obscura (in reality of course). One side is flat and the other side is convex (still spherical). Still very neat with the pinhole effect, I'm very surprised it worked!
"To be, or not to be" That is a question?

User avatar
homafloek
Posts: 24
Joined: Thu Nov 09, 2006 3:30 am

Post by homafloek » Fri Nov 10, 2006 4:33 am

scenes like this and the other one youve created with the glass tube and the single light really show off indigo's power.

Post Reply
15 posts • Page 1 of 1

Who is online

Users browsing this forum: No registered users and 57 guests