Jump to content
  • Advertisement

Archived

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

Daivuk

8 bits indexed palette

This topic is 5405 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

Hi there, I want to know how to tell opengl an indexed palette for a texture in 8 bits. please : dont tell me shit like : ho, just do it full of color, computers today can handle it. NO, I have a lots of sprite (starcraft like game) and it will take to much space in the ram. So I have to use the way they used in starcraft. And if someone else say : ho, but make it in 3d, computers today can handle it. Dont want to, for some gameplay reasons. So we''re making it the hard way : 2d :D)

Share this post


Link to post
Share on other sites
Advertisement
i''m pretty sure that basical NO OpenGL version commericaly avalible supports 8 bit palette mode any more, the MS software one might and the messa one might, but afaik no hard ware accelerated version does

Share this post


Link to post
Share on other sites
Guest Anonymous Poster

it looks like on modern cards, the answer is "no"

http://www.opengl.org/discussion_boards/ubb/Forum3/HTML/009234.html

http://www.opengl.org/discussion_boards/ubb/Forum3/HTML/009234.html

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Take a look at the OpenGL-extension "GL_EXT_paletted_texture":
http://oss.sgi.com/projects/ogl-sample/registry/EXT/paletted_texture.txt

You have basically to set a color-table with glColorTableEXT
and then set a 8-Bit texture with internal-format COLOR_INDEX8_EXT.

But as said above, on modern cards this extension may not be available anymore (but the current nvidia-driver does it again, after some complains of frustrated users).

The same functionality is achievable with dependent textures nowerdays, but I don''t know much about it.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!