Using Normals to calculate depth on mono camera?

Pyro Pilots Lounge. For all topics *not* covered in other DBB forums.

Moderators: fliptw, roid

Post Reply
User avatar
Thenior
DBB Captain
DBB Captain
Posts: 667
Joined: Wed Oct 06, 2004 9:40 am

Using Normals to calculate depth on mono camera?

Post by Thenior »

I have a thought *smells smoke*

What if you used a single camera lens (mono), in (completely) dark room, with three Red, Green and Blue lights, all positioned equidistant from each other, in a triangle.

Image

Couldn't you use some advanced image processing, and get a 3D model (granted, only on a 2D plane from the perspective of the camera)?
User avatar
fliptw
DBB DemiGod
DBB DemiGod
Posts: 6458
Joined: Sat Oct 24, 1998 2:01 am
Location: Calgary Alberta Canada

Re: Using Normals to calculate depth on mono camera?

Post by fliptw »

they do that with lasers.
User avatar
sdfgeoff
DBB Ace
DBB Ace
Posts: 498
Joined: Wed Jan 12, 2011 1:07 am
Location: Low Earth Orbit
Contact:

Re: Using Normals to calculate depth on mono camera?

Post by sdfgeoff »

Different method with lasers.

yes you could. You could use the image as a normal map straight in a game/model, so they must know about the geometry in some way.

In theory: Yes, it has been done
In practice: No-one has made an exporter from normal maps to real geometry yet.
Eh?
User avatar
Isaac
DBB Artist
DBB Artist
Posts: 7652
Joined: Mon Aug 01, 2005 8:47 am
Location: 🍕

Re: Using Normals to calculate depth on mono camera?

Post by Isaac »

If you could photograph a normal map, by painting something white then shining the colors on it you MIGHT be able to convert the deformation to mesh. Normally its the other way around, where you export normals from HD mesh.

Find a good way to go for normal maps to mesh and it will work to some degree. You won't get serious depth, but if your objects are kind flat it might work.

You'll also have to do serious edits on the normal map and the 3d model especially if you want to take these shots and convert them into a full 3d model, viewable from all angles.

edit:
If you want to try this with objects you don't want to paint white:
You might be better off shooting in black and white, using one white light.

Example: For a single normal map, with 3 camera shots from the same perspective you could have 3 different lighting directions by moving the light around each time. Then you use this data make a normal map, with each of the 3 shots being converted to the 3 specific colors that normal maps use. I could see that working for a car engine.

This sounds like fun.

edit: edit:
That's what this guy is doing! http://zarria.net/nrmphoto/nrmphoto.html except you want to take it one step further and convert to a mesh object.
❉⊱•═•⊰❉⊱•═•⊰❉⊱•═•⊰❉❉⊱•═•⊰❉⊱•═•⊰❉⊱•═•⊰❉❉⊱•═•⊰❉⊱•═•⊰❉⊱•═•⊰❉
-⎽__⎽-⎻⎺⎺⎻-⎽__⎽--⎻⎺⎺⎻-★ ·:*¨༺꧁༺ :E ༻꧂༻¨*:·.★-⎽__⎽-⎻⎺⎺⎻-⎽__⎽--⎻⎺⎺⎻-
❉⊱•═•⊰❉⊱•═•⊰❉⊱•═•⊰❉❉⊱•═•⊰❉⊱•═•⊰❉⊱•═•⊰❉❉⊱•═•⊰❉⊱•═•⊰❉⊱•═•⊰❉
User avatar
Thenior
DBB Captain
DBB Captain
Posts: 667
Joined: Wed Oct 06, 2004 9:40 am

Re: Using Normals to calculate depth on mono camera?

Post by Thenior »

sdfgeoff wrote:In practice: No-one has made an exporter from normal maps to real geometry yet.
I think you may be mistaken - Maya converts from Normal Maps to real polygons (geometry).

That being the case, I guess I answered my own question. :oops:
Post Reply