Z-buffer load

New Message Reply Date view Thread view Subject view Author view

DAVE HOATSON (hoatso++at++aaicorp.com)
Tue, 16 Mar 1999 12:35:53 -0500


I need to load a color image and a depth image into the frame buffer. The image is a previously rendered static background composed of terrain, sky, clouds, and buildings. In my application, a dynamic aircraft will be rendered into the frame buffer after the background image is loaded.

Currently, I am using "glDrawPixels(WIDTH, HEIGHT, GL_DEPTH_COMPONENT, GL_UNSIGNED_BYTE, depthBuf)"

Although loading the color buffer (in RGBA mode) is fast, loading the depth buffer is very slow. How can I speed this operation up? Can I get a pointer to the Z-buffer and copy the depth image directly, avoiding "glDrawPixels"? Is there a particular frame buffer configuration which allows this operation to execute faster? On the O2, is the Z-buffer located in the standard Unified Memory Architecture RAM? I am running the application on an R5k O2. Thanks.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Tue Mar 16 1999 - 09:36:09 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.