| 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. |
The NNS_G3D_SBC_NODE command determines the node to which the materials and shapes sent after this command belong. By default, this command calls the sbc.c function NNSi_G3dFuncSbc_NODE. The following processes are performed inside this function:
NNSG3dVisAnmResult structure's pointer to the pVisAnmResult member in the NNS_G3dRS structure.
A callback. The callback in this position is convenient when substituting the visibility calculation in 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.
*pMatAnmResult when the visibility information is static image / animation
B callback. The callback in this position is convenient when processing the results of the visibility calculation in the callback function.
NNS_G3dRS in response to the results of *pVisAnmResult. As subsequent commands use this flag, the polygon in the node displays or not, depending on the settings (visibility animation).
C callback. The callback in this position is 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 the visibility calculation results. Or when you want to manipulate the visibility calculation results. |
NNS_G3D_SBC_CALLBACK_TIMING_C |
When you want to enter some process after this command ends. |
10/14/2004 Revised description.
08/02/2004 Initial version.