Skip to main content
GameDev.net gamedev.net
๐Ÿ”’ Locked

glDrawPixels

Started by Quak Aug 2, 2006 at 10:30 AM 1 replies 700+ views
Original Post
Quak
Quak
Hi, I use a software buffer of the size of my window as the render target for my raytracer. After the raytracer has finished I draw the buffer with glDrawPixels to the screen. What I would like to achieve is to draw the bboxes of the kd-tree on top of the raytracer image. However this only works if I comment out the glDrawPixel function. Any idea how I could display the bboxes together with the raytraced image? thanks, quak
Brother Bob
Brother Bob
Disable the depth buffer when drawing pixels. If it's enabled, the depth buffer is filled with the depth value of the raster position and that may interfer with drawing the boxes.
Quak
Quak
Now it works, thanks alot.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.