Skip to content

Commit 7548913

Browse files
committedMay 23, 2014
Initial commit
0 parents  commit 7548913

File tree

105 files changed

+35159
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+35159
-0
lines changed
 

‎.gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/node_modules
2+
3+
/visual_studio/*.user
4+
/visual_studio/*.suo
5+
/visual_studio/obj
6+
/visual_studio/bin
7+
/visual_studio/collada
8+
9+
/lib/*
10+
11+
/examples/convert.js
12+
/examples/convert.js.map

‎README.md

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Collada converter
2+
==================
3+
4+
Loads and converts COLLADA files into a format more usable for WebGL
5+
6+
7+
Building
8+
========
9+
10+
First, make sure you have typescript installed
11+
There are several ways of building the library:
12+
13+
* Using Microsoft Visual Studio
14+
* Make sure you have typescript for Visual Studio installed (http://www.typescriptlang.org/#Download)
15+
* Open the solution in the `visual_studio` subdirectory
16+
* Build the project
17+
* Using the command line
18+
* Windows: run make.bat in the project root
19+
* Unix:
20+
21+
22+
Architecture
23+
============
24+
25+
1. COLLADA files are text files.
26+
2. Use a *DOMParser* (built in in all browsers) to convert the text file into an XML document.
27+
3. Use a *ColladaLoader* (from this library) to convert COLLADA XML document into a corresponding COLLADA javascript object. The resulting object is just easier to work with than a generic XML document and provides some convenience functionality for navigating the links within the file.
28+
4. Use a *ColladaConverter* (from this library) to extract all geometries, materials, and animations from the COLLADA javascript object and transform them into a representation that is suitable for realtime rendering on the GPU.
29+
5. Use a *ColladaExporter* (from this library) to pack the converted data into a file that is suitable for extremely fast loading in WebGL (a few milliseconds).

0 commit comments

Comments
 (0)
Please sign in to comment.