Re: Cosmo3D/Optimizer: Screen size of shape

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++sgi.com)
Mon, 20 Apr 1998 09:55:37 -0700


Mike Krus wrote:
>
> Hi,
>
> I am currently trying the access the screen size of the bounding box of
> a cosmo3D csGeometry object. The csDrawAction provides access to the
> transformation and to the camera (and thus to the camera
> transformation).
>
> Given the bounding box of a csGeometry how do I use the two
> transformation
> matrices to compute the size of that bb on the screen?
>

Well if it doesn't cross the hither plane you could just transform
the corners through the modelling then projection matrix and scale
to window coordinates then use min max testing for bounds. If it does
cross then clip the edges to produce new transformable points.

Cheers,Angus.

-- 
"Only the mediocre are always at their best." -- Jean Giraudoux 

For advanced 3D graphics Performer + OpenGL based examples and tutors: http://www.dorbie.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


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:57:16 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.