Mike Weiblen (mew++at++paradigmsim.com)
Mon, 27 Jul 1998 22:55:04 -0500
Texture matrices are handy for projected textures, as demonstrated by
/usr/demos/bin/projtex. By grabbing a texture matrix representing the
location of the spotlight, the spot texture can be rendered from the
observer's viewpoint as if it were projected by that spotlight.
This approach is possible because textures coords (STRQ) use the same 4D
homogeneous representation as spatial coords (XYZW). Homogenizing the
coordinates (dividing by Q or W) is what makes perspective happen.
-- mew
--
Mike Weiblen talkto:972-960-2301 x292
PARADIGM Simulation, Inc. faxto:972-960-9049
14900 Landmark, Suite 400 mailto:mew++at++paradigmsim.com
Dallas TX 75240 http://www.paradigmsim.com
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:57:45 PDT