PDA

View Full Version : Code in the post Object and Screen Space Rotation Demo by MaxH



xxk89xx
03-13-2013, 06:04 PM
Hi, I'm just getting crazy trying to rotate an object around x,y and z axis. I'd like to do each rotation around fixed axis! But using glrotate after I've used a glrotatef(angle,1,0,0) the y and z axis result rotated, and I don't want that, I want them fixed and unmoveable! I know that quaternions may be the solution to my problem (I'm not sure), but on the internet I found a lot of theory about quaternion (a lot of stuff actually), but I just can't find a working example on how I actually have to use them. I needed a practical example on how to use them (in C maybe), but I coudn't find it anywhere. Then, I came across MaxH's post called "Object and Screen Space Rotation Demo", and I thought that was the solution to my problems, but then the tragic discovery: the links to the code in that post are all broken. Please MaxH (or someone else who got the code), reupload the code, I desperately need it. Thanks

This is the post i'm talking about www.opengl.org/discussion_boards/showthread.php/167322-Object-and-Screen-Space-Rotation-Demo?p=1181166#post1181166

Carmine
03-13-2013, 09:44 PM
The source code is at -

https://www25.addr.com/panel/fman/edit.cgi?sid=15909284&dir=/usr/home252/mfwerner/public_html/OpenGL/Special_Rotations&file=Source.c

xxk89xx
03-14-2013, 03:27 AM
It doesn't work, it says "Couldn't open ../relogin.html". But I found it now, it's here: www.mfwerner.addr.com/OpenGL/Special_Rotations/

Carmine
03-14-2013, 12:42 PM
It doesn't work, it says "Couldn't open ../relogin.html". But I found it now, it's here: www.mfwerner.addr.com/OpenGL/Special_Rotations/

Good luck.