Cube Islands Mac OS
I had some trouble getting the demos from NVidia’s cube map OpenGL tutorials to work on my MacBook Pro running Mac OS X 10.5 with NVIDIA GeForce 9400M graphics card. It seems that this demo code is totally outdated, not to mention you need to change some things to get OpenGL programs working on Mac OS X. (You can just download the modified cube map demo)
The basic things you need to change in the cube map demo is:
- This is a known issue with Mac and its Gatekeeper system. If you download a non-trusted application, Mac will change the permissions to execute that app, saying it is damaged. There are three ways to circumvent this issue: Instead of double-clicking on the standalone file to run, right-click on it and choose 'open'.
- The Power Mac G4 Cube models - the Power Mac G4/450 Cube and G4/500 Cube - originally shipped with MacOS 9.0.4 pre-installed and shipped with MacOS 9.1 pre-installed from February 22, 2001 to July 3, 2001, when they were placed on 'indefinite hold'.
The source archive above includes native GUI front ends for Windows and Mac OS X, an X front end using the GTK+ library, and a mixed C/Java front end for compiling the puzzles into Java applets using NestedVM. There is extensive developer documentation describing the cross-platform interfaces. If you want to write a new puzzle or a new front. The maximum version of Mac OS X, OS X, or macOS supported by each G3 and later Mac follows. For complete specs on a particular system, click the name of the Mac. For all Macs that are compatible with a specifc maximum supported version of Mac OS X - courtesy of EveryMac.com's Ultimate Mac Sort - click the OS of interest.
- Get rid of all of the
_EXT
s from the GL constants. I guess, these are hanging around from the days when the cube map was not well supported. Now, and especially on Mac OS X, you should expect that it is. - Likewise get rid of the run time check for
GL_EXT_texture_cube_map
:glutExtensionSupported('GL_EXT_texture_cube_map') - Change the includes from
#include <GL/gl.h>
to#include <OpenGL/gl.h>
and#include <GL/glut.h>
to#include <GLUT/glut.h>
Lastly to compile use the following:
You will probably get these warning when compiling the cm_demo program though it didn’t seem to matter:
This got the whole thing working:
Mac Os Download
Note: I have made all the necessary changes to the demo:
Download cube map demos with these changes already made
Mac Os Mojave
Tags: cc, cube map, glut, graphics, mac os x, opengl