Hi,

Can someone tell me if there is a way to check if HW Projective Texturing is supported in OpenGL?

There’s no such functionality - at best, this should be (ARB?)depth_texture and (EXT?)shadow_funcs (better with render to depth texture) but those alone simply does not build a projective texturing system.

To do projective texturing you have to check for multiple functionalities.

Obli, could you explain to me what “projective texturing” means to you? To me, it means projecting a texture onto some geometry . To do so, all you need to do is apply the projection to your texture matrix. I don’t know of any cards that can’t do this, and you certainly don’t need any extensions to do it.

– Tom

Tom, I’m not talking about the algorithm of projective texturing… i was talking about the lowest level… in the raster…

Hardware Projective texturing means that the raster will do the perspective corrected projective step for you… this means it will do the per-pixel divide and the per-pixel perspective correct… u will be u/w, v will be v/w z will be z/w and after that it will do the perspective correct step…

Nvidia TNT doesnt do this… so that’s why i want to know if there is a way to find out if hardware projective texturing is available (in opengl, cause in Direct3D i only have to check the TEXTURE_PROJECTED caps in texture caps…)

Thanks

Hi Nervus,

NVIDIA TNT does indeed do projective texturing. On older hardware projective texturing came for free if the hardware supported perspective correction because for perspective correction you would do:

s’ = (s/w) / (1/w)

t’ = (t/w) / (1/w)

and for projective texturing you could combine projective texturing + perspective correction with the same divider by

s’/q’ = (s/w) / (q/w)

t’/q’ = (t/w) / (q/w)

Now, in the earliest multi-texture hardware there were some caveats about how projective texturing on one unit interacts with perspective correction (or projective texturing) on others.

Maybe you could describe the problem you’re having in more detail?

Thanks -

Cass

Originally posted by Tom Nuydens:

Obli, could you explain to me what “projective texturing” means to you?

Whoops, sorry, I messed up with projective shadows. ^_^!

Originally posted by Obli:

Whoops, sorry, I messed up with projective shadows. ^_^!

Well, that’s supported as well in OpenGL via the ARB_depth_texture and ARB_shadow extensions.

Originally posted by cass:

[b]

Hi Nervus,

Maybe you could describe the problem you’re having in more detail?

Thanks -

Cass[/b]

I dont really have a problem, the thing is that I dont know how to check if a video board supports projective texture in hardware… i know the odds are very slight to find out one of these cards these days but for my own curiosity.

Thank you.