|
HDK
|
Demonstrates example for creating a procedural agent primitive. More...
#include "SOP_BouncyAgent.h"#include <OP/OP_AutoLockInputs.h>#include <OP/OP_Operator.h>#include <OP/OP_OperatorTable.h>#include <PRM/PRM_Include.h>#include <PRM/PRM_Type.h>#include <CH/CH_Manager.h>#include <GU/GU_Agent.h>#include <GU/GU_AgentBlendShapeUtils.h>#include <GU/GU_AgentRig.h>#include <GU/GU_AgentShapeLib.h>#include <GU/GU_AgentLayer.h>#include <GU/GU_PrimPacked.h>#include <GU/GU_PrimSphere.h>#include <GEO/GEO_AttributeCaptureRegion.h>#include <GEO/GEO_AttributeIndexPairs.h>#include <GA/GA_AIFIndexPair.h>#include <GA/GA_Names.h>#include <CL/CL_Clip.h>#include <CL/CL_Track.h>#include <UT/UT_Array.h>#include <UT/UT_DSOVersion.h>#include <UT/UT_JSONParser.h>#include <UT/UT_JSONWriter.h>#include <UT/UT_Interrupt.h>#include <UT/UT_String.h>#include <UT/UT_StringArray.h>#include <UT/UT_WorkBuffer.h>#include <stdlib.h>
Include dependency graph for SOP_BouncyAgent.C:Go to the source code of this file.
Classes | |
| class | GU_BouncyAgentCustomData |
Macros | |
| #define | SOP_DEFAULT_SKIN_NAME GU_AGENT_LAYER_DEFAULT".skin" |
| #define | SOP_COLLISION_SKIN_NAME GU_AGENT_LAYER_COLLISION".skin" |
| #define | SOP_SAVE_AGENT_DEFINITION 0 |
Enumerations | |
| enum | { SOP_SKIN_RIG_INDEX = 0, SOP_PARENT_RIG_INDEX, SOP_CHILD_RIG_INDEX, SOP_JOINT_BEGIN = SOP_PARENT_RIG_INDEX, SOP_JOINT_END = SOP_CHILD_RIG_INDEX + 1 } |
Functions | |
| void | newSopOperator (OP_OperatorTable *table) |
| void | GUregisterAgentCustomDataItemType () |
| Entry point for registering GU_BouncyAgentCustomData. More... | |
Demonstrates example for creating a procedural agent primitive.
The node creates an agent primitive for every point from its input geometry that uses the same shared agent definition. The agent definition itself is a unit polygonal sphere that has skin weights bound to two joints (a parent and a child) with animation that bounces it in TY.
Definition in file SOP_BouncyAgent.C.
| #define SOP_COLLISION_SKIN_NAME GU_AGENT_LAYER_COLLISION".skin" |
Definition at line 357 of file SOP_BouncyAgent.C.
| #define SOP_DEFAULT_SKIN_NAME GU_AGENT_LAYER_DEFAULT".skin" |
Definition at line 356 of file SOP_BouncyAgent.C.
| #define SOP_SAVE_AGENT_DEFINITION 0 |
Definition at line 637 of file SOP_BouncyAgent.C.
| anonymous enum |
| Enumerator | |
|---|---|
| SOP_SKIN_RIG_INDEX | |
| SOP_PARENT_RIG_INDEX | |
| SOP_CHILD_RIG_INDEX | |
| SOP_JOINT_BEGIN | |
| SOP_JOINT_END | |
Definition at line 145 of file SOP_BouncyAgent.C.
| void GUregisterAgentCustomDataItemType | ( | ) |
Entry point for registering GU_BouncyAgentCustomData.
Entry point for registering custom data item types.
Definition at line 630 of file SOP_BouncyAgent.C.
| void newSopOperator | ( | OP_OperatorTable * | table | ) |
Definition at line 74 of file SOP_BouncyAgent.C.