Carbon Opengl issues

Member
Posts: 164
Joined: 2002.04
Post: #1
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?
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
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.
Quote this message in a reply
Member
Posts: 164
Joined: 2002.04
Post: #3
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?
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #4
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:

AGL_DEPTH_SIZE, 16
Quote this message in a reply
Member
Posts: 164
Joined: 2002.04
Post: #5
Thanks a lot, it works now Grin
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Beginner Carbon & OpenGL help jo_shadow 4 3,592 Jan 10, 2008 09:31 AM
Last Post: TomorrowPlusX
  is sdl+opengl slower than cocoa/carbon+opengl? Najdorf 9 4,822 Nov 16, 2005 09:45 PM
Last Post: WhatMeWorry
  Carbon vs Cocoa OpenGl Byron Clarke 2 2,844 May 31, 2005 05:47 PM
Last Post: maaaaark
  Carbon and OpenGL jonbryan 3 3,807 Feb 6, 2005 09:52 PM
Last Post: FCCovett
  Weird OpenGL Issues (Mach-O) Matrix 2 3,109 Jan 20, 2005 07:07 PM
Last Post: Matrix