-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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
ObjectLoader: Add support for helpers #15714
Comments
This is not the way objects are serialized. You have to do it like so: var string = JSON.stringify( helper.toJSON() ); But even with this code it won't work since |
Doesn't I would expect the deserialized object to be of type If helpers are not supposed to be serialized you can go ahead and close this issue. Since, it was giving me close to the right output I thought perhaps it was supposed to be supported. The documentation around serialization/parsing is a little sparse so I just wasn't sure. |
Ups, you're right. Totally missed the automatic invocation of
There were lately some other issues in context of helpers. Maybe the support in
I'm not sure but I think that is not intended. It should be |
Let's turn this issue into a more concrete feature request: Add support for helpers in @feus4177 Is this okay for you? 😉 |
Yeah, that's fine and I modified the title accordingly. In terms of |
ObjectLoader
ObjectLoader
Description of the problem
If you serialize a Box3Helper object it drops the reference to
box
, which means that parsing it always returns the default Box3Helper. In the snippet below, it should appear as if there is only one box, but instead two boxes of different sizes show up.Relevant snippet:
https://codepen.io/anon/pen/rPzLPO
Three.js version
Browser
OS
Hardware Requirements (graphics card, VR Device, ...)
The text was updated successfully, but these errors were encountered: