Archived

This topic is now archived and is closed to further replies.

Help please

This topic is 5971 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''ve got a problem, I wrote my game, and ran it in 16 bit color mode, no problem here, but I wanted to see if it would run in other modes, so i changed my settings on my desktop to 256 colors and tried to run my game, well it executed but nothing but a grey screen was there, does anyone have any idea why it did this? If you know of some way to remedy this please post it here.

Share this post


Link to post
Share on other sites
Hey,
Are you using some API or function calls to change the computer''s color depth to the one needed in the game? Otherwise, if the game uses things like true-color graphics and you''re in 256 color mode, you''re going to have some problems.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
You can''t use 256 color w/OpenGL AFAIK. 15/16 bit and up only. 256 mode is a palletized mode which cannot be hardware accelerated (for 3d anyways). Of course i could just be talking out of my arse since i have done little with OpenGL.

Share this post


Link to post
Share on other sites
I''ve taken this piece of code from NeHe''s first tutorial:

// Create Our OpenGL Window
if (!CreateGLWindow("...",640,480,16,fullscreen))
{
return 0;
// Quit If Window Was Not Created
}

If you place 8 instead of 16 you should be using the 8-bit (256 color) mode. You will see that this doesn''t work as it should (at least here it doesn''t).

Share this post


Link to post
Share on other sites