X3DToolKit
Here is the X3DToolKit web page, where you can find the sources and the documentation
documentation
download the library
Download the latest version of X3DToolKit:
dependencies
It is recommended to have Qt and Xerces
installed. Xerces is a library that parses efficiently XML files.
Otherwise, if you have Qt you can use the Qt XML parser instead of the Xerces one.
If you don't have Qt then you must have Xerces.
For running the examples of the qmake version, you need QGLViewer.
installation
with qmake:
Decompress X3DTK-0.3.2-qmake.tar.gz:
tar xzf X3DTK-0.3.2-qmake.tar.gz
Compile the library:
cd X3DToolKitQMake/src
qmake OPTIONS
options:
- XERCES=no : compiles the library with the Qt XML loader (powerless than Xerces), and not Xerces.
- XERCES_DIR=dir : indicates in which directory is installed Xerces-c
- XERCES_LIB_DIR=dir : if XERCES_DIR not specified, indicates in which directory is located the xerces-c binary file.
- XERCES_INC_DIR=dir : if XERCES_DIR not specified, indicates in which directory is located the xerces include files.
- JPEG=no : compiles the library without the jpeg support.
- JPEG_DIR=dir : indicates in which directory is installed the jpeg library.
- JPEG_LIB_DIR=dir : if JPEG_DIR not specified, indicates in which directory is located the jpeg binary file.
- JPEG_INC_DIR=dir : if JPEG_DIR not specified, indicates in which directory is located the jpeg include files.
Note that by default, the library is compiled with Xerces and jpeg libraries. And if you have not jpeg
installed on your machine, you can find the sources in contrib/jpeg-6b.
make
Compile the examples:
cd ../examples
qmake OPTIONS
options:
- X3DTK_DIR=dir : indicates in which directory is installed X3DTK
- X3DTK_LIB_DIR=dir : if X3DTK_DIR not specified, indicates in which directory is located the X3DTK binary file
- X3DTK_INC_DIR=dir : if X3DTK_DIR not specified, indicates in which directory is located the X3DTK include files
- QGLVIEWER_DIR=dir : indicates in which directory is installed QGLViewer
- QGLVIEWER_LIB_DIR=dir : if QGLVIEWER_DIR not specified, indicates in which directory is located the QGLViewer binary file
- QGLVIEWER_INC_DIR=dir : if QGLVIEWER_DIR not specified, indicates in which directory is located the QGLViewer include files
make
with tmake:
Decompress X3DTK-0.3.2-tmake.tar.gz:
tar xzf X3DTK-0.3.2-tmake.tar.gz
Compile the library by using the tmake provided with the library:
cd X3DToolKitTMake
Configure tmake:
setenv TMAKEPATH contrib/tmake/lib/< config > (for example on a linux platform with g++, linux-g++)
../contrib/tmake/bin/tmake OPTIONS
options:
- XERCES_DIR=dir : indicates in which directory is installed Xerces-c
- XERCES_LIB_DIR=dir : indicates in which directory is located the xerces-c binary file
- XERCES_INC_DIR=dir : indicates in which directory is located the xerces include files
- JPEG=no : compiles the library without the jpeg support.
- JPEG_DIR=dir : indicates in which directory is installed the jpeg library
- JPEG_LIB_DIR=dir : indicates in which directory is located the jpeg binary file
- JPEG_INC_DIR=dir : indicates in which directory is located the jpeg include files
Note that by default, the library is compiled with Xerces and jpeg libraries.
make
Compile the examples:
cd ../examples
../contrib/tmake/bin/tmake OPTIONS
options:
- X3DTK_DIR=dir : indicates in which directory is installed X3DTK
- X3DTK_LIB_DIR=dir : indicates in which directory is located the X3DTK binary file
- X3DTK_INC_DIR=dir : indicates in which directory is located the X3DTK include files
make
X3D models
You will find here a few X3D models.