google / model-viewer

Easily display interactive 3D models on the web and in AR!
https://modelviewer.dev
Apache License 2.0
6.69k stars 798 forks source link

How to access the hierarchy and then Three.js changes each object. #4714

Closed bigbea1r closed 3 months ago

bigbea1r commented 3 months ago

Discussed in https://github.com/google/model-viewer/discussions/4712

Originally posted by **bigbea1r** March 13, 2024 I have a task. Change the model imported into modelviewer and editor it in Three.js. How to do it? I need this in order to make an editor based on modelviewer. I read all the documentation, but found only a few items: You are also welcome to hack/fork us. You can use mvElement[Object.getOwnPropertySymbols(mvElement).find(e => e.description === 'scene')]; to get access to our internal three.js scene and do whatever you want. And what you link to [Post Process Effects](https://modelviewer.dev/examples/postprocessing) The code currently looks like this: Editor Table
Variant:
elalish commented 3 months ago

Please don't cross-post.