INFO: Expression That Controls an Objects Visibility
  
PSS ID Number: Q175815
Article last modified on 11-07-1997
 
IRIX:3.51,3.7; WINNT:3.51,3.7
 
IRIX winnt
 

======================================================================
---------------------------------------------------------------------
The information in this article applies to:
 
 - Softimage 3D for IRIX, versions 3.51, 3.7
 - Softimage 3D for Windows NT, versions 3.51, 3.7
---------------------------------------------------------------------
 
SUMMARY
=======
 
This article offers an expression that will control the visibility of an
object depending on the object's distance from the camera.
 
   obj.nvisib = cond(ctr_dist_cam(obj.) > 35,0,1)
 
With this expression, the object is invisible (hidden) when it is more than
35 SOFTIMAGE units from the camera.
 
If you have a hierarchy of objects, replace nvisib with bvisib.
 
REFERENCES
==========
 
If you have any questions concerning the information contained in this
article, contact support@softimage.com by e-mail.
 
Additional query words: si si3d si3dmot
======================================================================
Keywords          : si si3d si3dmot
Version           : IRIX:3.51,3.7; WINNT:3.51,3.7
Platform          : IRIX winnt
Issue type        : kbinfo
=============================================================================
Copyright Microsoft Corporation 1997.