Skip to content

Add Voronoi options to include grain direction and anisotropy, add wood yard scene demo#25

Open
Glavin001 wants to merge 3 commits intodgreenheck:mainfrom
Glavin001:feat/wood
Open

Add Voronoi options to include grain direction and anisotropy, add wood yard scene demo#25
Glavin001 wants to merge 3 commits intodgreenheck:mainfrom
Glavin001:feat/wood

Conversation

@Glavin001
Copy link

@Glavin001 Glavin001 commented Dec 9, 2025

Before After 1 After 2
image image image
  • Updated Voronoi options to include grain direction and anisotropy for improved material behavior during fractures.
  • Enhanced DestructibleMesh to support anisotropic fracturing based on grain direction and anisotropy factor.
  • Implemented a MaterialFactory method to load and cache wood materials for realistic rendering.
  • Created a new WoodYardScene to showcase wood objects with anisotropic Voronoi fracturing, allowing for realistic splintering effects.
  • Introduced wood textures from Polyhaven, including diffuse, normal, and ambient occlusion maps.

…od yard scene demo

- Introduced wood textures from Polyhaven, including diffuse, normal, and ambient occlusion maps.
- Implemented a MaterialFactory method to load and cache wood materials for realistic rendering.
- Created a new WoodYardScene to showcase wood objects with anisotropic Voronoi fracturing, allowing for realistic splintering effects.
- Enhanced DestructibleMesh to support anisotropic fracturing based on grain direction and anisotropy factor.
- Updated Voronoi options to include grain direction and anisotropy for improved material behavior during fractures.
@vercel
Copy link

vercel bot commented Dec 9, 2025

@Glavin001 is attempting to deploy a commit to the DRG Software Solutions LLC Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Dec 10, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
three-pinata-demo Ready Ready Preview Comment Dec 10, 2025 3:53am

- Updated VoronoiFractureOptions to clamp anisotropy values to a minimum of 1.0, ensuring physical validity.
- Added comprehensive unit tests for anisotropy behavior, including clamping and normalization of grain direction.
- Implemented tests for anisotropic bisecting plane calculations, validating expected behavior across various anisotropy values.
- Introduced new test cases for VoronoiCell and VoronoiFracture to ensure robustness in anisotropic scenarios.
@Glavin001
Copy link
Author

Anything else I can do for this PR, @dgreenheck ? 😃

Love this library and your posts on Twitter/X, btw! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants