17#include <geometry/surface.h>
98 virtual void init(
const Vx::VxMaterialTable* materialTable);
166 std::vector<VortexSurfaceInfo*>
168 std::vector<VortexSurfaceInfo*>
170 std::vector<VortexSurfaceInfo*>
std::vector< VortexSurfaceInfo * > mySoilTypeToMaterialMap
Mapping from soil types to Vortex materials.
Definition surfaceToVxMaterialMapper.h:165
virtual void init(const Vx::VxMaterialTable *materialTable)
Initialize the material mapper with a Vortex material table.
virtual std::vector< VortexSurfaceMaterialMapping > materialMappings() const
Returns snapshots of all configured terrain surface-to-material mappings.
std::vector< VortexSurfaceInfo * > myCulturalFeatureTypeToMaterialMap
Mapping from cultural feature types to Vortex materials.
Definition surfaceToVxMaterialMapper.h:169
std::vector< VortexSurfaceInfo * > myRoughnessSoilTypeToMaterialMap
Mapping from roughness soil types to Vortex materials.
Definition surfaceToVxMaterialMapper.h:171
bool isInitialized() const
Checks whether the material mappings were initialized successfully.
bool isFiltered(const DtSurface &surf)
Check if a surface should be filtered out.
virtual ~DtSurfaceToVxMaterialMapper()
Destructor.
Vx::VxMaterial * getDefaultVortexMaterial()
Get the default Vortex material.
Vx::VxMaterial * myDefaultMaterial
Non-owning fallback material for unmapped surfaces.
Definition surfaceToVxMaterialMapper.h:162
VortexSurfaceInfo * getSurfaceInfo(const DtSurface &surf) const
Get the surface info for a specific terrain surface.
bool myInitialized
Whether initialization resolved a valid default material.
Definition surfaceToVxMaterialMapper.h:163
std::vector< VortexSurfaceInfo * > myBodyOfWaterTypeToMaterialMap
Mapping from body of water types to Vortex materials.
Definition surfaceToVxMaterialMapper.h:167
void clearMappings()
Clears all resolved material mappings.
DtSurfaceToVxMaterialMapper()
Default constructor.
Vx::VxMaterial * getVortexMaterial(const DtSurface &surf)
Get the Vortex material for a specific terrain surface.
Export macros for the VR-Forces Vortex extension library.
#define VREVRFVORTEX_DLL
Export macro for non-Windows platforms.
Definition export.h:30
Wheel articulated part IDs used in the system.
Definition surfaceToVxMaterialMapper.h:20
!
Definition glsVreMessageUtil.h:50
Structure that holds information about a Vortex surface material mapping.
Definition surfaceToVxMaterialMapper.h:32
bool isFiltered
Flag indicating if this surface should be filtered out in triangle generation.
Definition surfaceToVxMaterialMapper.h:45
VortexSurfaceInfo()
Default constructor.
Definition surfaceToVxMaterialMapper.h:36
Vx::VxMaterial * material
Pointer to the Vortex material.
Definition surfaceToVxMaterialMapper.h:44
std::string surfaceTypeString
String representation of the surface type.
Definition surfaceToVxMaterialMapper.h:48
bool isUsingDefault
Flag indicating if this surface is using the default material.
Definition surfaceToVxMaterialMapper.h:47
std::string surfaceTypeMapping
The material mapping string from configuration.
Definition surfaceToVxMaterialMapper.h:49
bool shouldUseRoughnessMap
Flag indicating if roughness mapping should be used for this surface.
Definition surfaceToVxMaterialMapper.h:46
Value snapshot of a terrain surface-to-Vortex-material mapping.
Definition surfaceToVxMaterialMapper.h:58
bool usesRoughnessMapping
Whether material selection depends on roughness.
Definition surfaceToVxMaterialMapper.h:64
std::string configuredMapping
Mapping rule configured in vortexConfig.lua.
Definition surfaceToVxMaterialMapper.h:61
std::string category
Surface category, such as soil or roughness.
Definition surfaceToVxMaterialMapper.h:59
bool isFiltered
Whether triangles for the surface type are filtered.
Definition surfaceToVxMaterialMapper.h:63
const Vx::VxMaterial * material
Non-owning resolved material, or nullptr when no material applies.
Definition surfaceToVxMaterialMapper.h:62
bool usesDefaultMaterial
Whether the configured default material is used.
Definition surfaceToVxMaterialMapper.h:65
std::string surfaceType
VR-Forces surface type within the category.
Definition surfaceToVxMaterialMapper.h:60