VrayProcedural/mantra geo shader that creates an instances of a given geometry file on each point of object with the geometry shader applied. Applies color (as Cd attribute) and scaling to instanced objects. The Instance color is taken from geometry objects point Cd or a random color if no Cd attribute is found. Use from stampFile.otl, see .hip for an example scene. WIP, has no motion blur yet. Could add more features like variation based on user definded point attributes, think about hnadling textures, animation. More...
#include <GB/GB_ExtraMacros.h>#include <GB/GB_AttributeDefines.h>#include <GEO/GEO_AttributeHandle.h>#include <GEO/GEO_Point.h>#include <GU/GU_Detail.h>#include <GU/GU_PrimPoly.h>#include <SYS/SYS_Math.h>#include <UT/UT_XformOrder.h>#include <UT/UT_Vector3.h>#include <UT/UT_Vector4.h>#include <UT/UT_Matrix3.h>#include <UT/UT_Matrix4.h>#include <UT/UT_DSOVersion.h>#include <time.h>#include "VRAY_StampFile.h"Go to the source code of this file.
Classes | |
| class | vray_InstanceFile |
| instanced file More... | |
Functions | |
| fpreal | remapValue (fpreal minV, fpreal maxV, fpreal value) |
| map value to min, max range | |
VrayProcedural/mantra geo shader that creates an instances of a given geometry file on each point of object with the geometry shader applied. Applies color (as Cd attribute) and scaling to instanced objects. The Instance color is taken from geometry objects point Cd or a random color if no Cd attribute is found. Use from stampFile.otl, see .hip for an example scene. WIP, has no motion blur yet. Could add more features like variation based on user definded point attributes, think about hnadling textures, animation.
Definition in file VRAY_StampFile.C.
1.6.1