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

Optimizations #3

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

vincentfretin
Copy link

I was playing with this old component, and dug a little bit into how it works. I ended up optimizing it a bit, the time to bake decreased from 14s to 10s on a more heavy scene I was testing.
I also took the optimizations of the octree that was made in mrdoob/three.js#21834

I may continue working on it or not, but here are some of future tasks I was thinking to do:

…e baking and not all in black, material.vertexColors=THREE.VertexColors is done by the aobake component, but material.needsUpdate=true was missing to properly see the baked vertex colors
…ed geometry, properly dispose previous geometry
@vincentfretin
Copy link
Author

I recently did some tests with baking AO to vertex colors in blender 3.2. It would be interesting to compare it with the result produced by this component and after #1 is done. I may contribute a CC0 glb model of a table and seats (a cube and cylinders) and a new example to show the difference between no baking, baking with blender and baking with this component.

@vincentfretin
Copy link
Author

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.

1 participant