cyclone
09-05-2003, 01:27 PM
Now, I'm sure that GL_POINTER_BUFFER_BIT can really be a good thing (such as GL_NORMAL_BUFFER_BIT http://www.opengl.org/discussion_boards/ubb/smile.gif )
With a pointer per pixel, we can retrieve for each pixel in the screen the object that make the first intersection with the ray that start at the eye, traverse the screen, and pointe the object.
So, we can raytrace this in another pass http://www.opengl.org/discussion_boards/ubb/smile.gif http://www.opengl.org/discussion_boards/ubb/smile.gif
I never really used vertex and fragment programs, but I see now a good start for begin with them ...
@+
cyclone
With a pointer per pixel, we can retrieve for each pixel in the screen the object that make the first intersection with the ray that start at the eye, traverse the screen, and pointe the object.
So, we can raytrace this in another pass http://www.opengl.org/discussion_boards/ubb/smile.gif http://www.opengl.org/discussion_boards/ubb/smile.gif
I never really used vertex and fragment programs, but I see now a good start for begin with them ...
@+
cyclone