Jump to content

  • Log In with Google      Sign In   
  • Create Account

How smart... reallly


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 sc0rpy   Members   -  Reputation: 122

Like
Likes
Like

Posted 25 April 2000 - 02:59 AM

I guess I''ve been beaten up enuff with DirectX when it comes to generating colors (greater than 8 bit color). It has me thinking. If all the surfaces (textures) I have been generating in OpenGL are sent as 24bit color values (RGB or RGBA) is OpenGL smart enough to convert those values in memory from 24 bit to 16bit if the display is only set to 16 bit. I''m curious if this much intelligence was built into OpenGL. When I first started playing with OGL I thought "gee, could it be so simple as to send a buffer of RGBs to the texture routine and it does all the work". It was but now I wonder how efficient it is at conserving memory. I guess I''ve been so used to having to jump thru all those hoops in DX (ie: detecting the color display mode and having to convert my colors accordingly) that I''m curious how OpenGL does it so seemlessly. I''m not complaining, just curious if anyone else has experimented with how efficient OGL is at conserving memory whenever possible.

Sponsor:

#2 Premandrake   Members   -  Reputation: 174

Like
Likes
Like

Posted 27 April 2000 - 10:02 AM

OpenGL leaves most of it''s efficiency up to the driver that is written for your video card. For example, the nvidia drivers allow you to choose (the user, not the programmer) if you want the textures in 16 bit format, or 32 bit format.

That being said, you can still give the driver a hint on how to store your textures using the glHint..() function.

PreManDrake




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS