[Plib-devel] new viewer example
Brought to you by:
sjbaker
From: Bram S. <br...@sa...> - 2005-08-21 09:14:40
|
Hi there, examples/src/ssg/viewer/viewer.cxx has a non working orbit function. I think it's a HPR vs Quat issue, so that you can't orbit directly overhead of the model. When I started out fixing this, I noticed that viewer.cxx is quite complex, and not as lean as it could be. I've added a new viewer sample (pview.cxx), with the following benefits over viewer.cxx - orbit works properly (with what I call a virtual ball interface a la perfly) - mean/lean/clean (appr one 4th of viewer.cxx size) - better suited for instructional use for newbie ssg users due to smaller code. random notes: -It was tested on linux and irix. -I did not adapt the win32 project file. -I left out the freeglut include hack: i don't see why this is req'd: I use freeglut myself, but it is simple available as GL/glut.h bram |