Answer the question
In order to leave comments, you need to log in
Three.js :: Saving/Loading custom objects?
Good day!
According to the subject
3D-constructor of the room. Three.js r73. Saving and loading the project accordingly.
Objects on the stage contain custom properties/methods that are not there by default. As a result, the object is reduced to a similar form:
Saving
The first thing they advise is to use SceneExporter.js + SceneLoader.js , but in this case, the exporter throws an exception like m.ambient.getHEX() is not a function , which is strange, since I don’t even imagine where should it come from. And even if we ignore this fact and manually write the expected value that this function should return, we end up with JSON that looks like this
:scene.toJSON()
which is quite different from the view we're working with in the browser. Hence a few questions:
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question