OpenGL GLUT Application Template

Filed under Apple + Programming + Tutorials + xcode on Thursday, 21 August, 2008 2:15 am

Here is a downloadable template to create an OpenGL GLUT Application (using an app bundle) for the people who haven’t figured out how to use Xcode 100% as yet.

There area Xcode templates freely available for SDL OpenGL projects but not for GLUT so I’m providing this one myself. I think I found this on a MacRumors thread so I cannot take credit for this but anyway, enjoy.

48AAFD8E-1EDA-4522-A24E-F1A50746E5D4.jpg

Brock

Vista…Still Hurts My Head

Filed under General + Mac Hints + Microsoft + Tutorials on Monday, 9 June, 2008 11:05 pm

Okay, so a few days ago I decided that I needed a new hard drive for my Macbook Pro.
I’m going to share with you my experiences of doing the upgrade and giving Vista a go instead of XP.

I ended up settling on a Western Digital 320GB Scorpio drive which has been an awesome drive that i would recommend to anyone.
Doing this upgrade meant that I needed to clone my current hard drive to the new one and I needed to find a way to move my current Boot Camp partition to the new drive along with it. For moving the Leopard partition, I used Super Duper!. The great thing about this program is that it’s fast, does a perfect bootable copy to the new drive and it’s free. I used another free Mac app called WinClone to backup the Boot Camp partition to a file, which contained Windows XP SP2.

6289AFA9-B4F0-410F-9578-926C6ACBC1A0.jpg

Next I attached the Scorpio drive was attached to an external USB caddy, and while was booted into Leopard, Super Duper worked it’s magic. I find it really is amazing that this program is able to backup while the OS is running and thank you to the developer for making it free. Anyways after it was done, I used Apple’s Boot Camp Assistant (in the /Utilities folder) to partition the drive for Boot Camp. I now had 300GB to play with so I gave 40GB for Windows… just enough space for Visual Studio and a few games.

(Click here for the full article…)

Make Your Handbrake Rips Faster

Filed under Tutorials on Tuesday, 12 December, 2006 10:44 pm

Handbrake is an open source video encoding application for Mac OS X that is easy to use and turns your regular DVDs into high quality H.264 MP4 files compatible with VLC and Quicktime.

I get 22 frames per second on a 2.16GHz MacBook Pro with 2 gigs of RAM using high quality settings and 2 pass encoding. Your speed comes down to the speed of your hard disk in most cases. There are 3 ways of doing your encodings and here are my results with each approach:
1) Rip straight from the DVD disc and encode to H.264 on the fly.
Avg Speed: 18 FPS
2) Rip to main hard drive using MacTheRipper, then encode with source and destination files on the same drive
Avg Speed: 22 FPS
3) Rip to main hard drive using MacTheRipper, then encode, making destination an external firewire 400 drive
Avg Speed: 30 FPS

Whilst the differences in speed are only a few frames per second, you can see that the third way is almost 2x faster than method 1. So if it takes you 4 hours to encode a movie, those few frames add up over time making a big difference to the time it takes to complete, almost halving the time you would normally have to wait.

The first way is obviously going to be the slowest, as the processor has to decode the DVD CSS and encode the H.264 at the same time. The second approach of ripping to the hard disk first and then encoding afterwards would seem to be much faster, but on a computer with dual cores there isn’t much difference. Surprisingly the third technique was the fastest, the reason being because if the destination and source are on the same hard disk, the hard drive’s read head has to constantly switch between reading and writing almost simultaneously, therefore making the drive thrash around seriously degrading performance. Using 2 drives means one can just concentrate on reading, whilst the other can just worry about writing to disk.

The machine I am using only has a 4200 RPM drive. Using a much faster 7200 RPM drive would probably give much faster performance so if you have two fast hard disks in a machine, use them. H.264 encoding does takes a lot of power and time to complete, so you are probably best to leave your rips running overnight.

If you are interested in encoding movies for your iPod, you should try Instant Handbrake, which is available here.

handbrake-2006042100.jpg