Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Fry_Day on May 24, 2003, 01:06:27 am
-
Two questions:
First of all, is there anything in Direct3D comparable to glOcculsionQueryNV (which returns how many pixels were drawn (I mean, actually drawn - placed inside the frame-buffer, and not rejected in the z-buffer or anything else) from since the time you called it telling it to start counting pixels, to the time you called it to return the amount of pixels)?
The second question, is, of course, if there is anything that isn't a company-specific extension that does the same thing in OpenGL
-
There's some sort of occlusion query in DX9, but as far as I know, not in DX8 or lower.
And I don't think there's a non-company-specific one in OpenGL, atleast I can't find one fromOpenGL Extension Registry (http://oss.sgi.com/projects/ogl-sample/registry/)
-
What would you need that for?
-
soft engine glows (if you see only part of the engine, or if it is far away, less of a glow)
-
Originally posted by Fry_Day
soft engine glows (if you see only part of the engine, or if it is far away, less of a glow)
Not sure if I understand, cant you just do a distance check and base it on that?