Page 2 of 13

Colour usage

Posted: Mon Jan 26, 2009 10:28 pm
by _ds_
Can I just ask people not to…
  • use more than two dissimilar colours close together – it could look bad if oolite gains S3TC/DXTC support and people start converting texture file formats¹ (at which point 1024×1024 is very practical!);
  • include alpha channels unless you actually need one – if oolite gains support for plan RGB textures at some point, those alpha channels will be wasting 25% of the memory used for the affected textures.
¹ As I've done locally. Patches for oolite svn, packed textures, and a compression tool (source & amd64 .deb; you'll need libtxc-dxtn0 from debian-multimedia) from the URL below.

Re: Colour usage

Posted: Tue Jan 27, 2009 1:24 am
by JensAyton
_ds_ wrote:
  • include alpha channels unless you actually need one – if oolite gains support for plan RGB textures at some point, those alpha channels will be wasting 25% of the memory used for the affected textures.
Wrong – no normal 3D hardware supports uncompressed RGB textures natively. RGB data is always expanded to RGBA. (However, with S3TC compression, having no alpha channel is a 50 % saving.)

Re: Colour usage

Posted: Tue Jan 27, 2009 3:07 am
by _ds_
Ahruman wrote:
_ds_ wrote:
  • include alpha channels unless you actually need one – if oolite gains support for plan RGB textures at some point, those alpha channels will be wasting 25% of the memory used for the affected textures.
Wrong – no normal 3D hardware supports uncompressed RGB textures natively. RGB data is always expanded to RGBA.
Hmm. So any point that there may be in doing anything about this would seem to depend on what does the expansion (AFAICS). However, it's still better in terms of the file size, which should help with those ISP-imposed download quotas. (Well, only a little, but every byte counts…)
Ahruman wrote:
(However, with S3TC compression, having no alpha channel is a 50 % saving.)
I'd noticed that. :P

(Patches updated, BTW.)

Posted: Tue Jan 27, 2009 8:45 am
by Griff
_ds_ is that a sinclair spectrum laptop in your avatar!?!

Posted: Thu Jan 29, 2009 12:29 am
by _ds_
Griff wrote:
_ds_ is that a sinclair spectrum laptop in your avatar!?!
I wish 8)
(One ZX Spectrum, still working when I last checked; one EeePC 901.)

Posted: Thu Jan 29, 2009 5:45 pm
by goran
_ds_ wrote:
Griff wrote:
_ds_ is that a sinclair spectrum laptop in your avatar!?!
I wish 8)
(One ZX Spectrum, still working when I last checked; one EeePC 901.)
I've seen one recently... there You go: http://srimech.com/?page_id=18 and also http://www.retroleum.co.uk/z80-v4project.html.

I'm stickin' to emulators tho.

Posted: Tue Feb 03, 2009 2:09 pm
by Pangloss
In this next quick demo, I'll show you how to make a texture for a moon or planet. And make it so there are no visible seams.

First of all, here is a part of the dark side of the moon (please: no Pink Floyd quips!). I deliberately chose an area that has similar texture around the edges... No "craters on one side, seas on the other", because we want this to blend.

First step: we offset that texture.

Image

A good amount to offset is half the width of the texture. I believe planets have textures of 1024 or 512 squared Planets have larger textures... I'm just using a set area for illustrative purposes of around 400 pixels in length / height, so I offset at 200 pixels. Don't forget to wrap around the texture.

Image

...and if you look in the middle of the image, you can see the lines where one part suddenly ends and the next part suddenly starts.

I'll get rid of that with the Clone Stamp.

Image

I choose a crater-filled area away from the seam as my area to use, then sweep away at the seam. Be careful not to go right up to the edge and beyond or you'll be creating a whole new seam! Pretty soon, there's no join to be seen.

Just to be sure there IS no additional seam, I offset the texture again (this time by 100 pixels) and clean up any last lines.

Image

You can leave the texture just as-is. I prefer to make it look Mars red, so I use the Variation tool to add red and yellow. That gives the planet that rusty look.

Image

Save your texture as a PNG. You're done!

Just to make sure it looks good, you can copy and paste the tiles together, just to make sure they're seamless. Here's a 2x2 example of my moon texture, colored Mars red, showing no joins. You can see the repeating patterns in the rocks, and no seam in the texture means it's a success.

Image

Posted: Tue Feb 03, 2009 2:20 pm
by DaddyHoggy
Nice. Simple. Succinct. Bravo.

Posted: Tue Feb 03, 2009 2:21 pm
by Commander McLane
BTW: There is already another guide for creating seamless textures around here. I'm sure somebody can dig it up.

EDIT: There it is, from this thread, and made by no other than the Oolite 2 Art Director himself. Enjoy:
Griff wrote:
Painting out the seam makes a whole world of difference (no pun intended) to the finished planet texture. It's quite easy to do, just swap the left & right positions of the two halves of your texture map so the seam now runs down the middle of the image. now just grab your painting tools and paint it out!
Image
Just two remarks/corrections: Planetary textures are not squared. They need to be 512x256, or 1024x512, or so. (You have to cover 360 degrees of longitude, but only 180 degrees of latitude.) Second, there is no need for seamlessness both ways. At the north and south pole the whole length of the texture gets contracted into one dot. Planets are no tori (usually), therefore whoever steps one step further than the north pole does not suddenly find himself at the south pole, just one step away from the north pole, and 180 degrees further east/west.

EDIT2: The main problem with planetary textures is still that Oolite doesn't wrap them around the planet as you would expect. See here for detailed explanation.

Posted: Tue Feb 03, 2009 2:24 pm
by DaddyHoggy
Would this be a good technique for skinning an asteroid though?

Posted: Tue Feb 03, 2009 2:26 pm
by Thargoid
Or a trumble... :twisted:

Posted: Tue Feb 03, 2009 6:06 pm
by Tivva
Thargoid wrote:
Or a trumble... :twisted:
Nah, no point wasting time skinning a Trumble...
just bbq as caught & the fur just burns off nicely... :lol:

Posted: Tue Feb 03, 2009 6:32 pm
by Captain Hesperus
Tivva wrote:
Thargoid wrote:
Or a trumble... :twisted:
Nah, no point wasting time skinning a Trumble...
just bbq as caught & the fur just burns off nicely... :lol:
I concur, there are easier ways to skin a Trumble.
Shaving a Trumble, however, is child's play.

Captain Hesperus

Posted: Sun Feb 08, 2009 12:55 am
by Simon B
These are photoshop tricks - doesn't photoshop have an equivalent for GIMPs "make seamless" and "texturise" tools?

Note that the lunar method creates a wallpaper look of repeating patterns?
I'm going ta have to do the GIMP version of this howto - obviously...

Posted: Sun Feb 08, 2009 1:23 am
by Frame
Advanced Seamsless Photoshop Tutorial...

http://www.biorust.com/tutorials/detail/160/en/