Page 1 of 1

More options in convertPackedColour

Posted: Mon Dec 01, 2008 11:02 pm
by Crashy
Hi guys.
Just a little advice. yet, VertexData::convertPackedColour can only convert to ARGB and ABGR format which are used for Direct X and OpenGL. But let's say I'd port ogre on wii (;) ), where vertex colors are using the RGBA format, so VET_COLOUR, I'd get an assertion failed. And what about the VertexElement::convertColourValue which can only convert between ARGB and ABGR by swapping Blue and Red. For the moment I'd need to modify both functions to handle it correctly.

It may be a little bit more generic if it could handle at least the RGBA format.

Just my 2 cents ;)

Posted: Tue Dec 02, 2008 1:28 pm
by sinbad
We'd have to also add a new VET_COLOUR_RGBA which currently wouldn't be used by anything, which may puzzle some people :) We also couldn't really test it on anything.

If you want to submit a small patch to deal with this so that a Wii rendersystem is easier to write, that's fine and we'll accept it.

Posted: Tue Dec 02, 2008 5:31 pm
by Crashy
Yup I'll make the patch. For the moment I made something ugly but I'll rewrite it and make it commit-able on Ogre.