Giter Site home page Giter Site logo

scenejs-pycollada's Introduction

SceneJS-PyCollada

SceneJS-PyCollada is a small library / command-line utility for translating Collada files into JSON formatted scenes for use by SceneJS. It uses PyCollada as its Collada parser, hence the choice of name.

Licensing

SceneJS-PyCollada is dual licensed under the MIT license and GPL version 2.0. Please refer to the files under licenses/ for more information. PyCollada is licensed under a BSD-style license. Please see pycollada/COPYING for more information

Features

  • Loads the following geometry nodes: , ,
    • However, it is still missing the following:
  • Supports vertex splitting when a shared vertex has conflicting attributes. (This is required for flat shading or split texture coordinates for example)
  • Import multiple primitive types in one mesh using subgeometries
  • Supports the following vertex attributes:
    • Positions
    • Normals
    • Texture coordinates (one set only at the moment)
  • Loads the following light nodes: ,
  • Loads basic materials (no shaders yet)
  • Generates sample files (html + javascript)

Please test and report bugs!

Work in progress

  • Pretty printing for javascript files
  • Ambient light sources (not supported by SceneJS yet)
  • Point light sources (it is not known to what extent these work currently)
  • Multiple subgeometries (this is mostly implemented, but doesn't seem to work in SceneJS for some reason)

Installing python

There's a good chance that you already have python, however if you don't, visit http://python.org and get it!

Updating pycollada

PyCollada has been added to the project as a git submodule. To fetch the latest version of pycollada, you can use the following git command in the root directory of scenejs-pycollada.

git submodule update --init

PyCollada depends on the NumPy module. If you're on a unixy platform there's a good chance that you'll already have NumPy and you can skip this step.

However, if you don't have NumPy installed on your system, fetch an appropriate release from the NumPy website, http://numpy.scipy.org (http://www.scipy.org/Download has the list of all builds including unofficial releases) Note that on 64bit windows you'll most likely need to fetch an unofficial build of NumPy from http://www.lfd.uci.edu/~gohlke/pythonlibs/

Building

You need to first install pycollada. Go into the directory that you've placed pycollada and run

python setup.py install

(Also see the pycollada README.markdown for more information on how to do this)

Installing and running scenejs-pycollada

scenejs-pycollada is not installable currently, however you can simply run it directly.

This command will give you the usage information you need to run the utility:

python scenejs-pycollada.py --help

Resources

For more information see the SceneJS website and wiki, or to discuss the project visit the google group.

GitHub project: [Google] 1

Wiki page: [SceneJS Wiki page] 2

Google group: [Google group] 3

Google group "Brainstorming" discussion: [Google group discussion] 4

PyCollada home: [PyCollada] 5

PyCollada: [PyCollada on GitHub] 6

scenejs-pycollada's People

Contributors

rehno-lindeque avatar skrat avatar xeolabs avatar

Watchers

 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.