Intel® Embree Ray Tracing Kernels
Discussion forum on the open source ray tracing kernels for fast photo-realistic rendering on Intel® CPUs.

bin format ?

azrak
Beginner
285 Views
hi ..
Can you explain more about the type of binary file used with the xml. how can i create that file..?
Thanks
0 Kudos
2 Replies
Kundan_Kumar
Beginner
285 Views

Dear azrak,

Please see the link below
http://www.stylusstudio.com/binary_xml.html

SvenW_Intel
Moderator
285 Views
The XML File stores the structure of the scene while the bin file stores large data arrays. From the XML file one can point to a byte offset of the bin file and read a number of array elements from there. For instance a mesh can have the following as normal array specification:
This line says that at byte offset 1024 a number of 100 float3 values should be read into the normal array.
For some more information look in the file app/importers/xml.cpp functions loadBinary and loadVec{2f,3f,3i}Array, etc.
Reply