raisim::rscene::TerrainFoliageLayer
struct · #include <raisim/Rscene.hpp>
A foliage layer scattered over a terrain by a viewer (terrain_foliage_layer). The density map and the seed decide the instances; a raisin::RayraiWindow showing the scene scatters them.
Public attributes
id
cpp
std::string idname
cpp
std::string nameenabled
cpp
bool enabledshape
cpp
Shape shapePrimitive drawn per instance (not Ground). A Mesh layer without meshPath draws boxes.
meshPath
cpp
std::string meshPathMesh file or .rasset descriptor.
size
cpp
Vec3 sizeBase size of an instance.
colorA
cpp
Color colorAColors blended per instance.
colorB
cpp
Color colorBdensity
cpp
std::vector<double> densityOne density in [0, 1] per terrain sample.
densityPerSquareMeter
cpp
double densityPerSquareMeterInstances per square metre at density 1, and the instance limit.
maxInstances
cpp
std::size_t maxInstancesminScale
cpp
double minScaleRandom scale range and rotation spreads (deg).
maxScale
cpp
double maxScalerandomYawDegrees
cpp
double randomYawDegreesrandomPitchDegrees
cpp
double randomPitchDegreesrandomRollDegrees
cpp
double randomRollDegreesalignToNormal
cpp
bool alignToNormalminHeight
cpp
double minHeightHeight (m) and slope (deg) ranges where instances are placed.
maxHeight
cpp
double maxHeightminSlopeDegrees
cpp
double minSlopeDegreesmaxSlopeDegrees
cpp
double maxSlopeDegreescastShadows
cpp
bool castShadowsdetectable
cpp
bool detectableautomaticMeshLod
cpp
bool automaticMeshLodmaxRenderedInstances
cpp
std::size_t maxRenderedInstancesrenderedInstanceStride
cpp
std::size_t renderedInstanceStrideprojectedLod
cpp
bool projectedLodprojectedLodMinRadiusPixels
cpp
double projectedLodMinRadiusPixelsprojectedLodMaxStride
cpp
std::size_t projectedLodMaxStridedoubleBufferedInstanceUploads
cpp
bool doubleBufferedInstanceUploadssortTransparentInstances
cpp
bool sortTransparentInstanceswindStrength
cpp
double windStrengthwindRootHeight
cpp
double windRootHeightwindTipHeight
cpp
double windTipHeightwindStiffness
cpp
double windStiffnesswindFlutterWeight
cpp
double windFlutterWeightseed
cpp
std::uint32_t seed