HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SOP_BouncyAgent.C File Reference

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_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 <CL/CL_Clip.h>
#include <CL/CL_Track.h>
#include <UT/UT_Array.h>
#include <UT/UT_DSOVersion.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.

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)
 

Detailed Description

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.

Macro Definition Documentation

#define SOP_COLLISION_SKIN_NAME   GU_AGENT_LAYER_COLLISION".skin"
Examples:
SOP/SOP_BouncyAgent.C.

Definition at line 263 of file SOP_BouncyAgent.C.

#define SOP_DEFAULT_SKIN_NAME   GU_AGENT_LAYER_DEFAULT".skin"
Examples:
SOP/SOP_BouncyAgent.C.

Definition at line 262 of file SOP_BouncyAgent.C.

#define SOP_SAVE_AGENT_DEFINITION   0

Definition at line 408 of file SOP_BouncyAgent.C.

Enumeration Type Documentation

anonymous enum
Enumerator
SOP_SKIN_RIG_INDEX 
SOP_PARENT_RIG_INDEX 
SOP_CHILD_RIG_INDEX 
SOP_JOINT_BEGIN 
SOP_JOINT_END 

Definition at line 138 of file SOP_BouncyAgent.C.

Function Documentation

void newSopOperator ( OP_OperatorTable table)

Definition at line 70 of file SOP_BouncyAgent.C.