OXH Header considered as char

 
 
 
Posted by:gr4ph0s
Data created:7 October 2016

Hi I'm currently working in a plugin dat allow to import OXH file as hair in cinema 4D.

I look a bit into the website and the file structure seem to have an error. Here is a litlle screen that show exactly what I mean

http://img4.hostingpics.net/pics/358232errorFileFormat.jpg

In the top this is a binary file and in the bottom of it it's an ascii file for checking value. And as you can see DataType for the Header and Hair info are in char and not in ulong/dword (even if they got the size of them they are char not ulong/dword).

 

 

I use this forum but it's not about 3ds so if it's wrong placed and you prefere direct contact do it ! ;)

Thanks in advance.

Thank you for pointing this out, I will update the reference. In fact it should be two chars. For example, this is the code which writes the header:

fileOut.write( header, 5 * sizeof( char ) );
fileOut << " ";
fileOut << int( ORNATRIX_INTEGER_VERSION ) << " ";
fileOut << io_flags << std::endl;

Marsel Khadiyev (Software Developer, EPHERE Inc.)

And another ask is there anywhere an enum of data (Version,flags)?

And also structure of OrnaExpGuideDep, OrnaExpSurfDep and other one
I didn't find them into the sdk but maybe I searched badly ^^'

 

anyway thanks for the quick reply ! :)

 

Yes, you can find these in the attached file.


Attached Files:

>OrnaIOData.h (1350 bytes),

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Huge thanks for making them public ! :)