简体   繁体   中英

Exporting to Json geometry format for Three.js

I'm trying to write an exporter in Maxscript, to JSON format, to parse in Three.js. I've found very little documentation. But about this: https://github.com/mrdoob/three.js/wiki/JSON-Geometry-format-4

Do I have to use BufferGeometry or geometry? What's the difference? Where are the materials?

You may want to take a look at the max exporters that come with Three.js. The only problem I have found with it is that it does not respect smoothing groups when exporting.
github.com/mrdoob/three.js/tree/master/utils/exporters/max

To answer your questions, You should use BufferGeometry. I think BufferGeometry is a better version of Geometry and everything is moving towards it. Materials are not stored in the Three.js JSON format AFAIK.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM