The 3dsViewer example

3dsViewer

The LGPL lib3ds library is used to load and display a 3ds scene.

You need to install the lib3ds library (version 1.2) in order to compile this file. See http://lib3ds.sourceforge.net/.

The current version (Ver 1.2, Dec 2002) of the lib3ds library is flawed and a patched version is available on the libQGLViewer rpm page. Otherwise you will get the following message :

3dsViewer.cpp:62: `lib3ds_file_bounding_box' undeclared (first use this function)

Alternately, you can add the following line in lib3ds/file.h : extern LIB3DSAPI void lib3ds_file_bounding_box(Lib3dsFile *file, Lib3dsVector min, Lib3dsVector max);

Press 'L' (load) to load a new 3DS scene.

Go back to the examples main page

Valid XHTML 1.0! Valid CSS! Last modified on Friday, June 11, 2004.