Glenn Waldron (gwaldron++at++peril.com)
Wed, 12 Mar 1997 09:17:42 -0500
This seems to work pretty well:
pdist = perceived distance (i.e., you want the object to look as
though it is this far away);
dist = current distance between eyepoint and object;
dcs->scale( dist / pdist );
The matrix would be:
r = dist/pdist;
m = [ r 0 0 0
0 r 0 0
0 0 r 0
0 0 0 1 ];
--
Glenn Waldron - ANSER Leading Edge Technologies phone/PCS: 703.598.7835
email: gwaldron++at++peril.com voice mail: 703.416.8462
=======================================================================
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:54:53 PDT