Webgl learning log (5) - Three.js uses JSON format to save and load the entire scene, and interpret JSON data

For specific examples, see this blog: https://blog.csdn.net/qq_30100043/article/details/79604757

The operation is simple, but the most important thing is to achieve more functions. It is best to use it on more 3D models. For example, I use Revit a lot. It is best to convert the Revit model into JSON format data first, and then Read JSON data on Webgl.

First of all, a few questions that appeared in the previous blog:

1. How to view the generated JSON data:



2. Install a JSON-handler extension control on the chrome browser.

https://jingyan.baidu.com/article/c910274bb4b659cd361d2dad.html

3. Copy the JSON data into this extension.

It can be seen that the tree data is completely the parameters of the geometry generated by Three.js. So simple, if you want to make other data readable by Three.js, you have to generate geometry data according to Three.js standards.



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325852586&siteId=291194637