Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Projective Texture problem:REVERSE PROJECTION

  1. #1
    Intern Contributor
    Join Date
    Feb 2001
    Posts
    71

    Projective Texture problem:REVERSE PROJECTION

    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????

  2. #2
    Junior Member Regular Contributor
    Join Date
    Dec 2001
    Location
    London, England
    Posts
    163

    Re: Projective Texture problem:REVERSE PROJECTION

    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.

  3. #3
    Junior Member Regular Contributor
    Join Date
    Jan 2001
    Location
    Belgium
    Posts
    206

    Re: Projective Texture problem:REVERSE PROJECTION

    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)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •