RE: NSBitmapImageRep & .rgb? .sgi?
RE: NSBitmapImageRep & .rgb? .sgi?
- Subject: RE: NSBitmapImageRep & .rgb? .sgi?
- From: "Bob Newhart" <email@hidden>
- Date: Wed, 20 Mar 2002 23:53:06 -0700
Maybe you should use the initWithBitmapDataPlanes and play around with
bpp, spp, and hasAlpha - the data might not be in exactly the format
that you expect (it sounds like the endian-ness might be swapped or the
alpha component might be at the wrong end of the RGB components).
Jason
>
-----Original Message-----
>
From: email@hidden
>
[mailto:email@hidden] On Behalf Of tigital
>
Sent: Wednesday, March 20, 2002 10:19 PM
>
To: email@hidden
>
Subject: NSBitmapImageRep & .rgb? .sgi?
>
>
>
hello,
>
>
...I'm trying to port some opengl tutorials from Nehe...some of these
>
require loading .sgi or .rgb files for textures, and the "gltx.c" and
>
"texture.c" routines don't cut it anymore with 10.1.3 (the tutorials
>
previously worked with these routines before 10.1)...
>
>
...so I've turned to cocoa to do it right, and sure enuff, I can load
>
the textures, but they come out very wrong looking: I can tell that
>
parts of the file are mapped, but in general it's kinda covered over
>
in black and white dreck...
>
>
Is there anyway around this?
>
>
tanx,
>
jamie
>
--
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/co> coa-dev
>
Do not
>
post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.