Random Textures

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Random Textures

Post by JensAyton »

Me trying to clarify things is probably doomed to failure, but:

When you say ship.setMaterials({"foo.png": something }), it means replace the original model’s texture named foo.png with something.

Here, “something” is a material specifier. The simplest type of material specifier is { diffuse_map: "bar.png" }, which just sets the base texture and uses default settings for other material properties.
User avatar
Okti
---- E L I T E ----
---- E L I T E ----
Posts: 700
Joined: Sun Sep 26, 2010 1:51 pm
Location: A GH shop, near witchpoint to Oresrati in Galaxy 8

Re: Random Textures

Post by Okti »

Ahruman wrote:
Me trying to clarify things is probably doomed to failure, but:

When you say ship.setMaterials({"foo.png": something }), it means replace the original model’s texture named foo.png with something.

Here, “something” is a material specifier. The simplest type of material specifier is { diffuse_map: "bar.png" }, which just sets the base texture and uses default settings for other material properties.
Thanks Ahruman. I think it worked that way unless my current boss 8) confirms it did not work :)
My OXP's
And Latest Mission Coyote's Run
Post Reply