• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Wierd OpenGL Coloring (update)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Wierd OpenGL Coloring (update)


  • Subject: Wierd OpenGL Coloring (update)
  • From: email@hidden
  • Date: Mon, 15 Apr 2002 11:50:59 -0700

I just tried copying the cube drawing GL code from my app to the GLCubes example, and it draws perfectly in the GLCubes example, so something strange is happening... any idea what I could be missing?

I've been working on the NeHe OpenGL tutorials, 'porting' it to Cocoa as I went along, and so far, everything's worked really well, until I got to the drawing solids part. I'm drawing a cube, each with different color faces, and having it rotate. However, when I run it, the cube draws, but the colors are all messed up. It seems like some of the faces are transparent and like the colors 'mix' when they are rotated at a certain angle. All the code for drawing the cube is correct, I even copied/pasted from the tutorial and it still does it. However, I found the 'GLCubes' example from Apple, and it doesn't have this problem, but I don't see where the code would make a major difference... Anyone know what's up?
_______________________________________________
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.

  • Prev by Date: Wierd OpenGL Coloring
  • Next by Date: Re: How do I use C++ code or lib in Cocoa?
  • Previous by thread: Wierd OpenGL Coloring
  • Next by thread: Multiple AlertPanels
  • Index(es):
    • Date
    • Thread