Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USD: Implements subdivision #1178

Open
Meakk opened this issue Jan 17, 2024 · 0 comments
Open

USD: Implements subdivision #1178

Meakk opened this issue Jan 17, 2024 · 0 comments
Labels
source:VTK type:enhancement New feature or request
Milestone

Comments

@Meakk
Copy link
Contributor

Meakk commented Jan 17, 2024

USD meshes can define a subdivision scheme (most often Catmull-Clark method, but can be the Loop method).
So far, F3D ignores the subdivision and no normals are defined in the final mesh resulting in flat shading.

At least we should compute normals if the subdivision is not none, but it would be better to smooth the mesh too using the requested method.
I've found an unofficial VTK implementation of Catmull-Clark online: https://www.cg.tuwien.ac.at/courses/MathMethodenCG/SS2003/4-Kuehschelm-Wagner-Zambal/html/vtkCatmullClarkFilter_8cpp-source.html
If the method is Loop, the feature already exists in VTK: https://vtk.org/doc/nightly/html/classvtkLoopSubdivisionFilter.html

One question we need to answer is how many iterations do we need to apply? Hard-coded value or giving an option somehow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
source:VTK type:enhancement New feature or request
Projects
Status: Investigate
Development

No branches or pull requests

2 participants