solid material reading

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Post Reply
commanderxairon
Deadly
Deadly
Posts: 163
Joined: Mon Aug 22, 2011 3:16 am

solid material reading

Post 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
Pirate Commander: I would taken over Anleis and maked the first pirate system on this Ooniverse and become the monarch of all that empire if This stupid boy and his ship would'nt interfeer

Kuroshido(RXS-mariana) : scooby doobi doo?....

MY CREW
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Re: solid material reading

Post 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?
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: solid material reading

Post 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.
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: solid material reading

Post 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.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: solid material reading

Post 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.
commanderxairon
Deadly
Deadly
Posts: 163
Joined: Mon Aug 22, 2011 3:16 am

Re: solid material reading

Post 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
Pirate Commander: I would taken over Anleis and maked the first pirate system on this Ooniverse and become the monarch of all that empire if This stupid boy and his ship would'nt interfeer

Kuroshido(RXS-mariana) : scooby doobi doo?....

MY CREW
Post Reply