Carbon Opengl issues
Is there any reason why, with the same code, everything would work fine on os 9 with my carbon opengl test http://david.emuscene.com/Terrain.jpg but on os X it runs exactly the same except there are black lines at the edges of the skybox and depth testing refuses to be enabled?
I don't know about the depth testing issue (are you requesting a depth buffer?), but the black lines around the edges are most likely due to you using GL_CLAMP for the texture wrap mode, rather than GL_CLAMP_TO_EDGE(_SGIS) (core in 1.2). Virtually every OpenGL vendor in history had mis-implemented GL_CLAMP as GL_CLAMP_TO_EDGE. Apple fixed their implementation on Mac OS X, which caused a few existing programs to break.
Ok thanks I'll try using GL_CLAMP_TO_EDGE. About the depth buffer... I just started using carbon so I'm not totally clear on how it works... how do you request a depth buffer?
It's just the same old AGL as you're used to on OS 9. In your pixel format attribute list you'll have something like:
Thanks a lot, it works now
Possibly Related Threads...
|Beginner Carbon & OpenGL help||jo_shadow||4||4,205||
Jan 10, 2008 09:31 AM
Last Post: TomorrowPlusX
|is sdl+opengl slower than cocoa/carbon+opengl?||Najdorf||9||5,603||
Nov 16, 2005 09:45 PM
Last Post: WhatMeWorry
|Carbon vs Cocoa OpenGl||Byron Clarke||2||3,341||
May 31, 2005 05:47 PM
Last Post: maaaaark
|Carbon and OpenGL||jonbryan||3||4,318||
Feb 6, 2005 09:52 PM
Last Post: FCCovett
|Weird OpenGL Issues (Mach-O)||Matrix||2||3,481||
Jan 20, 2005 07:07 PM
Last Post: Matrix