[x3d-public] Unity to X3Dom - Bina ryGeometry

Max Limper max.limper at igd.fraunhofer.de
Tue Feb 10 01:30:44 PST 2015


SRC can package everything (including the structured info, such as 
stride, primitive type, ...) in one single file.
The format is documented in the corresponding paper, which is available 
on the page.
On the SRC page (x3dom.org/src), there are aopt commands documented, as 
well as a very simple writer source code in C++ for download.

For BinaryGeometry, there is no way to put indices and attributes into 
one file, only multiple attributes can be packed into the same one, 
using the 'i' flag ("interleaved"), if I remember correctly.
I'd suggest to use SRC, though - it is more flexible, more transparent, 
and competitive with glTF (even a bit more efficient in some regards).

Regards,
Max


On 10.02.2015 04:57, Dave A wrote:
> I've seen a sample where 3 different binary files are referenced for 
> one object (points, uv's, normals or like that).
> Is there a syntax where ALL binary data can be put into 1 file, and 
> the elements that need it can index into that file (like glTF can do).
> It would be nice to reduce the number of files, both for file 
> management sake, and number of server requests.
>
> This aopt page talks about how to use aopt, is there documentation of 
> the actual format of this binary data such that I can write my own?
>
> Dave Arendash
>
> On 2/9/2015 12:39 AM, Max Limper wrote:
>> Hi Dave,
>>
>> cool, thanks for sharing this!
>>
>> The demo worked nicely on my machine (using Chromium on Ubuntu).
>>
>> Just as a hint for optimization, it should be possible to decrease 
>> the long loading time a lot by using BinaryGeometry.:
>> http://doc.x3dom.org/tutorials/models/aopt/index.html
>>
>> Best,
>> Max
>>
>>
>> On 08.02.2015 07:27, Dave A wrote:
>>> Check it out:
>>>
>>> http://www.davearendash.com/webgl/x3dom
>>>
>>>
>>
>>
>> _______________________________________________
>> x3d-public mailing list
>> x3d-public at web3d.org
>> http://web3d.org/mailman/listinfo/x3d-public_web3d.org
>>
>




More information about the x3d-public mailing list