Página de Daniel Wilches

Grupo de Investigación IMAGINE - Computación Visual

Investigación, Innovación y Desarrollo



Menu

Home Master's Thesis iPhone Developing Tutorials VRPN + iPhone Tutorials Other stuff's videos Versión en español

VRPN + iPhone Tutorials

Tutorial 1: VRPN + iPhone basic integration tutorial

In this tutorial I'll show you how to achieve communication between the iPhone Simulator and a VRPN server.

I'll adress compilation issues, Objective-C encapsulation of C/C++, and C/C++ static library usage from within Xcode.

Available versions

 

Tutorial 2: Integrating iPhone's Cocoa Touch and VRPN

This time I'll show you how we can control a UIButton according to the events that come from a VRPN server. As the only server we've got so far is the one with the vrpn_Tracker_NULL device, we'll have to use another one. I'll assume that you have a vrpn_server running in a Windows machine, and that you've configured it to use the vrpn_Mouse device and have exposed it through the name "Mouse0".

We are then going to position the UIButton at the client according to the mouse cursor position at the server.

         

Available versions

 

Working fine in simulator but not on the iPhone device?

If you're having troubles like missing required architecture armv6 in file (or armv7) then you should compile the libvrpn.a library for the correct architecture.

The steps given here are only for the simulator, but it's easy to tweak the Makefiles to make use of the correct compiler as to produce an arm library. Maybe in a future tutorial I'll explain how to achieve that, but so far it seems no one has needed it :( so I decided to just post the binaries :)

Hint: If you want to compile it by yourself, you can email me or wait until I have time to make a tutorial. By the time being, you should know that to compile for the ARM architecture you should not use "g++" inside the Makefiles but "arm-XXX-g++" ... that's other compiler you'll have inside the iPhone SDK binaries. And ... of course there are some things that won't make sense in iPhone, so you'll have to comment some things out from the Makefiles :) if you are adventurous, you can try it.

 

Thanks for reading!

I'll appreciate your feedback at:

d.wilches52 [at] uniandes [dot] edu [dot] co



Grupo de Investigación IMAGINE - Universidad de los Andes

Todos los derechos reservados.