From: Angus Dorbie (dorbie++at++sgi.com)
Date: 06/14/2000 15:23:42
Before the DCS is drawn the concatenated matrix state doesn't have that
transformation. After it's drawn it does. So, in the predraw you won't
see the DCS effect, in the postdraw you will.
Cheers,Angus.
'Bwana' Bob Buckley wrote:
>
> I've setup a test case that contains a scene with 2 pfDCSs with pre- and
> post-cull callbacks. I scale pfDCS #1 and translate pfDCS #2.
>
> In the pre-cull callback for pfDCS #1 I query the pfTraverser for the
> matrix and get the identity matrix. This is contrary to the man page. In
> the post-cull call back I again query the pfTraverser for the matrix and
> get what I understand to be the correct matrix (concatenations from the
> scene down to and including the node)
>
> In the pre-cull callback for pfDCS #2 I query the pfTraverser for the
> matrix and get the matrix for pfDCS #1. In the post-cull callback I get
> the matrix for pfDCS #2.
>
> The man pages states:
>
> "pfTraverser::getMat sets mat to the current transform matrix, which is
> the concatenation of the matrices from the root of the scene down to and
> including the current node."
>
> I could swear that when I put this in my application last week is worked
> as advertised. Hence, the test case. Am I missing something here? I put
> together a simple test case if anyone cares to take a look at it.
>
> Thanks.
-- For Performer+OpenGL tutorials http://www.dorbie.com/"In the middle of difficulty lies opportunity." --Albert Einstein
This archive was generated by hypermail 2b29 : Wed Jun 14 2000 - 15:24:11 PDT