dot-model-2-obj
Transcode .model 3D files to .obj in JavaScript.
model
is a binary format used by Apple in WWDC 2010's GLEssentials sample.
dot-model-2-obj can be used in pure JavaScript applications runnable directly in the browser, as well as any ES5 and ES6 applications (Node.js, React, React Native, React Native Web, etc).
Getting Started
You can install the library with yarn
:
yarn add dot-model-2-obj
You can also use npm:
npm install dot-model-2-obj --save
Usage
Pure JavaScript
Coming soon...
ES5/ES6
Coming soon...
Examples
To run the examples, follow the following steps depending on your platform:
Pure JavaScript
First, make sure to run yarn build
or npm run build
. This will generate the dist/dot-model-2-obj.min.js
file used in the example.
Then, simply drag and drop examples/pure-javascript-example/example.html
in your favorite browser, select models/demon.model
and press the Transcode
button. The transcoder will transcode the .model file and save demon.obj
in your downloads folder.
React
Coming soon...
React Native
Coming soon...
Node.js
Coming soon...
Babylon.js
Coming soon...
License
dot-model-2-obj is MIT licensed.