Re: listing textures

New Message Reply Date view Thread view Subject view Author view

Guy Russell (guyr++at++thoth.engr.sgi.com)
Wed, 9 Oct 1996 10:19:03 -0700


On Oct 9, 10:33am, Angus Henderson wrote:
> Subject: Re: listing textures
> pfuMakeTexList constructs a list of textures by recursively traversing
> the IRIS Performer scene graph rooted by node. Since this traversal is
> exhaustive no texture will be missed.

There are two functions, pfuMakeTexList and pfuMakeSceneTexList that perform
that function. The difference between them is whether you pass a pfNode* or a
pfScene* to the respective functions. The code is distributed in the libpfutil
directory in the file tex.c, if you want to see how it is done.

>
> (SO the manual says - I think it used to miss out the detail textures though
)

Detail textures are not treated as seperate textures, but instead, they are
tied directly to a base texture. For this reason, you will not see them in
your texture list. If you want to know about them as well, look at the tex.c
example in the CalculateNumPage function. Down near the bottom of the
function, there is a check to see if a given texture has a detail texture
associated with it. In Performer2.2 the code for this is in tex.c. In
Performer 2.0.2 it is in tex.c.impact.

Guy

-- 
                    Guy Russell
Vis Sim Applied Engineering    	Silicon Graphics Inc.
Email:guyr++at++engr.sgi.com          2011 N. Shoreline Blvd. M/S 3L-916
Phone:(415)933-6113              Mountain View CA 94043
=======================================================================
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:53:45 PDT

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