STATE_group_disable

 

 



  Disable or enabled a group.
  A disabled group is not included in rendering and in collision detection.
  This is a very important function for making large fast worlds using LOD (More details bellow)
  This function can be used to disable parts of the world that are not seen
  (This technique is done automatically when using the speed database)
   Another important usage is doing LOD (level of details)
   Each model in the world (building, mountain , a chair, etc ...) should be built
   several times. Each version of the model should use less polygons (for example the higher
   version should be built from 100 polygons, the second version from 50 polygons, the third from 20 polygons and
   the lowest level from just one rotated polygon that has a bitmap of the tree\chair\building or whatever model we
   are using).
   Before calling STATE_engine_render() check the distance between the camera (the view point)
   and each of the models that have LOD versions. Disable all the versions that should not be used
   and enable just the one that fits to the distance from the viewer
   The function is very fast (just set a flag and returns)
   Parameters:
  	group_handle: the group to be disabled \ enabled
  	YES_or_NO: YES to disable. NO to enable
  
   Example:
  	  disabling a group 
  	STATE_group_disable(a_group_handle, YES);

 

 

Go to page 1      Select API

 

Copyright © 2007 3DSTATE Corporation. www.3dstate.com