Blue shadows on planets
- LordSutekh
- Commonwealth Pilot
- Posts: 87
- Joined: Sat Mar 20, 2010 9:36 pm
- Location: Bedlam
Yeah... now that it's not so late at night I realized that.
Here's the 1-bit mask
And here's the 8-bit
Which, apparently, imageshack decided to convert to a .png
Here's the 1-bit mask
And here's the 8-bit
Which, apparently, imageshack decided to convert to a .png
-
- Developer
- Posts: 2997
- Joined: Thu Jul 24, 2003 9:53 pm
- Contact:
Thanks. I believe I've fixed the problem in 1.08e (available now).
As I said, the engine uses black (0x0000) to tell when to make an image transparent. This is an optimization so the engine doesn't have to carry around the mask after load time. Of course, if the image needs to use black, the engine changes the color to a slightly different color (0x0001).
Unfortunately, though this is a subtle difference, on some monitors (including mine) the difference between black and slightly blue is very noticeable.
I've changed the code so that the engine now uses a different color, a bright shade of purple (0xfc1f), as the "transparent color". This means that black can be painted as black. If you ever use 0xfc1f in your image, it will be transmuted to a slightly different value, but this will be unnoticeable.
Try it and let me know.
As I said, the engine uses black (0x0000) to tell when to make an image transparent. This is an optimization so the engine doesn't have to carry around the mask after load time. Of course, if the image needs to use black, the engine changes the color to a slightly different color (0x0001).
Unfortunately, though this is a subtle difference, on some monitors (including mine) the difference between black and slightly blue is very noticeable.
I've changed the code so that the engine now uses a different color, a bright shade of purple (0xfc1f), as the "transparent color". This means that black can be painted as black. If you ever use 0xfc1f in your image, it will be transmuted to a slightly different value, but this will be unnoticeable.
Try it and let me know.
- LordSutekh
- Commonwealth Pilot
- Posts: 87
- Joined: Sat Mar 20, 2010 9:36 pm
- Location: Bedlam
I can't help but feel that changing the game code is somehow cheating . Seriously though, thank you George.
- alterecco
- Fleet Officer
- Posts: 1658
- Joined: Wed Jan 14, 2009 3:08 am
- Location: Previously enslaved by the Iocrym
On another note: http://ianstormtaylor.com/design-tip-never-use-black/
- Aury
- Fleet Admiral
- Posts: 5421
- Joined: Tue Feb 05, 2008 1:10 am
- Location: Somewhere in the Frontier on a Hycrotan station, working on new ships.
I usually render with another light above the model, where the camera is; its dim, and so still results in a nice contrast for the space env., but it prevents pure-black in the shadows of the model which look bad (as you can't tell where the ship ends and space begins) - with the extremely dim but still present lighting of the stars, galaxies and local system bodies, there is going to be some small amount of light; just look at earth's moon; it isn't pure black on the side in shadow; you can still see a pretty visible outline that is just a very dark grey.
(interestingly, the moon's average albedo is 8% iirc, making it one of the darkest bodies in the solar system to have achieved hydrostatic equilibrium)
(interestingly, the moon's average albedo is 8% iirc, making it one of the darkest bodies in the solar system to have achieved hydrostatic equilibrium)
(shpOrder gPlayership 'barrelRoll)
(plySetGenome gPlayer (list 'Varalyn 'nonBinary))
Homelab Servers: Xeon Silver 4110, 16GB | Via Quadcore C4650, 16GB | Athlon 200GE, 8GB | i7 7800X, 32GB | Threadripper 1950X, 32GB | Atom x5 8350, 4GB | Opteron 8174, 16GB | Xeon E5 2620 v3, 8GB | 2x Xeon Silver 4116, 96GB, 2x 1080ti | i7 8700, 32GB, 6500XT
Workstations & Render machines: Threadripper 3990X, 128GB, 6900XT | Threadripper 2990WX, 32GB, 1080ti | Xeon Platinum 8173M, 48GB, 1070ti | R9 3900X, 16GB, Vega64 | 2x E5 2430L v2, 24GB, 970 | R7 3700X, 32GB, A6000
Gaming Systems: R9 5950X, 32GB, 6700XT
Office Systems: Xeon 5318Y, 256GB, A4000
Misc Systems: R5 3500U, 20GB | R5 2400G, 16GB | i5 7640X, 16GB, Vega56 | E5 2620, 8GB, R5 260 | P4 1.8ghz, 0.75GB, Voodoo 5 5500 | Athlon 64 x2 4400+, 1.5GB, FX 5800 Ultra | Pentium D 3.2ghz, 4GB, 7600gt | Celeron g460, 8GB, 730gt | 2x Athlon FX 74, 8GB, 8800gts 512 | FX 9590, 16GB, R9 295x2 | E350, 8GB | Phenom X4 2.6ghz, 16GB, 8800gt | random core2 duo/atom/i5/i7 laptops
(plySetGenome gPlayer (list 'Varalyn 'nonBinary))
Homelab Servers: Xeon Silver 4110, 16GB | Via Quadcore C4650, 16GB | Athlon 200GE, 8GB | i7 7800X, 32GB | Threadripper 1950X, 32GB | Atom x5 8350, 4GB | Opteron 8174, 16GB | Xeon E5 2620 v3, 8GB | 2x Xeon Silver 4116, 96GB, 2x 1080ti | i7 8700, 32GB, 6500XT
Workstations & Render machines: Threadripper 3990X, 128GB, 6900XT | Threadripper 2990WX, 32GB, 1080ti | Xeon Platinum 8173M, 48GB, 1070ti | R9 3900X, 16GB, Vega64 | 2x E5 2430L v2, 24GB, 970 | R7 3700X, 32GB, A6000
Gaming Systems: R9 5950X, 32GB, 6700XT
Office Systems: Xeon 5318Y, 256GB, A4000
Misc Systems: R5 3500U, 20GB | R5 2400G, 16GB | i5 7640X, 16GB, Vega56 | E5 2620, 8GB, R5 260 | P4 1.8ghz, 0.75GB, Voodoo 5 5500 | Athlon 64 x2 4400+, 1.5GB, FX 5800 Ultra | Pentium D 3.2ghz, 4GB, 7600gt | Celeron g460, 8GB, 730gt | 2x Athlon FX 74, 8GB, 8800gts 512 | FX 9590, 16GB, R9 295x2 | E350, 8GB | Phenom X4 2.6ghz, 16GB, 8800gt | random core2 duo/atom/i5/i7 laptops
- LordSutekh
- Commonwealth Pilot
- Posts: 87
- Joined: Sat Mar 20, 2010 9:36 pm
- Location: Bedlam
I usually render with at least two lights as well. And I absolutely agree with you about the black for items, ships, forums, and San Francisco streets. But for planets I have to disagree. Space is extreme. Extreme temperatures, extreme radiation, and, yes, extreme darkness. One look at the night sky should establish that this:
is more realistic than this:
Starlight from distant stars just isn't that bright. It also depends on a planets albedo. A gas giant with a thick atmosphere usually has more albedo than an airless rock. Gas giants I render with little to no shadow. Cratered airless moons not so much.
is more realistic than this:
Starlight from distant stars just isn't that bright. It also depends on a planets albedo. A gas giant with a thick atmosphere usually has more albedo than an airless rock. Gas giants I render with little to no shadow. Cratered airless moons not so much.
and about habited planets?
...Lights from cities could be viewed from space...Did you make any planet such as our own Earth? (with great cities...and nuclear explosion to illuminate the sky...)
...Lights from cities could be viewed from space...Did you make any planet such as our own Earth? (with great cities...and nuclear explosion to illuminate the sky...)
Look up at our own cratered, airless moon some time. It looks more like the latter. I think it's more grey than blue, but it's not black.LordSutekh wrote:I usually render with at least two lights as well. And I absolutely agree with you about the black for items, ships, forums, and San Francisco streets. But for planets I have to disagree. Space is extreme. Extreme temperatures, extreme radiation, and, yes, extreme darkness. One look at the night sky should establish that this:
is more realistic than this:
Starlight from distant stars just isn't that bright. It also depends on a planets albedo. A gas giant with a thick atmosphere usually has more albedo than an airless rock. Gas giants I render with little to no shadow. Cratered airless moons not so much.
Literally is the new Figuratively
- digdug
- Fleet Admiral
- Posts: 2620
- Joined: Mon Oct 29, 2007 9:23 pm
- Location: Decoding hieroglyphics on Tan-Ru-Dorem
Shadowed parts of our Moon are actually illuminated a little, as Atarlost said. Light reflected from the Moon reaches Earth, then part of it is reflected back to the Moon, illuminating the part in shadows that would be otherwise pitch black.
However reality is reality, and graphics art in a 2D game is something different. I much more prefer the pitch back rendered moon.
Vanilla planets and moons are actually nearly completely black in the bottom right corner of the image. I would like to see that moon with the right illumination angle to decide
However reality is reality, and graphics art in a 2D game is something different. I much more prefer the pitch back rendered moon.
Vanilla planets and moons are actually nearly completely black in the bottom right corner of the image. I would like to see that moon with the right illumination angle to decide
- Aury
- Fleet Admiral
- Posts: 5421
- Joined: Tue Feb 05, 2008 1:10 am
- Location: Somewhere in the Frontier on a Hycrotan station, working on new ships.
I prefer the pitch black to the pitch blue, but would have just rendered it with extra lighting.
(shpOrder gPlayership 'barrelRoll)
(plySetGenome gPlayer (list 'Varalyn 'nonBinary))
Homelab Servers: Xeon Silver 4110, 16GB | Via Quadcore C4650, 16GB | Athlon 200GE, 8GB | i7 7800X, 32GB | Threadripper 1950X, 32GB | Atom x5 8350, 4GB | Opteron 8174, 16GB | Xeon E5 2620 v3, 8GB | 2x Xeon Silver 4116, 96GB, 2x 1080ti | i7 8700, 32GB, 6500XT
Workstations & Render machines: Threadripper 3990X, 128GB, 6900XT | Threadripper 2990WX, 32GB, 1080ti | Xeon Platinum 8173M, 48GB, 1070ti | R9 3900X, 16GB, Vega64 | 2x E5 2430L v2, 24GB, 970 | R7 3700X, 32GB, A6000
Gaming Systems: R9 5950X, 32GB, 6700XT
Office Systems: Xeon 5318Y, 256GB, A4000
Misc Systems: R5 3500U, 20GB | R5 2400G, 16GB | i5 7640X, 16GB, Vega56 | E5 2620, 8GB, R5 260 | P4 1.8ghz, 0.75GB, Voodoo 5 5500 | Athlon 64 x2 4400+, 1.5GB, FX 5800 Ultra | Pentium D 3.2ghz, 4GB, 7600gt | Celeron g460, 8GB, 730gt | 2x Athlon FX 74, 8GB, 8800gts 512 | FX 9590, 16GB, R9 295x2 | E350, 8GB | Phenom X4 2.6ghz, 16GB, 8800gt | random core2 duo/atom/i5/i7 laptops
(plySetGenome gPlayer (list 'Varalyn 'nonBinary))
Homelab Servers: Xeon Silver 4110, 16GB | Via Quadcore C4650, 16GB | Athlon 200GE, 8GB | i7 7800X, 32GB | Threadripper 1950X, 32GB | Atom x5 8350, 4GB | Opteron 8174, 16GB | Xeon E5 2620 v3, 8GB | 2x Xeon Silver 4116, 96GB, 2x 1080ti | i7 8700, 32GB, 6500XT
Workstations & Render machines: Threadripper 3990X, 128GB, 6900XT | Threadripper 2990WX, 32GB, 1080ti | Xeon Platinum 8173M, 48GB, 1070ti | R9 3900X, 16GB, Vega64 | 2x E5 2430L v2, 24GB, 970 | R7 3700X, 32GB, A6000
Gaming Systems: R9 5950X, 32GB, 6700XT
Office Systems: Xeon 5318Y, 256GB, A4000
Misc Systems: R5 3500U, 20GB | R5 2400G, 16GB | i5 7640X, 16GB, Vega56 | E5 2620, 8GB, R5 260 | P4 1.8ghz, 0.75GB, Voodoo 5 5500 | Athlon 64 x2 4400+, 1.5GB, FX 5800 Ultra | Pentium D 3.2ghz, 4GB, 7600gt | Celeron g460, 8GB, 730gt | 2x Athlon FX 74, 8GB, 8800gts 512 | FX 9590, 16GB, R9 295x2 | E350, 8GB | Phenom X4 2.6ghz, 16GB, 8800gt | random core2 duo/atom/i5/i7 laptops
I have to say, and I don't think I will get a whole lot of disagreement, that you should be able to see the whole outline of the moon or planet as long as there is something orbiting it. As you should probably know, George takes astral photograhy and lo he's also taken shots of the moon.
Here's what it does look like.
http://neurohack.com/Astrophotography/TheMoon.html
You can clearly see the outline. I took a sample of the "black" area in paint and it came up with a really dark blue.
hue 160, lum 11, red 12, green 12, blue 12.
Of course the color can merely be arbitrary since it's an image created from a machine but it's obvious that you can see it no matter the color.
Although it's a composit image and the dark side is significantly brighter than the image should be, the human eye can still see the dark area on a clear night.
Here's what it does look like.
http://neurohack.com/Astrophotography/TheMoon.html
You can clearly see the outline. I took a sample of the "black" area in paint and it came up with a really dark blue.
hue 160, lum 11, red 12, green 12, blue 12.
Of course the color can merely be arbitrary since it's an image created from a machine but it's obvious that you can see it no matter the color.
Although it's a composit image and the dark side is significantly brighter than the image should be, the human eye can still see the dark area on a clear night.
"Have you guys ever watched the show?" ~ Guy