PDA

View Full Version : Projective Texture problem:REVERSE PROJECTION



jeppa
01-25-2002, 04:42 AM
I have realized the Projective Texture Mapping to simulate the Spot Light.I have a problem:THE REVERS PROJECTION.What is the correct way to elimiante this problem????

bakery2k
01-25-2002, 07:58 AM
I did it by placing a user clip plane at the near plane of the frustum for the projector. This culls the geometry behind te near plane, i.e. closer to the light.

GPSnoopy
01-25-2002, 10:05 AM
Can't it be eliminated via the vertex programs?
I've not used them yet but I think it's possible to transform the texture coord from there and then make a simple conditional test to eliminate the unwanted part (I remember you can't directly do conditional instructions but NVIDIA has some example on how to do pseudo-conditional instructions)