On 10/13/2010 8:41 AM, Jason Daly wrote:
> I don't know if I'd call it "canonical", but I think the Nvidia Cg book has a 
> method to
> convert height field images into normal maps, which at least sounds similar 
> to what you're
> looking for.  I'd check to be sure it's there, but I can't seem to find my 
> copy right now.

  Thanks.

  I've seen a couple of pieces of code that do it in pre-processing in C, but 
I've not
seen anyone who does it on the fly in GLSL. Which I find odd. I do understand 
it's better
to create a lookup table to avoid the heavy-lifting trig in each fragment, and 
I plan to
do that, but I haven't even found an implementation of that yet.

  This seems odd to me since I figured procedural textures and bump mapping 
would be
pretty common in GLSL.

> --"J"

-- 
Chris 'Xenon' Hanson, omo sanza lettere. [email protected] 
http://www.alphapixel.com/
  Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. 
Contracting.
    "There is no Truth. There is only Perception. To Perceive is to Exist." - 
Xen
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to