The codes to read information in .mi file format

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  07 July 2005
Question The codes to read information in .mi file format

I am using maya 6 to create spot light and 3d object include properties of light(color,direction,translation,..) and material of object.
Can anyone show me the codes for reading informations in .mi file format to receive the values of properties of light and use in my codes (use C++ )???
Thanks for any help from you.
  07 July 2005
I reccomend you first find a description of how the mi file format is structured. With some logical thinking and some standard functions for file IO in C++ you should be able to read the data stored in the MI file format.

But i think a description cannot be easily found, because the format may be protected by copyright law or something like that.

Edit: Woops seems I was wrong reading the post below

Last edited by Lau83 : 07 July 2005 at 12:02 AM.
  07 July 2005
The lex parser for the mi format is part of the mental ray manual (Appendix A, I believe). You just need to modify it to have it read only the info you are interested in.
For a working example of two parsers, you can download mrLiquid, as it includes an mi parser for finding object's sizes and another one for parsing .mi shader descriptions.
Gonzalo Garramuño
  07 July 2005
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 04:42 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.