raisim::rscene::InstancedVisual
struct · #include <raisim/Rscene.hpp>
A batch of instanced visuals (render only; no physics). Only enabled batches are loaded. The LOD, shadow and wind fields are viewer settings stored as in the file.
Public attributes
path
cpp
std::string pathScene node path.
shape
cpp
Shape shapePrimitive drawn per instance (not Ground). Mesh draws meshPath.
meshPath
cpp
std::string meshPatha mesh file or a .rasset descriptor
size
cpp
Vec3 sizeMesh size.
colorA
cpp
Color colorATwo colors blended per instance by colorWeights.
colorB
cpp
Color colorBinstances
cpp
std::vector<Transform> instancesPer-instance transforms (stored as 10 numbers each: position, quaternion w x y z, scale).
colorWeights
cpp
std::vector<double> colorWeightsPer-instance blend weights between colorA and colorB.
castShadows
cpp
bool castShadowsdetectable
cpp
bool detectableautomaticMeshLod
cpp
bool automaticMeshLodmaxRenderedInstances
cpp
int maxRenderedInstancesrenderedInstanceStride
cpp
int renderedInstanceStrideprojectedLod
cpp
bool projectedLodprojectedLodMinRadiusPixels
cpp
double projectedLodMinRadiusPixelsprojectedLodMaxStride
cpp
int projectedLodMaxStrideshadowFoliageLod
cpp
bool shadowFoliageLodshadowFoliageLodMinRadiusPixels
cpp
double shadowFoliageLodMinRadiusPixelsshadowFoliageLodMaxStride
cpp
int shadowFoliageLodMaxStridedoubleBufferedInstanceUploads
cpp
bool doubleBufferedInstanceUploadssortTransparentInstances
cpp
bool sortTransparentInstancesfoliageWindEnabled
cpp
bool foliageWindEnabledwindRootHeight
cpp
double windRootHeightwindTipHeight
cpp
double windTipHeightwindStrength
cpp
double windStrengthwindStiffness
cpp
double windStiffnesswindFlutterWeight
cpp
double windFlutterWeight