iDevGames Forums
QuickTime texture oddity - Printable Version

+- iDevGames Forums (
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Graphics & Audio Programming (/forum-9.html)
+--- Thread: QuickTime texture oddity (/thread-7410.html)

QuickTime texture oddity - sealfin - Jan 10, 2003 01:47 PM

I've just switched from using a collection of self-written functions for loading textures to using QuickTime (the majority of the QuickTime code nicked from 'QTValuePak2') but I'm getting very odd behaviour from QuickTime... in short, swapped colours.

Any suggestions as to something I've overlooked?

And yes, you can question why I'm switching from something that works to something that doesn't... yet Bored

[Image: 1.jpg] --> [Image: 2.jpg]

(yes, icons from Rasp )

QuickTime texture oddity - DoG - Jan 10, 2003 01:57 PM

It looks to me like you need to do some byte swapping. I guess QT uses BGR coloring instead of RGB as you might expect.

- D.G

QuickTime texture oddity - sealfin - Jan 10, 2003 02:06 PM

Thanks DoooG Grin I'd originally replaced GL_BGRA_EXT (as it caused 'undefined symbol' errors) with GL_RGBA... changed to GL_BGRA, it works fine Grin

QuickTime texture oddity - Josh - Jan 13, 2003 09:45 AM

sealfin, any chance I could look at the working product? I was trying to do this myself but gave up... :oops:

QuickTime texture oddity - sealfin - Jan 13, 2003 09:51 AM

jabber, if you email me I'll send you the project.