Muteking
Muteking

Reputation: 1513

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?

Upvotes: 0

Views: 823

Answers (1)

2pha
2pha

Reputation: 10165

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.

Upvotes: 1

Related Questions