Skip to content

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 path

Scene node path.

shape ​

cpp
Shape shape

Primitive drawn per instance (not Ground). Mesh draws meshPath.

meshPath ​

cpp
std::string meshPath

a mesh file or a .rasset descriptor

size ​

cpp
Vec3 size

Mesh size.

colorA ​

cpp
Color colorA

Two colors blended per instance by colorWeights.

colorB ​

cpp
Color colorB

instances ​

cpp
std::vector<Transform> instances

Per-instance transforms (stored as 10 numbers each: position, quaternion w x y z, scale).

colorWeights ​

cpp
std::vector<double> colorWeights

Per-instance blend weights between colorA and colorB.

castShadows ​

cpp
bool castShadows

detectable ​

cpp
bool detectable

automaticMeshLod ​

cpp
bool automaticMeshLod

maxRenderedInstances ​

cpp
int maxRenderedInstances

renderedInstanceStride ​

cpp
int renderedInstanceStride

projectedLod ​

cpp
bool projectedLod

projectedLodMinRadiusPixels ​

cpp
double projectedLodMinRadiusPixels

projectedLodMaxStride ​

cpp
int projectedLodMaxStride

shadowFoliageLod ​

cpp
bool shadowFoliageLod

shadowFoliageLodMinRadiusPixels ​

cpp
double shadowFoliageLodMinRadiusPixels

shadowFoliageLodMaxStride ​

cpp
int shadowFoliageLodMaxStride

doubleBufferedInstanceUploads ​

cpp
bool doubleBufferedInstanceUploads

sortTransparentInstances ​

cpp
bool sortTransparentInstances

foliageWindEnabled ​

cpp
bool foliageWindEnabled

windRootHeight ​

cpp
double windRootHeight

windTipHeight ​

cpp
double windTipHeight

windStrength ​

cpp
double windStrength

windStiffness ​

cpp
double windStiffness

windFlutterWeight ​

cpp
double windFlutterWeight

RaiSim — physics for robotics and AI.