NNS_G3D_SBC_NODE

Command Format

Offset (bytes) Description
0 NNS_G3D_SBC_NODEMIX
1 Node ID.
2 If the lower order bit is 1, the node will be displayed. If the bit is 0 the node will not be displayed.

Description

The NNS_G3D_SBC_NODE command declares the node to which the material and shape information sent after this command belong. By default, this command calls the sbc.c function NNSi_G3dFuncSbc_NODE. This function internally performs the following processes:

  1. Sets the NNSG3dVisAnmResult structure's pointer to the pVisAnmResult member in the NNS_G3dRS structure.
  2. Checks the timing A callback. Callbacks in this position are convenient when substituting the visibility calculation to the callback function. You can skip processing until the next callback by setting the NNS_G3D_RSFLAG_SKIP flag in the NNS_G3dRS structure in the callback function.
  3. Sets *pVisAnmResult in response to whether the visibility information is static image or animation.
  4. Checks the timing B callback. Callbacks in this position are convenient when processing the results of the visibility calculation in the callback function.
  5. Sets the NNS_G3dRS flag in response to the results of *pVisAnmResult. Depending on whether subsequent commands use this flag, the polygons in the node are displayed or not displayed (visibility animation).
  6. Checks the timing C callback. Callbacks in this position are used when performing some sort of operation after this command finishes.


Timing for Calling a Callback Function Usage
NNS_G3D_SBC_CALLBACK_TIMING_A When you want to use a user callback to override the visibility calculations.
NNS_G3D_SBC_CALLBACK_TIMING_B When you want to extract or manipulate the visibility calculation results.
NNS_G3D_SBC_CALLBACK_TIMING_C When you want to insert some process after this command ends.

See Also

Revision History

2004/10/14 Added description.
2004/08/02 Initial version.


CONFIDENTIAL