VOXELFORMAT: save vxm 10
parent
4db3b861ca
commit
ee263f2cb3
|
@ -70,7 +70,7 @@ bool VXMFormat::saveGroups(const SceneGraph& sceneGraph, const core::String &fil
|
|||
return false;
|
||||
}
|
||||
core::ScopedPtr<voxel::RawVolume> scopedPtr(merged.first);
|
||||
wrapBool(stream.writeUInt32(FourCC('V','X','M','9')));
|
||||
wrapBool(stream.writeUInt32(FourCC('V','X','M','A')));
|
||||
const glm::vec3 pivot(0.5f);
|
||||
|
||||
const voxel::Region& region = merged.first->region();
|
||||
|
@ -97,10 +97,10 @@ bool VXMFormat::saveGroups(const SceneGraph& sceneGraph, const core::String &fil
|
|||
// 1 int normal possible values: [0,1][2,3][4,5]
|
||||
// followed by surface width * surface height bytes
|
||||
|
||||
wrapBool(stream.writeFloat(0.0f));
|
||||
wrapBool(stream.writeFloat(0.0f));
|
||||
wrapBool(stream.writeFloat(0.0f));
|
||||
wrapBool(stream.writeFloat(0.0f));
|
||||
wrapBool(stream.writeFloat(0.0f)); // lod scale
|
||||
wrapBool(stream.writeFloat(0.0f)); // lod pivot x
|
||||
wrapBool(stream.writeFloat(0.0f)); // lod pivot y
|
||||
wrapBool(stream.writeFloat(0.0f)); // lod pivot z
|
||||
|
||||
int lodLevels = 1;
|
||||
wrapBool(stream.writeInt32(lodLevels));
|
||||
|
@ -184,7 +184,13 @@ bool VXMFormat::saveGroups(const SceneGraph& sceneGraph, const core::String &fil
|
|||
wrapBool(writeRLE(stream, rleCount, prevVoxel, emptyColorReplacement))
|
||||
}
|
||||
|
||||
wrapBool(stream.writeUInt8(0))
|
||||
wrapBool(stream.writeUInt8(0));
|
||||
wrapBool(stream.writeBool(false));
|
||||
// has surface - set to false otherwise
|
||||
// the following data is needed:
|
||||
// 3 int start
|
||||
// 3 int end
|
||||
// 1 int normal possible values: [0,1][2,3][4,5]
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue