QuickTime texture oddity

Moderator
Posts: 700
Joined: 2002.04
Post: #1
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 pseudoroom.com Rasp )

Mark Bishop
--
Student and freelance OS X & iOS developer
Quote this message in a reply
DoG
Moderator
Posts: 869
Joined: 2003.01
Post: #2
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
Quote this message in a reply
Moderator
Posts: 700
Joined: 2002.04
Post: #3
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

Mark Bishop
--
Student and freelance OS X & iOS developer
Quote this message in a reply
Moderator
Posts: 608
Joined: 2002.04
Post: #4
sealfin, any chance I could look at the working product? I was trying to do this myself but gave up... :oops:
Quote this message in a reply
Moderator
Posts: 700
Joined: 2002.04
Post: #5
jabber, if you email me I'll send you the project.

Mark Bishop
--
Student and freelance OS X & iOS developer
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  NSView OpenGL Oddity mfdesigner 9 6,994 Apr 13, 2012 10:59 AM
Last Post: OneSadCookie
  Render video (e.g. QuickTime) to buffer or texture? Ingemar 14 13,311 Jun 8, 2011 04:09 PM
Last Post: mdejong1024
  Flipping a texture loaded using QuickTime.. Craig 3 3,380 Nov 17, 2005 08:52 PM
Last Post: arekkusu
  Streaming Quicktime to OpenGL Texture Holmes 5 4,896 Jul 12, 2004 10:54 PM
Last Post: kelvin
  SDL & Quicktime DM6 4 3,431 Jul 4, 2004 08:22 AM
Last Post: Steven