Not logged in, Join Here! or Log In Below:  
News Articles Search    

 Home / 3D Theory & Graphics / Problem with Color in VertexBuffers Account Manager
Archive Notice: This thread is old and no longer active. It is here for reference purposes. This thread was created on an older version of the flipcode forums, before the site closed in 2005. Please keep that in mind as you view this thread, as many of the topics and opinions may be outdated.

March 11, 2005, 01:52 AM

I have a problem with color in VertexBuffers between
OpenGl and DirectX. Seems that DirectX and OpenGL
do use the color format different. Is there a way to
tell the API (DirectX or OpenGL) to change it, so
that both use same Colors?!?!

I already have implemented a Red and Blue swap, but
maybe there is a different and better solution...



March 11, 2005, 02:23 AM

If your hardware supports the OpenGL color matrix extension (as any reasonably good hardware should), you can use that to perform a red-blue swap automatically. Probably some similiar functionality exists in D3D.

This thread contains 2 messages.
Hosting by Solid Eight Studios, maker of PhotoTangler Collage Maker.