Lance R. Marrou (marrou++at++vsl.ist.ucf.edu)
Thu, 29 Jun 1995 16:17:43 -0400 (EDT)
> 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
If you have access to the terrain pfGeoStates, then this is one solution:
pfGStateMode(terrain_gstate,PFSTATE_ENTEXTURE,PF_OFF);
You could have two commands, one to turn texturing off totally (your normal
command) and one to turn texturing off for just the terrain (as above).
Personally, I do not use pfOverride() for texture states because I have a moon
which must never be non-textured (a rectangle in the sky looks fishy :)
Instead, the moon geostate has texturing on and other geometry inherits the
default texture flag. I can then turn texturing on for the terrain or other
models independently of each other using the above command.
However, if you do not have ready access to any of your geostates, then you
can use the pfuTraverser to search through the geosets and find the geostates
they use.
______________________________________________________________________________
/\ ______ /\____ ______ ______ E-mail: marrou++at++vsl.ist.ucf.edu
Visual / / / _ / / __ // ____// ____/ VSL: (407)658-5073
Systems / /__ / /_/ / / / / // /___ / __/_ R. Marrou Fax: (407)658-5059
Lab /____//____/\\/_/ /_//_____//_____/ http://www.vsl.ist.ucf.edu/~marrou
"Reap the whirlwind." "We don't need no thought control."
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:37 PDT