Intel® Embree Ray Tracing Kernels
Discussion forum on the open source ray tracing kernels for fast photo-realistic rendering on Intel® CPU(s)

bin format ?

azrak
Beginner
827 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
827 Views

Dear azrak,

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

0 Kudos
SvenW_Intel
Moderator
827 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.
0 Kudos
Reply