G1R AngelScript
Scripting reference for the Gothic 1 Remake
Loading...
Searching...
No Matches
FMeshProxySettings Struct Reference

Public Member Functions

Functions
void SetbUseLandscapeCulling (bool Value)
 Whether or not to use available landscape geometry to cull away invisible triangles.
bool GetbCalculateCorrectLODModel () const
 Determines whether or not the correct LOD models should be calculated given the source meshes and transition size.
void SetbCalculateCorrectLODModel (bool Value)
 Determines whether or not the correct LOD models should be calculated given the source meshes and transition size.
bool GetbOverrideVoxelSize () const
 If true, Spatial Sampling Distance will not be automatically computed based on geometry and you must set it directly.
void SetbOverrideVoxelSize (bool Value)
 If true, Spatial Sampling Distance will not be automatically computed based on geometry and you must set it directly.
bool GetbOverrideTransferDistance () const
 Enable an override for material transfer distance.
void SetbOverrideTransferDistance (bool Value)
 Enable an override for material transfer distance.
bool GetbUseHardAngleThreshold () const
 Enable the use of hard angle based vertex splitting.
void SetbUseHardAngleThreshold (bool Value)
 Enable the use of hard angle based vertex splitting.
bool GetbComputeLightMapResolution () const
 If ticked will compute the lightmap resolution by summing the dimensions for each mesh included for merging.
void SetbComputeLightMapResolution (bool Value)
 If ticked will compute the lightmap resolution by summing the dimensions for each mesh included for merging.
bool GetbRecalculateNormals () const
 Whether Simplygon should recalculate normals, otherwise the normals channel will be sampled from the original mesh.
void SetbRecalculateNormals (bool Value)
 Whether Simplygon should recalculate normals, otherwise the normals channel will be sampled from the original mesh.
bool GetbUseLandscapeCulling () const
 Whether or not to use available landscape geometry to cull away invisible triangles.
FMeshProxySettings & opAssign (FMeshProxySettings Other)
bool GetbSupportRayTracing () const
 Whether ray tracing will be supported on this mesh. Disable this to save memory if the generated mesh will only be rendered in the distance.
void SetbSupportRayTracing (bool Value)
 Whether ray tracing will be supported on this mesh. Disable this to save memory if the generated mesh will only be rendered in the distance.
bool GetbAllowDistanceField () const
 Whether to allow distance field to be computed for this mesh. Disable this to save memory if the merged mesh will only be rendered in the distance.
void SetbAllowDistanceField (bool Value)
 Whether to allow distance field to be computed for this mesh. Disable this to save memory if the merged mesh will only be rendered in the distance.
bool GetbReuseMeshLightmapUVs () const
 Whether to attempt to re-use the source mesh's lightmap UVs when baking the material or always generate a new set.
void SetbReuseMeshLightmapUVs (bool Value)
 Whether to attempt to re-use the source mesh's lightmap UVs when baking the material or always generate a new set.
bool GetbGroupIdenticalMeshesForBaking () const
 Bake identical meshes (or mesh instances) only once. Can lead to discrepancies with the source mesh visual, especially for materials that are using world position or per instance data. However, this will result in better quality baked textures & greatly reduce baking time.
void SetbGroupIdenticalMeshesForBaking (bool Value)
 Bake identical meshes (or mesh instances) only once. Can lead to discrepancies with the source mesh visual, especially for materials that are using world position or per instance data. However, this will result in better quality baked textures & greatly reduce baking time.
bool GetbCreateCollision () const
 Whether to generate collision for the merged mesh.
void SetbCreateCollision (bool Value)
 Whether to generate collision for the merged mesh.
bool GetbAllowVertexColors () const
 Whether to allow vertex colors saved in the merged mesh.
void SetbAllowVertexColors (bool Value)
 Whether to allow vertex colors saved in the merged mesh.
bool GetbGenerateLightmapUVs () const
 Whether to generate lightmap uvs for the merged mesh.
void SetbGenerateLightmapUVs (bool Value)
 Whether to generate lightmap uvs for the merged mesh.

Public Attributes

LandscapeCulling
ELandscapeCullingPrecision LandscapeCullingPrecision
 Level of detail of the landscape that should be used for the culling.
NaniteSettings
FMeshNaniteSettings NaniteSettings
 Settings related to building Nanite data.
ProxySettings
float32 MergeDistance
 Distance at which meshes should be merged together, this can close gaps like doors and windows in distant geometry.
FMaterialProxySettings MaterialSettings
 Material simplification.
float32 VoxelSize
 Override when converting multiple meshes for proxy LOD merging. Warning, large geometry with small sampling has very high memory costs.
FColor UnresolvedGeometryColor
 Base color assigned to LOD geometry that can't be associated with the source geometry: e.g. doors and windows that have been closed by the Merge Distance.
int ScreenSize
 Screen size of the resulting proxy mesh in pixels.
int LightMapResolution
 Lightmap resolution.
EProxyNormalComputationMethod NormalCalculationMethod
 Controls the method used to calculate the normal for the simplified geometry.
float32 MaxRayCastDist
 Override search distance used when discovering texture values for simplified geometry. Useful when non-zero Merge Distance setting generates new geometry in concave corners.
float32 HardAngleThreshold
 Angle at which a hard edge is introduced between faces.
Variables
bool bCalculateCorrectLODModel
bool bOverrideVoxelSize
bool bOverrideTransferDistance
bool bUseHardAngleThreshold
bool bComputeLightMapResolution
bool bRecalculateNormals
bool bUseLandscapeCulling
bool bSupportRayTracing
bool bAllowDistanceField
bool bReuseMeshLightmapUVs
bool bGroupIdenticalMeshesForBaking
bool bCreateCollision
bool bAllowVertexColors
bool bGenerateLightmapUVs

Member Function Documentation

◆ GetbAllowDistanceField()

bool GetbAllowDistanceField ( ) const

Whether to allow distance field to be computed for this mesh. Disable this to save memory if the merged mesh will only be rendered in the distance.

◆ GetbAllowVertexColors()

bool GetbAllowVertexColors ( ) const

Whether to allow vertex colors saved in the merged mesh.

◆ GetbCalculateCorrectLODModel()

bool GetbCalculateCorrectLODModel ( ) const

Determines whether or not the correct LOD models should be calculated given the source meshes and transition size.

◆ GetbComputeLightMapResolution()

bool GetbComputeLightMapResolution ( ) const

If ticked will compute the lightmap resolution by summing the dimensions for each mesh included for merging.

◆ GetbCreateCollision()

bool GetbCreateCollision ( ) const

Whether to generate collision for the merged mesh.

◆ GetbGenerateLightmapUVs()

bool GetbGenerateLightmapUVs ( ) const

Whether to generate lightmap uvs for the merged mesh.

◆ GetbGroupIdenticalMeshesForBaking()

bool GetbGroupIdenticalMeshesForBaking ( ) const

Bake identical meshes (or mesh instances) only once. Can lead to discrepancies with the source mesh visual, especially for materials that are using world position or per instance data. However, this will result in better quality baked textures & greatly reduce baking time.

◆ GetbOverrideTransferDistance()

bool GetbOverrideTransferDistance ( ) const

Enable an override for material transfer distance.

◆ GetbOverrideVoxelSize()

bool GetbOverrideVoxelSize ( ) const

If true, Spatial Sampling Distance will not be automatically computed based on geometry and you must set it directly.

◆ GetbRecalculateNormals()

bool GetbRecalculateNormals ( ) const

Whether Simplygon should recalculate normals, otherwise the normals channel will be sampled from the original mesh.

◆ GetbReuseMeshLightmapUVs()

bool GetbReuseMeshLightmapUVs ( ) const

Whether to attempt to re-use the source mesh's lightmap UVs when baking the material or always generate a new set.

◆ GetbSupportRayTracing()

bool GetbSupportRayTracing ( ) const

Whether ray tracing will be supported on this mesh. Disable this to save memory if the generated mesh will only be rendered in the distance.

◆ GetbUseHardAngleThreshold()

bool GetbUseHardAngleThreshold ( ) const

Enable the use of hard angle based vertex splitting.

◆ GetbUseLandscapeCulling()

bool GetbUseLandscapeCulling ( ) const

Whether or not to use available landscape geometry to cull away invisible triangles.

◆ opAssign()

◆ SetbAllowDistanceField()

void SetbAllowDistanceField ( bool Value)

Whether to allow distance field to be computed for this mesh. Disable this to save memory if the merged mesh will only be rendered in the distance.

◆ SetbAllowVertexColors()

void SetbAllowVertexColors ( bool Value)

Whether to allow vertex colors saved in the merged mesh.

◆ SetbCalculateCorrectLODModel()

void SetbCalculateCorrectLODModel ( bool Value)

Determines whether or not the correct LOD models should be calculated given the source meshes and transition size.

◆ SetbComputeLightMapResolution()

void SetbComputeLightMapResolution ( bool Value)

If ticked will compute the lightmap resolution by summing the dimensions for each mesh included for merging.

◆ SetbCreateCollision()

void SetbCreateCollision ( bool Value)

Whether to generate collision for the merged mesh.

◆ SetbGenerateLightmapUVs()

void SetbGenerateLightmapUVs ( bool Value)

Whether to generate lightmap uvs for the merged mesh.

◆ SetbGroupIdenticalMeshesForBaking()

void SetbGroupIdenticalMeshesForBaking ( bool Value)

Bake identical meshes (or mesh instances) only once. Can lead to discrepancies with the source mesh visual, especially for materials that are using world position or per instance data. However, this will result in better quality baked textures & greatly reduce baking time.

◆ SetbOverrideTransferDistance()

void SetbOverrideTransferDistance ( bool Value)

Enable an override for material transfer distance.

◆ SetbOverrideVoxelSize()

void SetbOverrideVoxelSize ( bool Value)

If true, Spatial Sampling Distance will not be automatically computed based on geometry and you must set it directly.

◆ SetbRecalculateNormals()

void SetbRecalculateNormals ( bool Value)

Whether Simplygon should recalculate normals, otherwise the normals channel will be sampled from the original mesh.

◆ SetbReuseMeshLightmapUVs()

void SetbReuseMeshLightmapUVs ( bool Value)

Whether to attempt to re-use the source mesh's lightmap UVs when baking the material or always generate a new set.

◆ SetbSupportRayTracing()

void SetbSupportRayTracing ( bool Value)

Whether ray tracing will be supported on this mesh. Disable this to save memory if the generated mesh will only be rendered in the distance.

◆ SetbUseHardAngleThreshold()

void SetbUseHardAngleThreshold ( bool Value)

Enable the use of hard angle based vertex splitting.

◆ SetbUseLandscapeCulling()

void SetbUseLandscapeCulling ( bool Value)

Whether or not to use available landscape geometry to cull away invisible triangles.

Member Data Documentation

◆ bAllowDistanceField

bool bAllowDistanceField

◆ bAllowVertexColors

bool bAllowVertexColors

◆ bCalculateCorrectLODModel

bool bCalculateCorrectLODModel

◆ bComputeLightMapResolution

bool bComputeLightMapResolution

◆ bCreateCollision

bool bCreateCollision

◆ bGenerateLightmapUVs

bool bGenerateLightmapUVs

◆ bGroupIdenticalMeshesForBaking

bool bGroupIdenticalMeshesForBaking

◆ bOverrideTransferDistance

bool bOverrideTransferDistance

◆ bOverrideVoxelSize

bool bOverrideVoxelSize

◆ bRecalculateNormals

bool bRecalculateNormals

◆ bReuseMeshLightmapUVs

bool bReuseMeshLightmapUVs

◆ bSupportRayTracing

bool bSupportRayTracing

◆ bUseHardAngleThreshold

bool bUseHardAngleThreshold

◆ bUseLandscapeCulling

bool bUseLandscapeCulling

◆ HardAngleThreshold

float32 HardAngleThreshold

Angle at which a hard edge is introduced between faces.

◆ LandscapeCullingPrecision

ELandscapeCullingPrecision LandscapeCullingPrecision

Level of detail of the landscape that should be used for the culling.

◆ LightMapResolution

int LightMapResolution

Lightmap resolution.

◆ MaterialSettings

FMaterialProxySettings MaterialSettings

Material simplification.

◆ MaxRayCastDist

float32 MaxRayCastDist

Override search distance used when discovering texture values for simplified geometry. Useful when non-zero Merge Distance setting generates new geometry in concave corners.

◆ MergeDistance

float32 MergeDistance

Distance at which meshes should be merged together, this can close gaps like doors and windows in distant geometry.

◆ NaniteSettings

FMeshNaniteSettings NaniteSettings

Settings related to building Nanite data.

◆ NormalCalculationMethod

EProxyNormalComputationMethod NormalCalculationMethod

Controls the method used to calculate the normal for the simplified geometry.

◆ ScreenSize

int ScreenSize

Screen size of the resulting proxy mesh in pixels.

◆ UnresolvedGeometryColor

FColor UnresolvedGeometryColor

Base color assigned to LOD geometry that can't be associated with the source geometry: e.g. doors and windows that have been closed by the Merge Distance.

◆ VoxelSize

float32 VoxelSize

Override when converting multiple meshes for proxy LOD merging. Warning, large geometry with small sampling has very high memory costs.