HP c8000 manual OpenGL extensions, Visibility test extensions, Occlusion extension

Page 21

overview of OpenGL

OpenGL extensions

OpenGL extensions

The extensions listed in this section are extensions that Hewlett-Packard has created; that is, in addition to those standard functions described in the OpenGL Programming Guide, OpenGL Reference Manual, and OpenGL Programming for the X Window System.

visibility test extensions

HP supports extensions for visibility testing and occlusion culling.

See the on-line Reference Manual for information on HP’s visibility test extensions, glVisibilityBufferHP and glNextVisibilityTestHP.

occlusion extension

This occlusion culling extension defines a mechanism whereby an application can determine the non-visibility of some set of geometry based on whether an encompassing set of geometry is non-visible. In general, this feature does not guarantee that the target geometry is visible when the test fails, but is accurate with regard to non-visibility.

Typical usage of this feature would include testing the bounding boxes of complex objects for visibility. If the bounding box is not visible, then it is known that the object is not visible and need not be rendered.

occlusion culling code fragments

The following is a sample code segment that shows a simple usage of occlusion culling.

/* Turn off writes to depth and color buffers */ glDepthMask(GL_FALSE);

glColorMask (GL_FALSE, GL_FALSE, GL_FALSE); /* Enable Occlusion Culling test */ glEnable(GL_OCCLUSION_TEST_HP);

for (i=0; i < numParts; i++) {

/* Render your favorite bounding box */ renderBoundingBox(i);

/* If bounding box is visible, render part */ glGetBooleanv(GL_OCCLUSION_RESULT_HP, &result);

Chapter 1

19

Image 21
Contents OpenGL Implementation Guide Legal Notices Contents Installation and setup Programming hints Contents Overview of OpenGL OpenGL Reference Manual IntroductionOpenGL product Hp’s implementation of OpenGLHp’s implementation of the OpenGL libraries Supported operating systems Supported graphics devicesVisual Table for HP Visualize fxe Supported visualsVisual Table for ATI Fire GL T2/X1/X3 Visual support for other graphics devices Stereo Visual Support for HP Fire GL-UXSigchld and the GRM daemon Buffer sharing between multiple processes and threadsBit programming SLS support Sample 64-bit compile and link for 11.x onlyOpenGL Utilities Library GLU Standard OpenGL productInput and output routines OpenGL extensions for the X Window system GLXOpenGL product Mixing of OpenGL and Xlib Gamma correction Visibility test extensions OpenGL extensionsOcclusion extension Occlusion culling code fragmentsEnumerated Types for Occlusion GLHPsupersample extension Rendering details Default visualsEXP and EXP2 fogging Bow-tie quadrilateralsIndex mode dithering Decomposition of concave quadrilateralsVertices outside of a begin/end pair Environment variables New environment variables as of release Switches to the faster double buffering method Installation and setup Installation and setup Verification instructions Is your system software preloaded with instant ignition?Verify that OpenGL is on your workstation Install OpenGL Installing OpenGLOpenGL Development Environment Filesets for 11.0 Check log file Verify the product OpenGL file structure 64-bit libraries are in a subdirectory OpenGL file structure Chapter Running OpenGL programs Virtual GLX VGL mode Visual support for the VGL modeSpecial considerations Bool hpglXDisplayIsVGLDisplay *dpy, int screen Running hps implementation of the OpenGL stereo application Running hps implementation of the OpenGL stereo application Running OpenGL programs Compiling and linking programs Subdirectory This Directory Contains OverviewIncluding header files Linking shared libraries Compiling 32-bit and 64-bit applications for OpenGL OpenGL procedure calls Programming hints Programming hints OpenGL correctness hints 4D valuesTexture coordinates OpenGL performance hints Glcompileandexecute modeDisplay list performance Geometric primitivesDraw array set extensions State changes and their effects on display lists TexturesRegular primitive data Selection performance Texture downloading performanceState change Optimization of lighting Occlusion cullingHigh frame rate applications Rescaling normals OpenGL performance hints
Related manuals
Manual 27 pages 63.95 Kb Manual 8 pages 32.71 Kb Manual 89 pages 28.35 Kb