how can I get the setting of an object made by three.js

Viewed 52

enter image description here

When I put a gltf file into the threejs editor, wow, it looks amazing.

enter image description here

But when I try to implment it, emmm, so terrible.

So, is it possible to get the setting from threejs editor?

For example, how the scene is setted? how about the render? is there any other setting?

Or, I only have to read the document step by step?

1 Answers

So, is it possible to get the setting from threejs editor?

There is no way to export the settings of the editor in some way. You actually have to study the implementation of the editor, especially the app player component. This component is responsible for rendering the 3D scene which you are seeing in the editor's viewport. You can find the source code for this file right here:

https://github.com/mrdoob/three.js/blob/dev/editor/js/libs/app.js

However, I suggest you study one of the official glTF examples instead which provide a complete scene setup in much more approachable manner. Try it with:

https://threejs.org/examples/webgl_loader_gltf

Related