Re: Textures

New Message Reply Date view Thread view Subject view Author view

horne++at++vislab.su.edu.au
Thu, 13 Apr 1995 09:22:34 +1000 (EDT)


This is something that Choon H Lee wrote:
>
> We have currently a problem with our program which translates our
> own file format (svr) such that it can be read with Performer. The
> program works fine, but we encountered troubles with textures. It
> works fine when textures are not applied at all in the original file
> format, but when textures are used, and loaded into Performer they
> seem to color all other objects with the dominant color of its last
> uploaded texture.
>
> Did anyone encounter similar problems in the past?

funny - i had the same problem about 6 weeks ago - here's the solution:

>> Message 2/7 From Sharon Clay Mar 16, 95 01:00:27
>>
>> You can set the texture enable on the pfGeoState of any model:
>> pfGStateMode(gstate, PFSTATE_ENTEXTURE, PF_ON or PF_OFF);
>> By default, all pfGeoState settings inherit from the global state.
>> Perfly (and libpf) assumes that on machines with fast texture, you will
>> choose to have the majority of your database textured and so
>> texture is enabled by default. Objects with pfGeoState that
>> do not set the texture or the enable will inherit both from
>> the global state. This way, objects will be textured on fast machines,
>> but not on slow machines. Objects that have no texture should set
>> pfGStateMode(gstate, PFSTATE_ENTEXTURE, PF_OFF);

-----{-----{---++at++ -----{----{---++at++ -----{----{---++at++ -----{----{---++at++
Sharon Rose Clay (Fischler) - Silicon Graphics, Advanced Graphics Dev.
src++at++sgi.com (415) 390 - 1002 FAX: (415) 965 - 2658 MS 8U-590
-----{-----{---++at++ -----{----{---++at++ -----{----{---++at++ -----{----{---++at++

-----------------------------------------------------------------------------
                                            Geoff Horne,
                                      horne++at++vislab.su.edu.au
                                   http://www.usyd.edu.au/~ghorne

          Computational Scientist and VisLab conundrum rectifier
-----------------------------------------------------------------------------
    "Don't take life too seriously, you don't get out of it alive anyway"
                                                        Burt Ward


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:51:17 PDT

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