Re: display lists in cull traversal

New Message Reply Date view Thread view Subject view Author view

Rémi Arnaud (remi++at++remi.engr.sgi.com)
Mon, 7 Jul 1997 10:15:32 -0700 (PDT)


Sharon Clay wrote:
>
> ->
> ->What happens is that for some reason a popmatrix() (or apparently the
> ->token DL_POPMAT) does not get appended to the shadVolDL. It instead gets
> ->appended to currentDL. So I have an extra pushmatrix() without its
> ->corresponding popmatrix() in a my shadow volume display list; and I have
> ->an extra popmatrix() without a cooresponding pushmatrix() in the scene
> ->display list (this is what I gather from looking at output from gldebug).
> ->
> ->It would seem that AFTER the call to preShadVolCullCallback() a
> ->pushmatrix() is being added, and that AFTER postShadVolCullCallback() a
> ->popmatrix() is being added. Wouldn't it either be before and after, or
> ->after and before, but not after and after?
> ->
> ->Why would that happen? Obviously I'm not doing things in the right order.
> ->What would the correct order be?
>

 May I suggest that you use the Bin mechanism. Setting a bin number on a
 node makes it going in a display list with the right amount of Push/Pop
 and state changes.
 pfDrawBin(#) will draw that display list in the draw process.

 Regards.

    _ / _ _
|_) _ ._ _ o /\ |_)|\ | /\ | || \
| \(/_| | || /--\| \| \|/--\|_||_/
                                           
=======================================================================
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:35 PDT

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