Texture mapping

New Message Reply Date view Thread view Subject view Author view

horne++at++vislab.su.edu.au
Thu, 16 Mar 1995 17:48:06 +1000 (EDT)


can anyone give more details about turning off and on textures.
The problem, as far as i can fathom is that perfromer seems to only
handle 2 states:
        nothing is textured
        everything MUST be textured.

The problem is that I want to create a database where only some of the
objects are textured, but what happens is that those obects that don't have a
texture pick up whatever was the last texture definition.

[ i have tested this with the default perfly by viewing 2 identical
wavefront models; one with a texture and one without, and they both pick
up the texture ]

I looked at pfOverride but in order to apply a texture you have to set
pfOverride(PFSTATE_TEXTURE,0) and then the texture will be applied to ALL
geometry, and if i set pfOverride(PFSTATE_TEXTURE,1) i can't apply ANY
textures!

has anyone had any success in this area ??

G.

-----------------------------------------------------------------------------
                                            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:05 PDT

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