Component:VHACD Dialog: Difference between revisions

From Resonite Wiki
Automated: update SyncDelegates
update with remaining info
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
|Name=VHACD Dialog
|Name=VHACD Dialog
}}
}}
{{stub}}
The '''VHACD_Dialog''' component or V-HACD 2.0 dialog, is used to do a convex hull decomposition on a mesh to make the collision simpler and more performant.


== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|TargetCollider|'''[[Component:MeshCollider|MeshCollider]]'''|TypeAdv0=true|
|TargetCollider|'''[[Component:MeshCollider|MeshCollider]]'''|TypeAdv0=true| The collider to simplify.
|MergeDoubles|'''[[Component:Checkbox|Checkbox]]'''|TypeAdv1=true|
|MergeDoubles|'''[[Component:Checkbox|Checkbox]]'''|TypeAdv1=true| Whether to merge double vertices.
|Resolution|'''[[Component:IntTextEditorParser|IntTextEditorParser]]'''|TypeAdv2=true|
|Resolution|'''[[Component:IntTextEditorParser|IntTextEditorParser]]'''|TypeAdv2=true| maximum number of voxels generated during the voxelization stage
|Depth|'''[[Component:IntTextEditorParser|IntTextEditorParser]]'''|TypeAdv3=true|
|Depth|'''[[Component:IntTextEditorParser|IntTextEditorParser]]'''|TypeAdv3=true| maximum number of clipping stages. During each split stage, all the model parts (with a concavity higher than the user defined threshold) are clipped according the "best" clipping plane
|Concavity|'''[[Component:FloatTextEditorParser|FloatTextEditorParser]]'''|TypeAdv4=true|
|Concavity|'''[[Component:FloatTextEditorParser|FloatTextEditorParser]]'''|TypeAdv4=true| maximum concavity
|PlaneDownsampling|'''[[Component:IntTextEditorParser|IntTextEditorParser]]'''|TypeAdv5=true|
|PlaneDownsampling|'''[[Component:IntTextEditorParser|IntTextEditorParser]]'''|TypeAdv5=true| controls the granularity of the search for the "best" clipping plane
|ConvexHullDownsampling|'''[[Component:IntTextEditorParser|IntTextEditorParser]]'''|TypeAdv6=true|
|ConvexHullDownsampling|'''[[Component:IntTextEditorParser|IntTextEditorParser]]'''|TypeAdv6=true| controls the precision of the convex-hull generation process during the clipping plane selection stage
|Alpha|'''[[Component:FloatTextEditorParser|FloatTextEditorParser]]'''|TypeAdv7=true|
|Alpha|'''[[Component:FloatTextEditorParser|FloatTextEditorParser]]'''|TypeAdv7=true| controls the bias toward clipping along symmetry planes
|Beta|'''[[Component:FloatTextEditorParser|FloatTextEditorParser]]'''|TypeAdv8=true|
|Beta|'''[[Component:FloatTextEditorParser|FloatTextEditorParser]]'''|TypeAdv8=true| controls the bias toward clipping along revolution axes
|Gamma|'''[[Component:FloatTextEditorParser|FloatTextEditorParser]]'''|TypeAdv9=true|
|Gamma|'''[[Component:FloatTextEditorParser|FloatTextEditorParser]]'''|TypeAdv9=true| maximum allowed concavity during the merge stage
|Delta|'''[[Component:FloatTextEditorParser|FloatTextEditorParser]]'''|TypeAdv10=true|
|Delta|'''[[Component:FloatTextEditorParser|FloatTextEditorParser]]'''|TypeAdv10=true| Controls the bias toward maximizing local concavity
|PCA|'''[[Component:Checkbox|Checkbox]]'''|TypeAdv11=true|
|PCA|'''[[Component:Checkbox|Checkbox]]'''|TypeAdv11=true| enable/disable normalizing the mesh before applying the convex decomposition
|Mode|DecompositionMode|
|Mode|DecompositionMode| how to base the approximate convex decomposition
|MaxVerticesPerHull|'''[[Component:IntTextEditorParser|IntTextEditorParser]]'''|TypeAdv13=true|
|MaxVerticesPerHull|'''[[Component:IntTextEditorParser|IntTextEditorParser]]'''|TypeAdv13=true| controls the maximum number of vertices per convex-hull
|MinVolumePerHull|'''[[Component:FloatTextEditorParser|FloatTextEditorParser]]'''|TypeAdv14=true|
|MinVolumePerHull|'''[[Component:FloatTextEditorParser|FloatTextEditorParser]]'''|TypeAdv14=true| controls the adaptive sampling of the generated convex-hulls
|ConvexHullApproximation|'''[[Component:Checkbox|Checkbox]]'''|TypeAdv15=true|
|ConvexHullApproximation|'''[[Component:Checkbox|Checkbox]]'''|TypeAdv15=true| Approximate the convex hulls.
}}
}}


== Sync Delegates ==
== Sync Delegates ==
{{Table ComponentTriggers
{{Table ComponentTriggers
|RunDecomposition[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|RunDecomposition:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Activates and starts running the decomposition.
|RemoveVisuals[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|RemoveVisuals:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Removes the generated visuals after making a convex hull decomposition.
|RemoveHulls[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|RemoveHulls:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Delete any generated hulls.
}}
}}


== Behavior ==
== Usage ==
* [https://github.com/Unity-Technologies/VHACD V-HACD 2.0 Github]


== Examples ==
== Examples ==
* [https://github.com/Unity-Technologies/VHACD V-HACD 2.0 Github]


== See Also ==
== See Also ==
* [https://github.com/Unity-Technologies/VHACD V-HACD 2.0 Github]


[[Category:Components:Uncategorized{{#translation:}}|VHACD Dialog]]
[[Category:Components:Uncategorized{{#translation:}}|VHACD Dialog]]
[[Category:Components{{#translation:}}|VHACD Dialog]]
[[Category:Components{{#translation:}}|VHACD Dialog]]
[[Category:ComponentStubs]]

Latest revision as of 00:05, 4 May 2025

Component image 
VHACD Dialog component as seen in the Scene Inspector

The VHACD_Dialog component or V-HACD 2.0 dialog, is used to do a convex hull decomposition on a mesh to make the collision simpler and more performant.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't.
TargetCollider MeshCollider The collider to simplify.
MergeDoubles Checkbox Whether to merge double vertices.
Resolution IntTextEditorParser maximum number of voxels generated during the voxelization stage
Depth IntTextEditorParser maximum number of clipping stages. During each split stage, all the model parts (with a concavity higher than the user defined threshold) are clipped according the "best" clipping plane
Concavity FloatTextEditorParser maximum concavity
PlaneDownsampling IntTextEditorParser controls the granularity of the search for the "best" clipping plane
ConvexHullDownsampling IntTextEditorParser controls the precision of the convex-hull generation process during the clipping plane selection stage
Alpha FloatTextEditorParser controls the bias toward clipping along symmetry planes
Beta FloatTextEditorParser controls the bias toward clipping along revolution axes
Gamma FloatTextEditorParser maximum allowed concavity during the merge stage
Delta FloatTextEditorParser Controls the bias toward maximizing local concavity
PCA Checkbox enable/disable normalizing the mesh before applying the convex decomposition
Mode DecompositionMode how to base the approximate convex decomposition
MaxVerticesPerHull IntTextEditorParser controls the maximum number of vertices per convex-hull
MinVolumePerHull FloatTextEditorParser controls the adaptive sampling of the generated convex-hulls
ConvexHullApproximation Checkbox Approximate the convex hulls.

Sync Delegates

Triggers
Method Name Method type and Arguments. Is the method hidden? Description
RunDecomposition:ButtonEventHandler ButtonEventHandler Activates and starts running the decomposition.
RemoveVisuals:ButtonEventHandler ButtonEventHandler Removes the generated visuals after making a convex hull decomposition.
RemoveHulls:ButtonEventHandler ButtonEventHandler Delete any generated hulls.

Usage

Examples

See Also