Ship modelling question

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

Moderators: winston, another_commander

Post Reply
User avatar
Gunney_Plym
Dangerous
Dangerous
Posts: 64
Joined: Wed Jun 25, 2008 12:22 pm
Location: Sol 3, mostly.

Ship modelling question

Post by Gunney_Plym »

Is it possible to have more than one texture for the same ship without using a separate .DAT file :?:

And for the bonus points :)

Can you specify and/or randomly choose which texture is used by plist or script :?:

TIA
Gunney.

"In space nobody cares if you scream"

Wiki Page : http://wiki.alioth.net/index.php/User:Gunney_Plym
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

Gunney - this may sort of answer what you want - the short answer is no, but this seems to be a compromise: https://bb.oolite.space/viewtopic.php?t= ... c&start=60
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

Why am I suddenly quite glad my poor little hardware can't cope with shaders? :twisted: :lol: That route seems interesting if complex, but for people whose kit can't support shaders (or those who have them turned off) it won't help.

But I would agree, in my experience the answer is "no". The closest approximation is multi-Dat's, like_ship and suitably set-up ship roles.

Unless of course you mean different textures on different parts of the ship which is done by sub-entities, but I don't think you do.

**Wanders away before brains begin to dribble out of ears**
User avatar
Gunney_Plym
Dangerous
Dangerous
Posts: 64
Joined: Wed Jun 25, 2008 12:22 pm
Location: Sol 3, mostly.

Post by Gunney_Plym »

Thanks guys, the answer is pretty much what I expected.

Thargoid, your assumption was correct. What I wanted was to do several colour schemes, marking sets, what-have-you for the same ship without having to create a distinct model for them all.

To my eyes it looked as if the texture was too deeply tied into the model so I am not at all surprised.
Gunney.

"In space nobody cares if you scream"

Wiki Page : http://wiki.alioth.net/index.php/User:Gunney_Plym
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

You can replace the textures on a model using the materials property (shaders are not required).

Code: Select all

my_ship =
{
    like_ship = "cobra3-pirate";
    materials =
    {
        "cobra3_redux.png" =
        {
            diffuse_map = "my_ship_texture.png";
        };
    };
}
This works back to about 1.68 or so.
User avatar
Gunney_Plym
Dangerous
Dangerous
Posts: 64
Joined: Wed Jun 25, 2008 12:22 pm
Location: Sol 3, mostly.

Post by Gunney_Plym »

Ah, very interesting. Have to give that a try. :)
Gunney.

"In space nobody cares if you scream"

Wiki Page : http://wiki.alioth.net/index.php/User:Gunney_Plym
Post Reply