Wednesday, November 24, 2010

OpenGlobe on Linux

We develop the example code for our book using Windows, but we realize not all readers use Windows. The good news for them is, over the past few days, we got the vast majority of our code to build and run on Linux using Mono. Here's a screen shot of one example from the globe rendering chapter:


We tested using Ubuntu 10.04, which comes prepackaged with MonoDevelop 2.2 and Mono 2.4.4. Our code builds cleanly with no warnings, and, thankfully, all of our unit tests pass:


(Yes, we actually write unit tests for the book code.) We need to investigate our examples that use a third party Shapefile reader a bit more, but we may wind up writing our own Shapefile reader when the manuscript is done.

I have to say that I am quite impressed with Mono, MonoDevelop, OpenTK, and NVIDIA's Linux drivers. Porting to Linux was even easier than I hoped.

We also plan to test on Mac when Apple releases OpenGL 3.3 drivers.

2 comments:

  1. It also works nicely under Ubuntu 10.10 with Mono 2.6.7 and MonoDevelop 2.4.

    I had to install the proprietary NVidia driver, though. The default (open source?) one that comes with Ubuntu doesn't cut it. Fortunately Ubuntu makes it easy to install the NVidia driver: Just go to System->Administration->Additional Drivers.

    ReplyDelete
  2. The default driver, at least on my laptop, was Mesa, an open source OpenGL implementation that currently supports GL 2.1. Our code targets GL 3.3, so, as Kevin suggested, a driver upgrade is required.

    ReplyDelete

Note: Only a member of this blog may post a comment.