Author Topic: Goodbye 256 Bit  (Read 9234 times)

0 Members and 1 Guest are viewing this topic.

Offline Carl

  • Render artist
  • 211
    • http://www.3dap.com/hlp/
well, how did they do it when they went to the moon? no van allen belt there, right? i don't know about using lots of lead, though. that's really heavy stuff, and when you're going to mars, you've gotta be really stingy with your fuel.

...i seem to remember something about 256 colors for some reason.
"Gunnery control, fry that ****er!" - nuclear1

 

Offline Fry_Day

  • 28
Quote
Quote
On to the MNG/JNG stuff, the point is that all formats except (and I'm not suer about that) .dds are converted internally to 16-bit, so even well-done 256-color stuff actually loses quality.


Why?


There are two 'why's that I can see. First one is, "Why are images converted to 16-bit internally", to which the answer is, they just are. I'm guessing Volition never considered storing the textures at 32-bit internally since that would be a total waste of on-board RAM when you're using an 8MB Matrox G200 or 16MB Riva TNT. That could probably be changed, but there are lots of places in which it needs to be changed.

The other question is "Why is there quality loss?"
Well, a 256-color image can choose out of 16777216 different colors (2^24), giving you 8-bits per channel. If the image is say, greyscale, it would have 256 different shades of grey (including white and black, of course), yet, a 16-bit image, stored in the 565 format, would have only 64 (2^6) shades of grey, and even then, they wouldn't be exactly grey. A lot of images with smooth gradients can suffer such problems even if they managed to be converted fine (Look at nebulae backgrounds).

And, beyond that, I just love it when this forum becomes a discussion of theoretical physics :)

 
Quote
Originally posted by karajorma
I don't think the penetration of the ray is linked to the fact that it is ionising or non-ionising. Gamma rays are non ionising radiation

Uh, gamma rays are very ionizing. As far as I know, gamma rays are the highest frequency on the EM spectrum, and also have very high penetration. They are not appreciably deflected by electric or magnetic fields (and, hence, electromagnetic fields), either. Earth's atmosphere does provide good protection from them, though -- I think it's the ozone layer.

Quote
Alpha particles on the other hand are most ionising of the three common types (alpha, beta and gamma).

Alpha and beta particles are not EM. An alpha particle is the nucleus of a helium atom (2 protons + 2 neutrons), and beta particles are electrons or positrons (antielectrons).

Quote
yet they can be stopped by a piece of paper! :D

Alpha particles are stopped by paper. Beta particles go right through it as if it weren't there. Gamma rays do too.

Quote
Cosmic rays aren't actually EM despite the name. They are actually particles travelling at a fair proportion of the speed of light.

Some of them are, some of them aren't. The term 'cosmic ray' refers to all sorts of radiation of extraterrestrial origin (usually from outside the system). This includes gamma rays, protons, alpha particles, and so on. Collision with Earth's atmosphere has interesting effects on cosmic rays, such as transforming them into some other sort of ray or particle.

Quote
As long as the ray is charged you could deflect it with a EM field but if the particle is a neutron then the field won't do much about it.

Right, EM fields only affect charged particles (and, hence, all atoms, and the nuclei and electrons in plasma). The strength of the field versus the velocity and mass of some incoming object (particle, atom, spider, ...) determines how much of an effect there is on that incoming object. This means that gamma rays are affected by EM fields, though you'd need a pretty strong field to deflect them (like Shivan shields :D ).

Quote
Originally posted by Carl
well, how did they do it when they went to the moon? no van allen belt there, right? i don't know about using lots of lead, though.

Speaking of Shivans...

Anyway, the moon's orbit is very close to the Earth, and well within its Van Allen belt, so orbital and lunar craft and personnel are protected by it.

Quote
that's really heavy stuff, and when you're going to mars, you've gotta be really stingy with your fuel.

Not if your fuel is deuterium or antimatter. :D

Quote
...i seem to remember something about 256 colors for some reason.

Probably the old software rendering engine in FreeSpace 1. Software renderers generally do 256 colors only, presumably because higher bit depths would slow them down. The software renderer is still in FS2, but it's disabled, presumably because of new graphics stuff like the full nebula.

Quote
Originally posted by Fry_Day
There are two 'why's that I can see. First one is, "Why are images converted to 16-bit internally", to which the answer is, they just are. I'm guessing Volition never considered storing the textures at 32-bit internally since that would be a total waste of on-board RAM when you're using an 8MB Matrox G200 or 16MB Riva TNT. That could probably be changed, but there are lots of places in which it needs to be changed.

Storing the textures at 32-bit internally means storing them as 32-bit on main memory, not the video hardware's texture memory. Converting to 16 bpp could be done when the textures are transferred to the video card, or it could be done when the textures are loaded off the disk, as necessary.

Quote
The other question is "Why is there quality loss?"
 Well, a 256-color image can choose out of 16777216 different colors (2^24), giving you 8-bits per channel. If the image is say, greyscale, it would have 256 different shades of grey (including white and black, of course), yet, a 16-bit image, stored in the 565 format, would have only 64 (2^6) shades of grey, and even then, they wouldn't be exactly grey. A lot of images with smooth gradients can suffer such problems even if they managed to be converted fine (Look at nebulae backgrounds).

I didn't ask why there is quality loss. I know why there is loss of quality in 8 and 16 bpp -- the only way to retain the quality of a 32 bpp texture is to not convert it. :)

Quote
And, beyond that, I just love it when this forum becomes a discussion of theoretical physics :)

Since this is a forum about a space combat simulation, I would imagine that happens reasonably frequently. By the way, most of this physics stuff isn't theoretical -- it's well known physics, much of which is taught in school / college.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Quote
Originally posted by _argv[-1]
Uh, gamma rays are very ionizing. As far as I know, gamma rays are the highest frequency on the EM spectrum, and also have very high penetration. They are not appreciably deflected by electric or magnetic fields (and, hence, electromagnetic fields), either. Earth's atmosphere does provide good protection from them, though -- I think it's the ozone layer.


My bad. I meant to say that Gamma rays are the least ionising of the three not that they are non-ionising. If you think about it, it is obvious why. While alpha and beta particles are charged particles gamma rays are an EM wave (you are correct that they are the highest on the spectrum).

Quote
Originally posted by _argv[-1]
Alpha and beta particles are not EM. An alpha particle is the nucleus of a helium atom (2 protons + 2 neutrons), and beta particles are electrons or positrons (antielectrons).


Never said they were EM. You said that ionising radiation inherently has high penetration. I mention alpha particles cause they are a highly ionising form of radiation and yet their penetration is very low.

Quote
Originally posted by _argv[-1]
Alpha particles are stopped by paper. Beta particles go right through it as if it weren't there. Gamma rays do too.


 Reread my sentence. I never said anything about the pentration of beta particles (Stopped by a few mm of aluminum in case anyone was wondering) I was simply taking about alpha particles.  :)

Quote
Originally posted by _argv[-1]
Some of them are, some of them aren't. The term 'cosmic ray' refers to all sorts of radiation of extraterrestrial origin (usually from outside the system). This includes gamma rays, protons, alpha particles, and so on. Collision with Earth's atmosphere has interesting effects on cosmic rays, such as transforming them into some other sort of ray or particle.


Depends on who you listen to. I just did a google search and found 3 NASA sites that said cosmic rays were particles and one that claimed they were EM as well. Sometimes it's funny when even the experts can't decide :) :rolleyes:

Quote
Originally posted by _argv[-1]
Right, EM fields only affect charged particles (and, hence, all atoms, and the nuclei and electrons in plasma). The strength of the field versus the velocity and mass of some incoming object (particle, atom, spider, ...) determines how much of an effect there is on that incoming object. This means that gamma rays are affected by EM fields, though you'd need a pretty strong field to deflect them (like Shivan shields :D ).


Try as I might I can't figure this one out. I assumed when you said cosmic rays you were talking about particles not EM. If you are talking about blocking EM too I'm really lost as to how on Earth you're planning to get an EM field to blank out another EM field? Admittedly I only took physics to the A level but stopping one EM field with another sounds like trying to prevent yourself from getting a tan by shining a giant torch at the sun.
 Sure you might be able to block EM if you set up the correct pattern of interference but trying to do that using non-ionising just sounds wrong to me. If you do know more physics than me (which is a possibility since I didn't do a degree in it) I'd love to know this could work.



Quote
Originally posted by _argv[-1]
Anyway, the moon's orbit is very close to the Earth, and well within its Van Allen belt, so orbital and lunar craft and personnel are protected by it.


Huh? Where on Earth are you getting that from! The Distance that the Van Allen belts extend from Earth is another thing that NASA sites seemed to disagree on but not a single one said that they extended more than 65,000 km from the Earth (with all of them saying that the strong part of the outer belt was about 19,000km above the Earth at most)
 The moon on the other hand is 380,000 km away!
« Last Edit: September 21, 2003, 07:23:07 am by 340 »
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 
Quote
Originally posted by karajorma
My bad. I meant to say that Gamma rays are the least ionising of the three not that they are non-ionising. If you think about it, it is obvious why. While alpha and beta particles are charged particles gamma rays are an EM wave (you are correct that they are the highest on the spectrum).

EM waves are photons. Photons are charged particles.

Quote
Never said they were EM. You said that ionising radiation inherently has high penetration. I mention alpha particles cause they are a highly ionising form of radiation and yet their penetration is very low.

Ionizing EM radiation.

Quote
I assumed when you said cosmic rays you were talking about particles not EM.

Cosmic rays are all sorts of stuff -- EM, high-speed neutrons or whatever, etc.

Quote
If you are talking about blocking EM too I'm really lost as to how on Earth you're planning to get an EM field to blank out another EM field?

Two EM fields will affect each other. Anyway, we're talking about cosmic rays, not fields. An EM field to block these would have to be sufficiently strong to do so.

Quote
Sure you might be able to block EM if you set up the correct pattern of interference but trying to do that using non-ionising just sounds wrong to me.

Strength of the field has little to do with its wavelength (and, hence, whether or not it's ionizing).

Quote
If you do know more physics than me (which is a possibility since I didn't do a degree in it) I'd love to know this could work.

I didn't either.

Quote
Huh? Where on Earth are you getting that from! The Distance that the Van Allen belts extend from Earth is another thing that NASA sites seemed to disagree on but not a single one said that they extended more than 65,000 km from the Earth (with all of them saying that the strong part of the outer belt was about 19,000km above the Earth at most)
The moon on the other hand is 380,000 km away!

Eh, I seem to recall it extending far out. Nevermind...

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Quote
Originally posted by _argv[-1]
EM waves are photons. Photons are charged particles.


I have never heard that on before. Seriously what charge do photons carry? While you're at it give me a link to a reputable source cause I've never heard of photons carrying a charge. Seriously it doesn't seem feasable to me. If the photon does carry a charge then large electric fields could be used to bend light which as far as I know is impossible (even large gravitational forces don't bend light, they bend space-time and the light travels in a straight line around the bend).

Quote
Originally posted by _argv[-1]
Two EM fields will affect each other. Anyway, we're talking about cosmic rays, not fields. An EM field to block these would have to be sufficiently strong to do so.

Strength of the field has little to do with its wavelength (and, hence, whether or not it's ionizing).


I know that strength of a field has little to do with its wavelength but to cause the required destructive interferance required to cancel out a gamma ray would need for you to be transmitting an equally powerful EM field at exactly the same wavelength (possibly a harmonic would also work but as I say it's been a while since I studied physics). I can't see how trying to cancel out a gamma ray with a non ionising EM field is any different from my example of trying to cancel out a beam of UV light from the sun with a torch.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 
My answer to both statements is something to the effect of "I don't know". This means I no longer know what I'm talking about, and will shut up now. :)

 

Offline Flaser

  • 210
  • man/fish warsie
The crew of the Apollos weren't protected.
Yet, the whole journey took only 14days and they weren't hit by some serious solar stor IIRC.
"I was going to become a speed dealer. If one stupid fairytale turns out to be total nonsense, what does the young man do? If you answered, “Wake up and face reality,” you don’t remember what it was like being a young man. You just go to the next entry in the catalogue of lies you can use to destroy your life." - John Dolan

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Quote
Originally posted by Flaser
The crew of the Apollos weren't protected.
Yet, the whole journey took only 14days and they weren't hit by some serious solar stor IIRC.


They almost were once on one of the apollo missions. Basically there was a large solar storm while the astronauts were on the moon. NASA knew that if there was also a coronal mass ejection at the same time the astronauts were dead.

Basically everyone decided that since there was nothing they could do about it they might as well continue as normal. :D
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
I actually remember seeing a program on TLC or the Discovery Channel where astronauts on their way to the mooon spoke of seeing flashes of light when their eyes were shut.  It was decided that they were seeing cosmic particles striking their retinas or other parts of the visual cortex.

Later!
The Trivial Psychic Strikes Again!

 

Offline Liberator

  • Poe's Law In Action
  • 210
Things in the Earth/Luna system are protected by two forces.  One of which is likely to be required to make long term space travel possible.

1.  The Earth EM field is so immensely powerful that it deflects a great percentage of incoming extra-solar radiation.  That protection decreases as you move toward edge of the system.

2.  The other force is the Sun itself.  Besides it's own EM field which is orders of magnitude more potent that that of the Earth, Sol also generates a massive amount of radiation in it's own right, which would deflect a portion of any leftover extrasolar radiation.


On topic:

It's my understanding that an 256 color image uses 8 bits to store color information.  A 16-bit image would be capable of storing information for 65536 colors.  This would seem to be a preferable arrangement although 24 or 32 bit color would be preferable
So as through a glass, and darkly
The age long strife I see
Where I fought in many guises,
Many names, but always me.

There are only 10 types of people in the world , those that understand binary and those that don't.

  
Quote
Originally posted by Liberator
It's my understanding that an 256 color image uses 8 bits to store color information.  A 16-bit image would be capable of storing information for 65536 colors.  This would seem to be a preferable arrangement although 24 or 32 bit color would be preferable

256 color images are indexed, meaning each of the 256 colors is actually mapped to a 24-bit color. In this arrangement, you can get any 256 of the colors representable with 24-bit color, but you cannot have more than 256 unique colors in the image at once. The combined 256 colors' mappings to 24-bit colors is called a palette. FreeSpace 2 runs in 16-bit or 32-bit display modes, so different images can have different palettes, but they still have 256 colors per image.

 

Offline Sandwich

  • Got Screen?
  • 213
    • Skype
    • Steam
    • Twitter
    • Brainzipper
From WebMonkey's article on websafe colors:

[q]Moreover, the smallest step on the 24-bit scale (0.39216 percent) does not divide evenly into any of the values on the 15- and 16-bit scales -- well, there are two exceptions: black (0 percent) and white (100 percent). Other than those two, no colors are shared by the 8-/24-bit scale on the one side and the 15- and 16-bit scales on the other.

In other words: There are no shared colors between high color (15- or 16-bit) and true color (24-bit) depths. 24-bit is the full palette, and this is the palette we use with design programs such as Photoshop. 8-bit is a subset of that 24-bit palette. The old 216-websafe palette is a subset of the 8-bit palette, identified for browser and operating system compatibility. But the 15-bit and 16-bit palettes are not subsets of the 24-bit palette; they are entirely distinct palettes. So no matter which color you choose when you're designing (excluding black and white), you cannot choose a color that exists both in the 24-bit palette and in either the 15- or 16-bit palettes.[/q]
SERIOUSLY...! | {The Sandvich Bar} - Rhino-FS2 Tutorial | CapShip Turret Upgrade | The Complete FS2 Ship List | System Background Package

"...The quintessential quality of our age is that of dreams coming true. Just think of it. For centuries we have dreamt of flying; recently we made that come true: we have always hankered for speed; now we have speeds greater than we can stand: we wanted to speak to far parts of the Earth; we can: we wanted to explore the sea bottom; we have: and so  on, and so on: and, too, we wanted the power to smash our enemies utterly; we have it. If we had truly wanted peace, we should have had that as well. But true peace has never been one of the genuine dreams - we have got little further than preaching against war in order to appease our consciences. The truly wishful dreams, the many-minded dreams are now irresistible - they become facts." - 'The Outward Urge' by John Wyndham

"The very essence of tolerance rests on the fact that we have to be intolerant of intolerance. Stretching right back to Kant, through the Frankfurt School and up to today, liberalism means that we can do anything we like as long as we don't hurt others. This means that if we are tolerant of others' intolerance - especially when that intolerance is a call for genocide - then all we are doing is allowing that intolerance to flourish, and allowing the violence that will spring from that intolerance to continue unabated." - Bren Carlill

 
Quote
Originally posted by Sandwich
In other words: There are no shared colors between high color (15- or 16-bit) and true color (24-bit) depths.

Actually, there are 2. Remember? :D

Quote
24-bit is the full palette, and this is the palette we use with design programs such as Photoshop. 8-bit is a subset of that 24-bit palette.

An arbitrary subset, too -- see my last post regarding indexed color.

Quote
But the 15-bit and 16-bit palettes are not subsets of the 24-bit palette; they are entirely distinct palettes. So no matter which color you choose when you're designing (excluding black and white), you cannot choose a color that exists both in the 24-bit palette and in either the 15- or 16-bit palettes.

You can get pretty close, though. The human eye is sensitive to color differences, but it's not perfect.



Yet. :drevil:

 

Offline Flipside

  • əp!sd!l£
  • 212
http://www.aqsx85.dsl.pipex.com/Anims/Nebula.ani

I posted this in the modding forum, but I think it is a good example of the sort of limitations we are going to face if we stick with a single 8-bit pallete for animations, especially if we are looking to upgrade explosions and things. Here the Nebula is far too red for my tastes, I'd like more colour in it, but the problem is that because nebulae take a lot of colour gradient, to animate one and include even these somewhat iffy lightning flashes takes up more colours than the ANI can take, so some of the flashes look a bit 'broken' etc. If I had added more colours I would have got the 'banding' effect creeping in, even using bright.
I'm not saying the current system is terrible, but I DO think that we could do a lot more interesting stuff if there were some sort of higher-colour alternative, even if it is 256 colour with an index for each frame?

Flipside :D

EDIT : Also, as support for larger images grow, there is a tendency for 'less colour to go round'.

 

Offline HotSnoJ

  • Knossos Online!
  • 29
    • http://josherickson.org
Quote
Originally posted by HotSnoJ
At least a "something to ani" converter that acts like a mp3 2 pass conversion. then the ani's would have the best color palett (sp?).
*cough*
I have big plans, now if only I could see them through.

LiberCapacitas duo quiasemper
------------------------------
Nav buoy - They mark things