PDA

View Full Version : example how to rate arround a object



Kal Mar
09-02-2010, 06:15 PM
Hi all

will somebody have a simple example to rotate and translate the camera around an object using as buttons of mouse, for example rotate around a cube?


Thanks

marshats
09-03-2010, 06:10 AM
Take a look at gltzpr (http://www.nigels.com/glt/gltzpr/)

There is a demo program: zprdemo.c

which on linux compiles as


g++ zprdemo.c zpr.c -lGL -lGLU -lglut

on windows just use your compiler accordingly.

Kal Mar
09-03-2010, 08:39 AM
Hi
marshats

Thanks by o link, but I don't access it.

Please, could you copy the link again?

Thanks very much.

ZbuffeR
09-03-2010, 08:50 AM
http://www.nigels.com/glt/gltzpr/ works for me

Kal Mar
09-03-2010, 09:43 AM
I am sorry, somehow my network does not allow me to access it, I'll review.


Thanks