-
Notifications
You must be signed in to change notification settings - Fork 111
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
Remove unnecessary vertices #880
Conversation
To address the issue that morph textures consumes gigantic amount of VRAM See: mrdoob/three.js#23095
We can finally arm ourselves with r133 VTF morph targets, which enables us to use 8 or more morphs at the same time. Shoutouts to perfect sync community |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typoだけ修正提案させていただきました。
let indexHead = 0; | ||
|
||
for (let i = 0; i < originalIndexArray.length; i++) { | ||
const originalIndex = originalIndexArray[i]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
メモ
この処理でindexの最大値が減る。そのため各種attributeの大きさを減る。
Co-authored-by: nyamadan <nyamadan@pixiv.com>
Co-authored-by: nyamadan <nyamadan@pixiv.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Add a new utility function
VRMUtils.removeUnnecessaryVertices
.This is to address the issue that morph textures consumes gigantic amount of VRAM.
See comments for more details.
I probably have to apply this also for the current v0.x stream.
See: mrdoob/three.js#23095
Points need review