https://github.com/kevzettler/parse-qubicle
Javascript Parse Qubicle Binary .qb files
https://github.com/kevzettler/parse-qubicle
3d qubicle voxel voxels webgl
Last synced: 7 months ago
JSON representation
Javascript Parse Qubicle Binary .qb files
- Host: GitHub
- URL: https://github.com/kevzettler/parse-qubicle
- Owner: kevzettler
- Created: 2017-01-02T23:27:04.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-04-23T01:15:46.000Z (over 2 years ago)
- Last Synced: 2025-02-11T19:48:56.457Z (8 months ago)
- Topics: 3d, qubicle, voxel, voxels, webgl
- Language: JavaScript
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Parse Qubicle Binary
## Install
Javascript parser for Qubicle Binary file format:https://web.archive.org/web/20150303075003/http://minddesk.com/wiki/index.php?title=Qubicle_Constructor_1:Data_Exchange_With_Qubicle_Binary
Works in browser and server Node.js environments
```
npm install parse-qubicle
```## Usage
### Input
```javascript
var parseQubicle = require('parse-qubicle');
//read a .qb file as an arrayBuffer from file system or xhr request;
var qbJSON = parseQubicle(arrayBuffer);
```### Output
```javascript
{
"version":257,
"colorFormat":0,
"zAxisOrientation":0,
"compressed":1,
"visibilityMaskEncoded":1,
"numMatrices":1,
"matrixList":[
{
"nameLength":5,
"name":"FootL",
"sizeX":5,
"sizeY":3,
"sizeZ":9,
"posX":0,
"posY":0,
"posZ":0,
"matrix":[
{
"x":0,
"y":0,
"z":0,
"r":68,
"g":68,
"b":68,
"a":127
},
// ... more matrix verts
]
},
// ... more matrix meshes
]
}
```