Oolite Bulletins

For information and discussion about Oolite.
It is currently Fri Jul 28, 2017 12:45 am

All times are UTC




Post new topic  Reply to topic  [ 159 posts ]  Go to page Previous 17 8 9 10 11 Next
Author Message
 Post subject: Re: Skinner’s Den
PostPosted: Wed Sep 09, 2015 6:41 am 
Offline
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
User avatar

Joined: Fri Nov 11, 2011 6:19 pm
Posts: 4007
Quote:
and the mostly transparent ..._diffuse.png. Or do these files hide something I can't see?
The _diffuse.png is what you want. It's an RGBA image file. The RGB channels are used for the diffuse map (paint), and the A (alpha, or opacity) channel is used for the emission map (glows). If you open the file as a whole in a graphics program, then it will look mostly transparent since most of the ship has no glows and therefore when read as a normal picture an opacity of 0 - any decent paint program will have a way to separate the channels out. Ideally you want to separate them RGB+A, but in some programs you may have to do that by separating them to R+G+B+A and then recombining the first three. Then you'll have a normal non-transparent texture file, and a separate greyscale image where the brightness of the image determines the glow intensity at that point on the texture.

It's done this way because we're only using single-colour glows on the basic textures, so this means we only need one texture file rather than two.

_________________
OXPs: [EliteWiki] New Cargoes, [EliteWiki] Skilled NPCs, [EliteWiki] Curse of the Black Sunspot, and more


Top
   
 Post subject: Re: Skinner’s Den
PostPosted: Wed Sep 09, 2015 7:13 am 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Mon Apr 06, 2009 12:20 pm
Posts: 6178
Location: Aboard the Pitviper S.E. "Blackwidow"
Quote:
any decent paint program will have a way to separate the channels out. Ideally you want to separate them RGB+A, but in some programs you may have to do that by separating them to R+G+B+A and then recombining the first three. Then you'll have a normal non-transparent texture file, and a separate greyscale image where the brightness of the image determines the glow intensity at that point on the texture.
And when you're done making changes to the file, you'll need to recombine all four channels before saving...

_________________
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied


Top
   
 Post subject: Re: Skinner’s Den
PostPosted: Wed Sep 09, 2015 11:33 am 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Tue Aug 28, 2012 8:05 pm
Posts: 485
Location: aboard the Laenina Crowne - Yasen-N class space freighter
just follow cim's and diziet advices. And if you need help in German send a pm. Otherwise I made a small howto for GIMP for my noshaders projects. I think it's in resources. or you might check the ocpc customisation (haven't done the python, tho) that's also dealing with the RGBA textures.

_________________
Amah


Top
   
 Post subject: Re: Skinner’s Den
PostPosted: Wed Sep 09, 2015 3:37 pm 
Offline
---- E L I T E ----
---- E L I T E ----

Joined: Sun Jul 12, 2015 2:30 pm
Posts: 591
Location: Bavaria, Germany
My English is not the problem, it's more that I've not done very much with graphics. I can make complex 3D models with SketchUp, but I would fail with colouring and texturing. Photoshop is far too complex for me, and I haven't done very much with Gimp. For simpler changes to bitmaps I usually use a 1990s version (!) of MGI PhotoSuite SE that came with my first scanner... :roll:

I'll play I little around with Gimp and let you know if it works or not!

_________________
"You wouldn't kill me just for a few credits, would you?" – "No, I'll do it just for the fun!"


Top
   
 Post subject: Re: Skinner’s Den
PostPosted: Wed Sep 09, 2015 4:29 pm 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Tue Aug 28, 2012 8:05 pm
Posts: 485
Location: aboard the Laenina Crowne - Yasen-N class space freighter
Good luck then.

For a start:
Splitting RGBA is found under "Colours-> Components-> Decompose-> RGBA"
Joining RGBA is the other way round: "Colours-> Components-> RGB"

_________________
Amah


Top
   
 Post subject: Re: Skinner’s Den
PostPosted: Wed Sep 09, 2015 9:54 pm 
Offline
---- E L I T E ----
---- E L I T E ----

Joined: Sun Jul 12, 2015 2:30 pm
Posts: 591
Location: Bavaria, Germany
Quote:
Splitting RGBA is found under "Colours-> Components-> Decompose-> RGBA"
Thank you! I didn't have much time this evening, but I tried this, and at least I now can see something that looks like a Python!

_________________
"You wouldn't kill me just for a few credits, would you?" – "No, I'll do it just for the fun!"


Top
   
 Post subject: Re: Skinner’s Den
PostPosted: Thu Sep 10, 2015 4:25 am 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Mon Apr 06, 2009 12:20 pm
Posts: 6178
Location: Aboard the Pitviper S.E. "Blackwidow"
Quote:
I'll play I little around with Gimp and let you know if it works or not!
Be sure to install GIMPs help file as well. It's a separate download. Not only will that give you the help files, it enables the context-sensitive help. Select a tool or menu item, etc, press F1, and the help info for that item will pop up, explaining what all the options for it will do. Very handy.

_________________
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied


Last edited by Diziet Sma on Thu Sep 10, 2015 5:13 am, edited 2 times in total.

Top
   
 Post subject: Re: Skinner’s Den
PostPosted: Thu Sep 10, 2015 4:40 am 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Tue Aug 28, 2012 8:05 pm
Posts: 485
Location: aboard the Laenina Crowne - Yasen-N class space freighter
you have to do both steps... split into RGBA (keep the A channel somewhere, you'll need it later) and then join it to RGB to get a coloured one plane diffuse texture. I was vague about that, sorry.

for decals: use an extra layer for easier positioning on the texture and in the end later merge all layers.
for colour variations,: colours ->hue-saturation -> change colour channel from all to e.g. magenta (in case you want to colour all magenta'ish bits) and then use the sliders...

And follow diziet's advice. The help files come in quite handy to check back. Other than that feel free to ask,

Have fun.

_________________
Amah


Top
   
 Post subject: Re: Skinner’s Den
PostPosted: Fri Sep 11, 2015 12:02 pm 
Offline
---- E L I T E ----
---- E L I T E ----

Joined: Sun Jul 12, 2015 2:30 pm
Posts: 591
Location: Bavaria, Germany
At the moment I'm trying to learn Gimp, as even trivial tasks like copying and mirroring seem to be much more complex than in my familiar graphics program (which doesn't support layers). And I'm still figuring out how to "paint" coloured stripes and things like that over the hull without destroying the structure. I did something like this many years ago and I know it must be possible somehow.

Btw, I found out that the Python-trader texture is a little bit faulty (asymmetric). That doesn't make things easier because doing one side and than mirror it is not possible.

_________________
"You wouldn't kill me just for a few credits, would you?" – "No, I'll do it just for the fun!"


Top
   
 Post subject: Re: Skinner’s Den
PostPosted: Fri Sep 11, 2015 4:02 pm 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Tue Aug 28, 2012 8:05 pm
Posts: 485
Location: aboard the Laenina Crowne - Yasen-N class space freighter
for the stripes it "easiest" to use a second layer, set opacity to 75% either Dodge or Overlay. This way the underlying structure is combined with the stripes of the new layer.

You also could set Opacity for the burshes, but the first solution is cleaner if you changed about the percentage your mind along the editing :-)

_________________
Amah


Top
   
 Post subject: Re: Skinner’s Den
PostPosted: Sun Sep 13, 2015 2:09 pm 
Offline
---- E L I T E ----
---- E L I T E ----

Joined: Sun Jul 12, 2015 2:30 pm
Posts: 591
Location: Bavaria, Germany
Yes, I experimented with opacity too. You must make the colour a little bit more intense, but it works. Before I discovered this, I found another solution: Having real decals in mind, I wouldn't simply stick them over the corners, gaps and hatches, so I made the decals in several smaller pieces. But I still can use opacity to make them look a little older (showing the structure of the underlying hull plates).

Now the only thing I have to do is to recreate a 4 layer PNG. That's my goal for today!

_________________
"You wouldn't kill me just for a few credits, would you?" – "No, I'll do it just for the fun!"


Top
   
 Post subject: Re: Skinner’s Den
PostPosted: Sun Sep 13, 2015 2:56 pm 
Offline
Retired Assassin
Retired Assassin
User avatar

Joined: Tue Feb 09, 2010 11:31 am
Posts: 8270
Location: Disunited Kingdom
Reducing opacity as you've found can alter the colour which is inconvenient, but it also gives a uniform effect which can actually look un-natural if left like that. I've found a better approach is to apply the colour then go for something like 90% opacity just to wash the colour out a tiny bit. Then selectively erase areas to simulate un-even wear. Use something like the Big Galaxy brush. Start with a large brush on low opacity, then make the brush smaller and raise the opacity a bit and erase again, then smaller still and higher opacity. With a bit of experimenting and practice you can produce areas of wear that 'fade out' from the centre. You can then do something similar with full (non-transparency) colour to add some areas of new paint to simulate repaired areas - use a large fuzzy brush etc for this.
This results in a finish that looks like mostly established paint with areas of more extreme wear as well as new patches - take a look at the Python below.

Image

_________________
Commander Smivs, the friendliest Gourd this side of Riedquat.


Top
   
 Post subject: Re: Skinner’s Den
PostPosted: Mon Sep 14, 2015 12:38 am 
Offline
---- E L I T E ----
---- E L I T E ----

Joined: Sun Jul 12, 2015 2:30 pm
Posts: 591
Location: Bavaria, Germany
Quote:
Now the only thing I have to do is to recreate a 4 layer PNG. That's my goal for today!
In retrospective I shouldn't have played Oolite so much today... :roll:

I'm still stuck somehow. Gimp creates new files in every step concerning the splitting and combining of the layers, and in the end I have a nice 3 channel PNG but the alpha channel is lost.

That's what I did so far:
1) Open the original file "... diffuse.png"
2) Colours-> Components-> Decompose-> RGBA. This creates a file with 4 layers R, G, B, and A.
3) Colours-> Components-> Compose-> RGB (I'm not sure what the menu is called in the English version of Gimp, as I'm using the German version). This joins the R, G, and B layers and creates a "normal" RGB bitmap as a separate PNG file.
4) I can change this file by simply painting to it or by adding new layers with decals, the last step being to join all layers. Everything said about decals, surface structure and opacity is part of this step.

But now what? I probably have to import the alpha channel from the decomposed file created in step 2. But I can't figure out how to do it. I also tried try to import my decal layer into the original file or into the file created in step 2) but so far I haven't succeeded in getting the desired result.

It has become late. Maybe tomorrow evening...

_________________
"You wouldn't kill me just for a few credits, would you?" – "No, I'll do it just for the fun!"


Top
   
 Post subject: Re: Skinner’s Den
PostPosted: Mon Sep 14, 2015 4:47 am 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Tue Aug 28, 2012 8:05 pm
Posts: 485
Location: aboard the Laenina Crowne - Yasen-N class space freighter
Code:
* Copy the emmission map/former alphachannel (from step2)  to the clipboard.
* DE: "Ebene -> Maske -> Ebenenmaske hinzufügen -> Schwarz (volle Transparenz)
  EN: "Layer -> Mask -> Add Layermask -> Black (full transparency)
 ---> you will get now a fully transparent RGBA picture
* Paste the lightmap
* export to png
* done.
About adding the stripes and decals... I use transparency for decals and stuff, but I play around with different layer combination like dodge, burn and overlay, grain merge).

_________________
Amah


Top
   
 Post subject: Re: Skinner’s Den
PostPosted: Mon Sep 14, 2015 11:27 pm 
Offline
---- E L I T E ----
---- E L I T E ----

Joined: Sun Jul 12, 2015 2:30 pm
Posts: 591
Location: Bavaria, Germany
Ok, thank you that seems to work! Now I have a PNG file that behaves exactly like the original diffuse PNG - at least in Gimp. I included it into my shipdata.plist, but Oolite still shows the old texture. I'm not sure why, but I probably made a stupid mistake somewhere. Or does Oolite simply ignore PNG files that have some strange properties?

The "artwork" part will be more fun, getting used to Gimp and trying to work with the different brush types and filters. Even the "coffee stain" effect looks good on a battered Python!

_________________
"You wouldn't kill me just for a few credits, would you?" – "No, I'll do it just for the fun!"


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 159 posts ]  Go to page Previous 17 8 9 10 11 Next

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Limited