Discussion and information relevant to creating special missions, new ships, skins etc.
Moderators: winston , another_commander
Smivs
Retired Assassin
Posts: 8408 Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:
Post
by Smivs » Tue Jul 31, 2012 10:53 am
Using this code in shipdata, I can only get one emission map working at a time. The diffuse maps are both specified in the .dat file and are appearing on the correct faces in-game. The second one (back) seems to be the default emission map which works, but if I remove the reference to it the 'front' emission map works. There are no log errors.
Am I trying to do the impossible here?
Code: Select all
materials =
{
"smivs_brick_front.png" =
{
emission_map = "smivs_brick_front-em_map.png";
shininess = 10;
specular_color = ( 0.3, 0.3, 0.3, 1.0 );
};
"smivs_brick_back.png" =
{
emission_map = "smivs_brick_back-em_map.png";
shininess = 10;
specular_color = ( 0.3, 0.3, 0.3, 1.0 );
};
};
submersible
Commodore
Posts: 264 Joined: Thu Nov 10, 2011 7:49 am
Post
by submersible » Tue Jul 31, 2012 11:04 am
Smivs - are you trying this with trunk or some stable release? It looks sane to me.
Smivs
Retired Assassin
Posts: 8408 Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:
Post
by Smivs » Tue Jul 31, 2012 11:05 am
Yeah 1.76.1 not trunk. It's got me beat
JensAyton
Grand Admiral Emeritus
Posts: 6657 Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:
Post
by JensAyton » Tue Jul 31, 2012 1:07 pm
That should work fine, please provide test OXP.
Smivs
Retired Assassin
Posts: 8408 Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:
Post
by Smivs » Tue Jul 31, 2012 2:00 pm
Ahruman wrote: That should work fine, please provide test OXP.
Thanks. PM on its way to you.
JensAyton
Grand Admiral Emeritus
Posts: 6657 Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:
Post
by JensAyton » Tue Jul 31, 2012 10:05 pm
The problem is with the script you forgot to mention. setMaterials()
replaces the entire materials dictionary; you can’t just set part of it.
Smivs
Retired Assassin
Posts: 8408 Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:
Post
by Smivs » Tue Jul 31, 2012 10:12 pm
Ah, OK.
Thanks.