fast method to render array of pixels?

Started by
2 comments, last by bitshifter 15 years, 8 months ago
I made a small ray tracer which returns an array of pixels. Then i render it to a .BMP. But now that i optimised it i would like to see it in realtime(simple scene at low resolution though). I did some tests with opengl by rendering pixels with glBegin(GL_POINTS), but this method seems very slow. I would like to know what you people think is the fastest method to render this array of pixels. Thank you :)
Advertisement
Try PixelToaster. It's easy to use, fast and supports floating point color mode.
You can create a texture and render a quad of this whole texture. Then you can change the pixels of the texture with the function glTexSubImage2d. Search for this function on google and you will find documentation on how to use it.
glDrawArrays is the fastest non-extension function.
Depending on what extensions the video card supports there are faster ways.

This topic is closed to new replies.

Advertisement