Go Back   AC3D Forums > General > AC3D General
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 16th July 2010, 11:36 AM   #1
barre
Junior Member
Junior member
 
Join Date: Jul 2010
Posts: 4
Default Material Parsing Question

I am importing a .3DS model of an aircraft and modifying it in AC3D to create an .AC file. The textures seem to not be converted in the process and I will have to manually add them in AC3D, but for now I have the whole model set to no texture. The goal is to create the .AC file as an input into a flight simulator (FlightGear).

The model looks great in AC3D however I'm having an issue when trying to read the resulting .AC in FlightGear, the message says the material cannot be parsed.

Material cannot be parsed:
MATERIAL "Material__0" rgb 0.584314 0.584314 0.584314 amb 0.584314 0.584314 0.584314 emis 0 0 0 spec 0.898039 0.898039 0.898039 shi 12.8 trans 0

So i deleted the 87 odd material definitions with a text editor in the .AC file and replaced it with a material defintion i knew worked, and pointed all surfaces to it. The model loaded correctly (with one material).

Can be parsed:
MATERIAL "white" rgb 1 1 1 amb 0.2 0.2 0.2 emis 0 0 0 spec 0 0 0 shi 10 trans 0

Any ideas? or where is a doc that specifically defines the material property? (Not: http://www.inivis.com/ac3d/man/ac3dfileformat.html )

Thanks!
barre is offline   Reply With Quote
Old 16th July 2010, 05:25 PM   #2
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,563
Default Re: Material Parsing Question

I think shi should be an integer, probably 128 rather than 12.8.
Andy is offline   Reply With Quote
Old 19th July 2010, 08:21 AM   #3
barre
Junior Member
Junior member
 
Join Date: Jul 2010
Posts: 4
Default Re: Material Parsing Question

I also posted on FlightGear's forum, and it might be an issue on their end parsing "Material__0".

Thanks
barre is offline   Reply With Quote
Old 19th July 2010, 12:51 PM   #4
barre
Junior Member
Junior member
 
Join Date: Jul 2010
Posts: 4
Default Re: Material Parsing Question

Also, you were correct making the shi value a multiple of 2 solved the problem.
barre is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -4. The time now is 10:27 AM.


AC3D Forum
(C) Inivis Limited 2020