PDA

View Full Version : Projective texture mapping.



dabeav
12-12-2002, 06:09 AM
Does any one know a REALY good, but somewhat followable tutorial on Projective Texture Mapping? I would like to be able to do it with standard OpenGL, and not have to use any card specific calls. I like the Shadow mapping capablitites. Anyone have a suggestion?

dorbie
12-13-2002, 02:57 AM
Projective texture is REALLY simple.

There are two things involved.

1) texgen

2) manipulations of the texture matrix

Texgen LINEAR for s, t, and r are required to set up a coordinate frame about the origin with axis aligned s, t & r, then you just make a glFrustum call on the texture matrix and that sets up the s & t divide by r.

I have some more information on this page:
http://www.dorbie.com/uav.html