Discussion and information relevant to creating special missions, new ships, skins etc.
Moderators: winston , another_commander
JeffBTX
---- E L I T E ----
Posts: 366 Joined: Sun Dec 27, 2009 2:23 pm
Location: Abilene Texas
Post
by JeffBTX » Wed Dec 22, 2010 5:38 pm
Sorry. Noob question. VERY noobish. Noobishisity.
which is correct:
Code: Select all
materials =
{
"back_metal.png" = {
diffuse_map = "Cor_Front.png";
emission_map = "Cor_FrontE.png";
shininess = 10;
specular_color = (0.30, 0.30, 0.30, 0.50);
};
"bottom_metal.png" = {
diffuse_map = "Cor_Side.png";
emission_map = "Cor_SideE.png";
shininess = 10;
specular_color = (0.30, 0.30, 0.30, 0.50);
};
};
... or ...
Code: Select all
materials =
{
"back_metal.png" = {
diffuse_map = "Cor_Front.png";
emission_map = "Cor_FrontE.png";
};
"bottom_metal.png" = {
diffuse_map = "Cor_Side.png";
emission_map = "Cor_SideE.png";
};
shininess = 10;
specular_color = (0.30, 0.30, 0.30, 0.50);
};
... or if they BOTH work, I assume that the second one is better, less typing. I can experiment, but the concept "if it works, use it" bothers me. I'd rather know the "most proper way" to do it.
- Thanks
Sword, thy name is Cobra. And Cobra has fangs!
JensAyton
Grand Admiral Emeritus
Posts: 6657 Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:
Post
by JensAyton » Wed Dec 22, 2010 7:42 pm
The former. In the latter case, the shininess/specular_color values are not being used.
JeffBTX
---- E L I T E ----
Posts: 366 Joined: Sun Dec 27, 2009 2:23 pm
Location: Abilene Texas
Post
by JeffBTX » Thu Dec 23, 2010 2:20 pm
thanks, Ahruman.
Sword, thy name is Cobra. And Cobra has fangs!