Author Topic: D3D knowledge  (Read 1854 times)

0 Members and 1 Guest are viewing this topic.

Offline Fry_Day

  • 28
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

 

Offline RandomTiger

  • Senior Member
  • 211
What would you need that for?

 

Offline Fry_Day

  • 28
soft engine glows (if you see only part of the engine, or if it is far away, less of a glow)

  

Offline RandomTiger

  • Senior Member
  • 211
Quote
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?