Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

3D Acceleration in 24 Bit color



Hi all,

I am porting the Mendel technology to Mac and I have the following problem :

the 3D scene we are playing are using 32 bit textures

When I use 16 bit color with my monitor I get the hardware acceleration but
the textures look bad (normal)

if I start my program (this is a plug-in for IE/NS) using 24 bit color, the
textures are nice but I lose the acceleration.

I found a way to get the acceleration using 24 bit color :
I start my program with 16bit, get the acceleration and then switch to 24
bit while my program is running. this way I have nice textures with
acceleration...

here is the pixel format I use :

AGLPixelFormat fmt;

GLint attrib[] = { AGL_RGBA,AGL_DOUBLEBUFFER,AGL_PIXEL_SIZE,
16,AGL_DEPTH_SIZE,32,AGL_NONE };

fmt = aglChoosePixelFormat(NULL, 0, attrib);

If I use AGL_ACCELERATED it doesn't work at all...

Am I missing something ?

my computer is Power G4 with an ATI Rage 128 Pro with 16Mo of VRAM,
256 Mo of RAM, Virtual Memory turned on.

--
Rimi TEMMOS
DURAN / Mendel 3D




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.