meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
geometry_forces [2023/04/03 17:24] – steph.jorgensen | geometry_forces [2023/07/10 11:34] (current) – steph.jorgensen | ||
---|---|---|---|
Line 4: | Line 4: | ||
* Identify the geometry to be used (either a mesh asset or parts of the model itself) | * Identify the geometry to be used (either a mesh asset or parts of the model itself) | ||
* Position it in the scene (if it’s a mesh asset, model parts remain where they are) | * Position it in the scene (if it’s a mesh asset, model parts remain where they are) | ||
- | * Embed it in the output (if it’s a mesh asset, model pars already are) | + | * Embed it in the output (if it’s a mesh asset, model parts already are) |
* Specify how things behave around the geometry (attracted to it, avoid it, ignore it, etc.) | * Specify how things behave around the geometry (attracted to it, avoid it, ignore it, etc.) | ||
* Specify what happens if anything hits the geometry (crawl around it, stop, etc.) | * Specify what happens if anything hits the geometry (crawl around it, stop, etc.) | ||
Line 31: | Line 31: | ||
* Select your mesh asset with the property “Geometry: | * Select your mesh asset with the property “Geometry: | ||
- | {{ :geometry_forces_mesh_asset_mesh.png? | + | {{geometry_forces_mesh_asset_mesh.png? |
If you’re using a mesh asset, you can assign a material to it, embed it in the model, and transform it with the scene gizmo using the other properties in the “Geometry: | If you’re using a mesh asset, you can assign a material to it, embed it in the model, and transform it with the scene gizmo using the other properties in the “Geometry: | ||
Line 44: | Line 45: | ||
If you’re using generators, this geometry will update every time the model updates. You don’t need to do anything else. This feature enables you to freely change the model and have other parts of the model update accordingly. | If you’re using generators, this geometry will update every time the model updates. You don’t need to do anything else. This feature enables you to freely change the model and have other parts of the model update accordingly. | ||
- | {{ :geometry_forces_properties.png? | + | {{geometry_forces_properties.png? |
Using generators as the source of the geometry requires some special consideration. | Using generators as the source of the geometry requires some special consideration. | ||
Line 66: | Line 67: | ||
===== Using a geometry force ===== | ===== Using a geometry force ===== | ||
Geometry forces are enabled and disabled just like any other force. | Geometry forces are enabled and disabled just like any other force. | ||
- | {{ :geometry_forces_enabling_force_1.png? | + | |
+ | {{geometry_forces_enabling_force_1.png? | ||
The value of the property is multiplied by the Geometry Force’s strength value and applied to the branch. | The value of the property is multiplied by the Geometry Force’s strength value and applied to the branch. | ||
Line 73: | Line 76: | ||
Once a Geometry Force obstructs any given branch, the properties in the group “Geometry Force Crawling” on the Branch generator (pictured below) control how the branch will crawl over the surface of the geometry. | Once a Geometry Force obstructs any given branch, the properties in the group “Geometry Force Crawling” on the Branch generator (pictured below) control how the branch will crawl over the surface of the geometry. | ||
- | {{ :geometry_forces_crawling.png? | + | {{geometry_forces_crawling.png? |
These properties are explained in detail [[branch_generator|here]] but the general idea is to use these properties to convey how much the branch can bend (“Max bend angle”), how much of it can press into the mesh (“Tolerance”), | These properties are explained in detail [[branch_generator|here]] but the general idea is to use these properties to convey how much the branch can bend (“Max bend angle”), how much of it can press into the mesh (“Tolerance”), | ||
Line 92: | Line 95: | ||
Both “Force: | Both “Force: | ||
- | {{ :geometry_forces_attenuation.png? | + | {{geometry_forces_attenuation.png? |
In the screenshot above, the “Rook” geometry force is selected and the orange lines indicate the attenuation distance for alignment attenuation. | In the screenshot above, the “Rook” geometry force is selected and the orange lines indicate the attenuation distance for alignment attenuation. | ||
=====Containers===== | =====Containers===== | ||
- | {{ :: | ||
Similar to attenuation, | Similar to attenuation, | ||
- | In the picture to the right, there are four forces: two direction forces and two geometry forces with a sphere mesh indicating the area of effect for the corresponding direction force. The branch is affected by the direction forces in a very precise manner. | + | In the following image, there are four forces: two direction forces and two geometry forces with a sphere mesh indicating the area of effect for the corresponding direction force. The branch is affected by the direction forces in a very precise manner. |
+ | |||
+ | {{container_force.jpg? | ||
===== Using generators: Compute order matters===== | ===== Using generators: Compute order matters===== | ||
Line 107: | Line 111: | ||
The screenshot below is from the sample named “vines_on_tree.spm” in the Geometry Forces sample folder. | The screenshot below is from the sample named “vines_on_tree.spm” in the Geometry Forces sample folder. | ||
- | {{ :geometry_forces_pass_values.png? | + | {{geometry_forces_pass_values.png? |
Notice that several of the vines have a “Pass” level shown next to them. Computation is done in passes. | Notice that several of the vines have a “Pass” level shown next to them. Computation is done in passes. |