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 into
dgreenheck: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 into
dgreenheck:mainfrom
Glavin001:feat/wood

Conversation

@Glavin001

@Glavin001 Glavin001 commented Dec 9, 2025

Copy link
Copy Markdown
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

vercel Bot commented Dec 9, 2025

Copy link
Copy Markdown

@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

vercel Bot commented Dec 10, 2025

Copy link
Copy Markdown

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

Comment thread lib/src/fracture/VoronoiCell.ts
Comment thread lib/src/fracture/VoronoiFracture.ts
Comment thread lib/src/fracture/VoronoiCell.ts Outdated
- 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.
Comment thread demo/src/app.ts Outdated
@Glavin001

Copy link
Copy Markdown
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