Re: Textures

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++plague.reading.sgi.com)
Fri, 30 Jun 1995 09:27:06 +0100


> I am wondering if there is a way to selectively turn off textures in a
> scene. I would would like to turn off textures on the terrain and leave
> the objects on the terrain textured. I've managed to turn texture
> totally on or off using
>
> pfDisable(PFEN_TEXTURE)
> pfOverride(PFSTATE_ENTEXTURE | PFSTATE_TEXTURE, 1)
> to clear texture and
>
> pfOverride(PFSTATE_ENTEXTURE | PFSTATE_TEXTURE, 0)
> pfEnable(PFEN_TEXTURE)
> to set texture.
>
> I appreciate any ideas or suggestions.

To do this selectively you need to apply your code in the draw callbacks for
the nodes you want to detexture. Look at pfNodeTravFuncs(). The other way
would be to remove texturing from the pfGeoState which is being applied to
the terrain.

-- 
Angus Dorbie,
The Reality Centre,
Silicon Graphics Ltd, UK
dorbie++at++reading.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:51:37 PDT

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