GithubHelp home page GithubHelp logo

polyhobbyist / collada-converter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rmx/collada-converter

0.0 0.0 0.0 14.25 MB

A library for converting COLLADA files to a format suitable for WebGL

Shell 0.18% JavaScript 0.35% TypeScript 96.25% CSS 0.13% HTML 2.49% GLSL 0.60%

collada-converter's Introduction

Collada converter

Loads and converts COLLADA files into a format more usable for WebGL.

User interface

The converter comes with a simple user interface in the form of an local web page. You don't need any web server to use this page - simply download and build the project, then open examples/convert.html from the project folder. If you do not want to build the project yourself, there is a live preview here.

Building

There are several ways of building the library:

  • Using the command line
    • Make sure you have Node.js installed
    • Navigate to the project root
    • Type npm update (only need to do this once)
    • Type make.bat (Windows) or make (Unix)
  • Using Microsoft Visual Studio

Architecture

COLLADA files are text files, with their content structured as an XML document. This converter transforms such files into documents that are suitable for loading in a WebGL engine. This conversion is performed in 4 stages, implemented by the following modules:

  1. DOMParser (built in in all browsers), to convert the text file into an XML document.
  2. ColladaLoader (from this library), to convert the 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 COLLADA document.
  3. 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.
  4. ColladaExporter (from this library), to pack the converted data into a file that is suitable for extremely fast loading in WebGL.

collada-converter's People

Contributors

crobi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.