Hi,
I am having some strange results from the Read Pixel command and I was hoping someone could help me.
Basically what I have is a fullscreen JPEG image as the background and sprites falling from the top of the screen and bouncing off objects in the background image. The collision check with the background is simply to use Read Pixel to get the colour value of the background at the falling object's location. Anything other than pure white results in a collision.
The problem is that different computers produce different values as the Read Pixel result. On my test computer, white comes back as something like "-65000", so I set the check for any values less than that. However other computers give completely different results and the sprites are bouncing off the white background that they are supposed to pass through.
Basically, I'd like to know how to extrapolate the RGB value of the pixel from whatever Read Pixel is spitting out. Also, are there any known issues of different video cards producing wildly different color values - even if they are set to the same resolution and bitrate?
Thanks for any help or advice!
I am having some strange results from the Read Pixel command and I was hoping someone could help me.
Basically what I have is a fullscreen JPEG image as the background and sprites falling from the top of the screen and bouncing off objects in the background image. The collision check with the background is simply to use Read Pixel to get the colour value of the background at the falling object's location. Anything other than pure white results in a collision.
The problem is that different computers produce different values as the Read Pixel result. On my test computer, white comes back as something like "-65000", so I set the check for any values less than that. However other computers give completely different results and the sprites are bouncing off the white background that they are supposed to pass through.
Basically, I'd like to know how to extrapolate the RGB value of the pixel from whatever Read Pixel is spitting out. Also, are there any known issues of different video cards producing wildly different color values - even if they are set to the same resolution and bitrate?
Thanks for any help or advice!