PrEV
Thoughts from a NeXTStep Guy on Cocoa Development

Using the TrackBall

Oct 19, 2008 by Bill Dudney

So I had several pings on twitter yesterday on getting a simple example in place. So since I could not sleep this AM anyway I spent a few minutes putting one such example together. Here is a screen shot of the initial scene. Looks simple enough, two images both in layers contained in a third layer. Straightforward enough.

Just to make things interesting I put a small rotation around the X axis on each of them. Of course you can't see that right now because we are looking straight down the Z axis and the rotation is not enough to distort the images. But what happens if you move around the scene via the trackball from my last post. Well you can see the 3D nature of the scene of course :)

I placed the code here. This is one of the examples I'll be talking about @iPhoneLive, hope to see you there! And if you are really spontanious, would be great to have you @CSS where I have 90 minutes to talk CA and CA alone.

Happy hacking!



Comments:

Cool!
I've made an app using your TrackBall code.
http://github.com/wookay/touching/tree/master/Cubo

thanks.

Posted by wookay on October 20, 2008 at 04:26 AM MDT #

Cool stuff!

Posted by Bill Dudney on October 20, 2008 at 06:13 AM MDT #

Post a Comment:
  • HTML Syntax: Allowed