New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

collada-dae-parser

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

collada-dae-parser

Parse collada .dae 3d animation files into json

  • 0.6.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

collada-dae-parser npm version Build Status

Parse collada .dae file vertex positions, textures, normals and animations

View live demo

WIP

This package is a work in progress so check back later.

Will be adding an api, cli, and example gh-pages

To Install

$ npm install --save collada-dae-parser

CLI

Output stringified JSON to stdout

# parse from stdin
cat my-3d-model.dae | dae2json > parsed-model.json

# parse from file
dae2json my-3d-modal.dae > parsed-model.json

API

parseDae(xmlString, callback) -> object

xmlString

Required

Type: string

Your collada file as a string

callback

Required

Type: function

function (err, parsedDaeObject) {
  console.log(parsedDaeObject)
  /*
  {
    bindShapeMatrix: [...],
    keyframes: {...},
    vertexNormalIndices: [...],
    vertexNormals: [...],
    vertexPositionIndices: [...],
    vertexPositions: [...],
    vertexUVIndices: [...],
    vertexUVs: [...]
  }
  */
}

TODO:

  • basic cli (potentially pull into own repo, but start here)

  • rounding values. Currently lots of .999999 and 1.000001

  • fix normals in demo lighting

  • add a textured complex demo model

  • allow zoom in, zoom out in demo

  • Factor in bind shape matrix

  • Stop exporting bind shape matrix

  • toggle animation on and off

  • multiple animations in demo

  • full screen demo with controls overlayed

  • All of the TODO: statements in code

  • Allow file buffer to be passed in

  • Add a GIF of every test fixture animation

  • Documentation / references

  • We might want another module to export the raw useful data.. Then we can transform it / add opinions higher up.

References

See Also

License

MIT

Keywords

FAQs

Package last updated on 13 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc