Using bins to draw in Performer 2.2

New Message Reply Date view Thread view Subject view Author view

Mario Veraart (rioj7++at++fel.tno.nl)
Mon, 25 May 1998 23:26:59 +0200 (MET DST)


Hi pfAll,

I have tried to use bins to draw the geometry in the order I want.
For this I replaced the call to pfDraw() with

    pfDrawBin(PFSORT_OPAQUE_BIN);
    pfDrawBin(PFSORT_TRANSP_BIN);

The scene consists of a few cubes. Some of them are transparent others
are opaque. Every geoset has a geostate and the bins are explicitly
set to the opaque bin or transparent bin.

When I use pfDraw I see the complete scene. When using the two calls
to replace pfDraw I only see the cubes that are transparent.
if I add the call

    pfDrawBin(-1);

The opaque geometry is drawn as wanted.
The channel traversal mode is the default, so it should contain
PFCULL_SORT.

Is this the normal behaviour?

When I add two bins to the channel and put my geometry in them and
call pfDrawBin() with these two numbers the geometry is drawn ok.
I don't need to call pfDrawBin(-1).

Mario Veraart
=======================================================================
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:26 PDT

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