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 CLOSED
 
Thread Tools Search this Thread Display Modes
Old 07 July 2005   #1
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.
 
Old 07 July 2005   #2
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.
 
Old 07 July 2005   #3
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
 
Old 07 July 2005   #4
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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

All times are GMT. The time now is 10:39 PM.


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