https://github.com/patricevignola/dot-model-2-obj
Transcode .model 3D files to .obj in JavaScript.
https://github.com/patricevignola/dot-model-2-obj
3d model obj opengl transcoder webgl
Last synced: 3 months ago
JSON representation
Transcode .model 3D files to .obj in JavaScript.
- Host: GitHub
- URL: https://github.com/patricevignola/dot-model-2-obj
- Owner: PatriceVignola
- License: mit
- Created: 2018-05-25T15:13:03.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-29T04:15:55.000Z (about 8 years ago)
- Last Synced: 2025-03-09T01:06:14.853Z (about 1 year ago)
- Topics: 3d, model, obj, opengl, transcoder, webgl
- Language: JavaScript
- Homepage:
- Size: 1.35 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dot-model-2-obj
[](https://circleci.com/gh/PatriceVignola/dot-model-2-obj) [](https://coveralls.io/github/PatriceVignola/dot-model-2-obj?branch=master) [](https://badge.fury.io/js/dot-model-2-obj) [](https://github.com/prettier/prettier) [](https://github.com/facebook/jest)
Transcode .model 3D files to .obj in JavaScript.
`model` is a binary format used by Apple in WWDC 2010's [GLEssentials sample](https://developer.apple.com/library/content/samplecode/GLEssentials/Introduction/Intro.html).
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](https://nodejs.org/), [React](https://reactjs.org/), [React Native](https://facebook.github.io/react-native/), [React Native Web](https://github.com/necolas/react-native-web), etc).
## Getting Started
You can install the library with `yarn`:
```sh
yarn add dot-model-2-obj
```
You can also use npm:
```sh
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](https://github.com/PatriceVignola/dot-model-2-obj/blob/master/LICENSE).