Page 1 of 1
solid material reading
Posted: Sat Sep 01, 2012 12:31 am
by commanderxairon
well as we do know Oolite works reading .dat files that are structurally alike the .OBJ files but does not read solid painted surfaces or read them as pitch black ships, what i say is that it would be very good to have oolite to read solid paint as it would make VERY easy the process of making custom ships
Re: solid material reading
Posted: Sat Sep 01, 2012 8:39 am
by Kaks
I'm not quite sure what you mean there: I've repainted a texture file as just one block of colour - bright orange, to make it stand out - and Oolite seems to create my orange monstrosity without any problem.
What steps are you taking in order to create monochromatic ships?
Re: solid material reading
Posted: Sat Sep 01, 2012 8:54 am
by Smivs
I'm not sure what you mean by 'solid paint'. If you are refering to
this problem this is to do with errors in the models, and not the textures.
Oolite textures are made using what I would call solid colours and are just normal (.png) image files - take a look in the 'Textures' folders of the core game or most of the OXP ships.
Griff's textures are a bit different having a 'ghostly' appearance, but that's clever stuff I don't understand.
Re: solid material reading
Posted: Sat Sep 01, 2012 9:11 am
by Wildeblood
I'm thinking Xairon means that having defined a facet in the .dat file, you should be able to define a colour for that facet to be painted there, in the .dat file, and not need a texture file until you come to adding fine details.
Re: solid material reading
Posted: Sat Sep 01, 2012 10:02 am
by JensAyton
You can use solid colours by customizing materials in
shipdata.plist, for example:
Code: Select all
materials =
{
"my-material-key" =
{
diffuse_map = ""; // No texture.
diffuse_color= ( 1.0, 0.0, 0.0 ); // red
}
}
This still requires meaningful normals, but not meaningful texture coordinates.
Re: solid material reading
Posted: Sat Sep 01, 2012 6:49 pm
by commanderxairon
yeah i was referring to face color it should be pretty easy to do it, but i dont have enough java scripting skills to do it