Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
collada-dae-parser
Advanced tools
Parse collada .dae file vertex positions, textures, normals and animations
This package is still a work in progress (hence no major bump)
I won't need skeletal animations until around September. Commits will be few and far between until then.
But.. I'm still around. If you have a question, ideas or use cases that aren't covered open an issue!
collada-dae-parser
parses a collada file and outputs JSON. This is useful for displaying skeletal animations in the browser.
collada-dae-parser
is only concerned with giving you JSON. An animation system is outside of this modules scope.
# API
$ npm install --save collada-dae-parser
# CLI
$ npm install -g collada-dae-parser
If you're unfamiliar with skeletal animation, the demo is a good starting point. Here's where we're parsing our collada
file and buffering our graphics data. We're parsing at runtime in the demo, but in a real application you'd want to parse your collada files during a build step.
# Run the demo locally. Changes to the `demo` directory will live reload in your browser
# PRs and issues are welcome!
git clone https://github.com/chinedufn/collada-dae-parser && cd collada-dae-parser && npm install && npm run demo
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
parseDae(xmlFile, callback)
-> object
Required
Type: string
or Buffer
Your collada file data. Not the filename, the file contents.
Required
Type: function
function (err, parsedDaeObject) {
console.log(parsedDaeObject)
/*
{
keyframes: {...},
vertexNormalIndices: [...],
vertexNormals: [...],
vertexPositionIndices: [...],
vertexPositions: [...],
vertexUVIndices: [...],
vertexUVs: [...]
}
*/
}
src: basic cli (potentially pull into own repo, but start here)
src: Allow file buffer to be passed in
src: Factor in bind shape matrix
src: Stop exporting bind shape matrix
demo: fix normals in demo lighting
src / demo: add a textured demo model
src: rounding values. Currently lots of .999999 and 1.000001
src: All of the TODO: statements in code
demo: full screen demo with controls overlay
demo: toggle between 2 animations
demo: Support mobile touch events
demo: allow zoom in, zoom out in demo
doc: Add a GIF of every test fixture animation and demo
doc: Documentation
A separate package that uses collada-dae-parser to implement a stateless skeletal animation system
MIT
FAQs
Parse collada .dae 3d animation files into json
The npm package collada-dae-parser receives a total of 76 weekly downloads. As such, collada-dae-parser popularity was classified as not popular.
We found that collada-dae-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.