CodeBase - [DGDK]Object Masking(dbpro Set Object Mask)
Return to the CodeBase listing
Category: Basic 3D
Version: all
Information
Uploaded: 15th Aug 2009 03:23
Modified: 1st Jan 1970 01:00
Author: Mista Wilson
Summary
This function sets the object's mask value, works the same as the DBPro exquiv command : Set Object Mask
Full Description
This function works in exactly the same way as the DBPro command : Set Object Mask<br /> It is very handy when using multiple render cameras in a large scene, as hiding and showing multiple objects to multiple cameras will quicky become difficult.<br /> <br /> The mask value that you pass is the same as for the dbSyncMask command. The way this will operate is that the object will ONLY render on the camera/s that you pass it in the mask value, so, if you passed 1<<1|1<<2 it would only show the object on cameras 1 and 2 and mask it from all others.<br /> <br /> It is easiest to pass a bitshift for the mask value, 1<<CamID .. you can use bitwise operators to combine and oprate on the mask value.<br /> <br /> The Function will return true if the mask value was set, or false if the object does not exist and the mask was not set. Checking the return value is not needed, its just incase you need too.
Comments
No comments yet.