Re: preIsectFunc bad trav matrix

New Message Reply Date view Thread view Subject view Author view

Bernard Leclerc (bleclerc++at++cae.ca)
Wed, 16 Apr 1997 11:25:59 -0400


> this is an example code tha I use to get the node isect matrix In
> the ISECT process.
>
> int vrPoolIsect::preIsectFunc(pfTraverser *trav, void *data)
> {
> pfMatrix mat;
> ...
> trav->getMat(mat);
> ...
> }
>
> The node used to set the traverser CB is a pfDCS with a changing matrix,
> The result of printing is an Ident matrix instead of the dcs matrix at
> ISECT time.
>
> Am I making a mistake or its a Performer bug?

If you're using a pre-Isect callback, the DCS matrix is not yet applied.
You can change to a post-Isect callback if you're interested in the
current transformation matrix after the DCS matrix is applied.

However if you're interested in the current value of the DCS matrix, you
should do this

        pfDCS* dcs = (pfDCS*) trav->getNode();
        dcs->getMat(mat);

Bernard Leclerc, Technical Leader, 3-D Graphics Applications
CAE Electronics Ltd. (http://www.cae.ca)
8585 Cote De Liesse, Saint-Laurent, Quebec, Canada, H4L-4X4
tel: +1 514 341 2000 extension 2275, fax: +1 514 340 5496
              
=======================================================================
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:55:04 PDT

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