Page 2 of 2

Re: Random Textures

Posted: Tue May 17, 2011 7:52 pm
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.

Re: Random Textures

Posted: Tue May 17, 2011 7:57 pm
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 :)