File location of default ship textures?

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

Moderators: winston, another_commander

Post Reply
User avatar
tsoj
Deadly
Deadly
Posts: 199
Joined: Wed May 18, 2016 8:19 pm
Location: Berlin
Contact:

File location of default ship textures?

Post by tsoj »

Hi, I am looking for some inspiration on how to create proper textures, so I thought I could take a look at the default textures. However, in the folder oolite/Resources/Textures there are only either old textures of previous oolite versions (e.g. cobra1_redux.png) or textures that are mostly transparent when I open them with Gimp (for example oolite_cobramk1_diffuse.png).
Are these actually the textures of the default ships? If yes, how can I display them properly? If not, where can I find the default textures?
I also noticed that Griffs default ship textures are a bit transparent, too, is this because of the special Griff-shaders or is this a core feature?

On two sidenotes:
- Does anybody by chance know a good youtube tutorial on how to create spaceship textures?
- the timeAccelerationFactor seems to work in my 1.90 installation. Is this because I installed it via AUR (I believe it compiled Oolite during the installation process from the GitHub sources) or is this feature now also enabled on release versions?
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: File location of default ship textures?

Post by Cody »

tsoj wrote: Sat Jan 30, 2021 10:00 pm
... is this feature now also enabled on release versions?
Short answer: no!
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6626
Joined: Wed Feb 28, 2007 7:54 am

Re: File location of default ship textures?

Post by another_commander »

The default textures are the mostly transparent ones. Oolite uses their alpha channel as the emission map, which is why they are mostly transparent, except for the parts that are supposed to emit light. To display them, just load them up in Gimp and switch off their alpha channel.

Using the alpha channel as emission map is defined in the core game in shipdata.plist, materials section. If you want you can use the alpha channel of your own textures for other things, or not at all. However, it is recommended not to deviate from the default game paradigm, unless you are prepared to supply your own shaders too.

As for Griff's textures, I think the alpha channel of the diffuse maps is used for specular intensity (based on the older lighting model), but I am recalling from my memory here and might be wrong on that.
User avatar
Griff
Oolite 2 Art Director
Oolite 2 Art Director
Posts: 2479
Joined: Fri Jul 14, 2006 12:29 pm
Location: Probably hugging his Air Fryer

Re: File location of default ship textures?

Post by Griff »

Edit: another_commander answered as i was busy typing out a post on my kindle and then correcting it as the autocorrect was going crazy :D

Good luck with the texture making tsoj !

If this is any use there's a 'resources' folder here:

https://app.box.com/shared/rpkms25cc9

that has a lot of my oxp ships in obj format so they can be loaded into a 3d app plus versions of the textures with the layer causing the transparency split off into another image, the transparency isn't an attempt to try and 'copy protect' the image or anything, I'm just using the alpha channel to store an extra layer of texture info, Oolite has to load this alpha channel into memory even if it just wants to use the red, green and blue channels for the ship color texture, so we may as well use it rather than waste the memory, i tend to put specular intensity or glow intensity maps in there, unfortunately in a png format image the alpha channel tends to be interperated as a transparency layer so it fades out the rest of the texture and makes it hard to view unless you remove the alpha, i'm not sure how to do this in most painting software, but there's a free app caled xnview that has a 'remove alpha channel' option on one of its menus if you load a png into it
User avatar
tsoj
Deadly
Deadly
Posts: 199
Joined: Wed May 18, 2016 8:19 pm
Location: Berlin
Contact:

Re: File location of default ship textures?

Post by tsoj »

Ah okay thanks!

For anybody else who wants to use Gimp for this: The option "Remove alpha-channel" doesn't actually remove the alpha channel properly, instead it somehow replaces it with a color. The best solution I've found, is this: https://graphicdesign.stackexchange.com/a/42479 (Colours -> Curves -> set "Channel" to "Alpha" -> click on the curve -> enter into the "Input" field 0 and into the "Output" field 255 -> Click OK)
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6626
Joined: Wed Feb 28, 2007 7:54 am

Re: File location of default ship textures?

Post by another_commander »

The way I switch off alpha in Gimp is shown below. Note the area circled in red.
Image

That's where I click and get the texture with the alpha off. The channel is of course still there, but I can now work on the diffuse if I want to. Using the new Cobra by Griff as an example for this.
Image


Also, if you want to have a look at the core models in obj format, we have them in the github repository here: https://github.com/OoliteProject/oolite ... t-1.80-obj
Post Reply