Home | Documentation | Download | Screenshots | Developer |
![]() simpleViewer The simplest application example: 20 lines of code and yet all the power ! |
![]() manipulatedFrame A ManipulatedFrame can be moved with the mouse in the scene.
|
![]() select Selection of objects of the scene using select() and an OpenGL GL_SELECT render mode.
|
![]() keyboardAndMouse Shows how to customize your keyboard and mouse bindings. |
![]() 3dsViewer The LGPL lib3ds library is used to load and display a 3ds scene. |
![]() agora Implementation of the game of Agora. |
![]() animation The animate() function illustrated by a water particle simulation.
|
![]() callback Using the Qt signal-slot mechanism to connect a QGLViewer and your scene. |
![]() constrainedCamera Constraints applied on the Camera Frame to limit its translation and/or rotation. |
![]() constrainedFrame Constraints can limit the translation and/or rotation of a (Manipulated)Frame. |
![]() draw3DText An icosahedron is used to illustrate the draw3DText() function.
|
![]() drawLight The drawLight() function is a light debugging tool.
|
![]() fastDraw The fastDraw() function keeps interactivity even with large scenes.
|
![]() frameTransform Coordinate transformation between different Frames. |
![]() interface Adding a graphical user interface around a QGLViewer. |
![]() keyFrames The KeyFrameInterpolator test example.
|
![]() keyboardAndMouse Shows how to customize your keyboard and mouse bindings. |
![]() luxo A more complex exemple that combines manipulatedFrames, selection and constraints. |
![]() manipulatedFrame A ManipulatedFrame can be moved with the mouse in the scene.
|
![]() mouseGrabber Illustration of the MouseGrabber class.
|
![]() multiView A multi-view application, with constrained camera displacements. |
![]() screenCoordSystem A saucers control viewer that illustrates the screen coordinate system feature. |
![]() select Selection of objects of the scene using select() and an OpenGL GL_SELECT render mode.
|
![]() simpleViewer The simplest application example: 20 lines of code and yet all the power ! |
![]() spinningFrame Illustration of the SpinningFrame class.
|
![]() stereoViewer Simply press S to toggle stereo display (architecture dependent). |
![]() textureViewer Loads image files and textures map polygons with it. |
![]() x3dViewer The X3D Toolkit library is used to load and display a x3d scene. |
If you installed the RPM, the examples' source files are in
/usr/share/doc/QGLViewer/examples
and you
have to copy the desired example(s) directories to a place where you have write permission.
If you have downloaded the archive instead, simply go to the examples
directory.
> cd examples > qmake [INCLUDE_DIR=...] [LIB_DIR=...] > makeThe optional
INCLUDE_DIR
and LIB_DIR
parameters are needed if you
customized your make install
. Use qmake
INCLUDE_DIR=../.. LIB_DIR=../../QGLViewer
if you didn't "install" the library.
You may prompted an "error while loading shared libraries"
message when trying to
execute an example. In that case, you probably forgot to add the directory of the library to your
default library path. On unix, this is done like this (on SGI IRIX, replace
LD_LIBRARY_PATH
by LD_LIBRARYN32_PATH
):
[bash] > export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${HOME}/PathToQGLViewer/lib [tcsh] > setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${HOME}/PathToQGLViewer/lib
Windows users have to compile each example separately, using the Open (or Generate) Qt project icon.
Add the path to libQGLViewer-version
to your
Project-QGLViewer properties-C/C++-General-Additional Include Directories
(Tools-Options-Directories-include files with MSVS 6.0).
Add the path to libQGLViewer-version\QGLViewer
to your
Linker-General-Additional Library Directories
(Tools-Options-Directories-Library files with MSVS 6.0).
Qt 2.3 users have to edit the examples .pro
files
as is detailed in these files.