Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added vOBJ chunk and some presentation changes #1

Merged
merged 1 commit into from
Jun 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion vox.hm
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class SIZE as Chunk("SIZE")
class XYZI as Chunk("XYZI")
{
int(32) numVoxels;
@value = "numVoxels: "+%str(numVoxels);
VOXEL voxels[numVoxels];
}

Expand Down Expand Up @@ -115,12 +116,13 @@ class DICT_ITEM
{
DICT_STRING key;
DICT_STRING value;
@value = key.buffer+": "+value.buffer;
}

class DICT_STRING
{
int(32) bufferSize;
byte buffer[bufferSize];
String(bufferSize) buffer;
}

class MATERIAL_V2(id) as Chunk("MATL")
Expand All @@ -138,4 +140,9 @@ class MATERIAL_V1(id) as Chunk("MATT")
float(32) materialWeight;
int(32) propertyBits;
float(32) propertiesNormalized;
}

class rOBJ(id) as Chunk("rOBJ")
{
DICT properties;
}