hello
in fact i have a problem in my code
all i want to do is to read the Depth buffer and then store them on a .txt file
i create the camera
than i attach an image to it
than i use image->readpixels(..)
than i store image->data() in a .txt file
my problem is image->data() is unsigned char * i dont know how to deal with :
after i saved the values in .txt file i tried to draw this values in matlab
for example or any other software but it give the wrong image "something
unsual ". can anyone help plz ?if u have any link or a code that help to know
how to store and draw with image->data() where data() represent the values of
GL_DEPTH_COMPONENT(depth buffer) and not GL_RGB.
_________________________________________________________________
Play free games, earn tickets, get cool prizes! Join Live Search Club.
http://club.live.com/home.aspx?icid=CLUB_wlmailtextlink
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/