Changing colour of a ship

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

Moderators: winston, another_commander

Post Reply
User avatar
Rustybolts
---- E L I T E ----
---- E L I T E ----
Posts: 293
Joined: Sun Jun 07, 2009 6:22 pm
Location: UK

Changing colour of a ship

Post by Rustybolts »

If i altered the texture of a ship so that it is a different colour, but i want both colours of ship in game can i just alter the ship.dat for the new colour to look for the appropriate png. Eg the blue ship loads blue.png and red ship loads red.png. Or do i have to start the texture model from scratch in wings?
Last edited by Rustybolts on Sun Jun 21, 2009 2:06 pm, edited 1 time in total.
STE.+ Firefly/Dragonfly + BlackJacksbullion v.1.23 link below.
http://www.mediafire.com/?sharekey=ca16 ... f6e8ebb871
Image
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: Changing colour of a ship

Post by Eric Walch »

Rustybolts wrote:
If .... Eg the blue ship loads blue.png and red ship loads red.png. Or to i have to start the texture model from scratch in wings?
You can do that over the materials directory for that ship. Look for examples in Thargoids SecondWave.oxp There he adds al kind of different coloured thargoids.
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

One other page that is useful is this one on the wiki.

It is actually possible using the materials key in shipdata.plist and the diffuse attribute (look in the first table on the wiki page) to "dye" a ship a different colour, still using the same texture map. I actually do this in Aquatics with some of the Manta Ray variants, look in the shipdata of that if you want examples.

I only learned about this recently (thanks to a pointer at that page by Griff), and it would have made Second Wave even smaller and simpler to do in most cases.

PS What I do in Second Wave is also covered on that linked page, there it's using the attribute diffuse_map to change the texture map used instead.
User avatar
Rustybolts
---- E L I T E ----
---- E L I T E ----
Posts: 293
Joined: Sun Jun 07, 2009 6:22 pm
Location: UK

Post by Rustybolts »

Thargoid wrote:
One other page that is useful is this one on the wiki.

It is actually possible using the materials key in shipdata.plist and the diffuse attribute (look in the first table on the wiki page) to "dye" a ship a different colour, still using the same texture map. I actually do this in Aquatics with some of the Manta Ray variants, look in the shipdata of that if you want examples.

I only learned about this recently (thanks to a pointer at that page by Griff), and it would have made Second Wave even smaller and simpler to do in most cases.

PS What I do in Second Wave is also covered on that linked page, there it's using the attribute diffuse_map to change the texture map used instead.
At first glance looks complicated but will have a good look at it later tonight ty for both your replies.
STE.+ Firefly/Dragonfly + BlackJacksbullion v.1.23 link below.
http://www.mediafire.com/?sharekey=ca16 ... f6e8ebb871
Image
Post Reply