G3DViewer

News | About | Requirements | Screenshots | Source | Documentation | License | Example models

News

  • 2009/01/19: Version 0.0.8 of libg3d released. This one mainly fixes a failure when building without libgsf support.
  • 2009/01/16: Version 0.0.7 of libg3d, codenamed "now or never", released. It contains tons of changes from the long time since the last release. Look at the ChangeLog for a more detailed overview.
  • 2006/12/23: Version 0.0.6 of libg3d has been released. There are some ABI changes so you have to recompile all programs depending on libg3d. For a list of changes see the ChangeLog.
  • 2006/11/19: Preview version 0.2.99.4: this is a bugfix release for version 0.2.99.3 containing some missing files.
  • 2006/11/15: Preview version 0.2.99.3 (requires libg3d 0.0.5) released. Changes:
    • fullscreen support in GUI
    • bug fixes and minor tweaks
    • more plugins in libg3d
    Please test this version and report bugs as this should become the stable version 0.3.0.
  • 2006/05/07: Preview version 0.2.99.2 (requires libg3d 0.0.3) released. Changes:
    • moved GUI to libglade
    • objects hidable
    • screenshot function
    • localization framework and translation to german
    • object tree support
    • usual bug fixes
    Note that libg3d ist now licenced under the LGPL.
  • 2006/02/01: The project development tree has been moved to Gna!. There are Subversion SCM, download facility and mailing lists for G3DViewer and libg3d.

About

G3DViewer is a 3D file viewer for GTK+ supporting a variety of file types:
  • 3D Studio (.3ds, .prj)
  • LightWave (.lw, .lwb, .lwo)
  • Alias Wavefront (.obj)
  • Impulse TurboSilver / Imagine (.iob)
  • AutoCAD (.dxf)
  • Quake II Models (.md2)
  • Quake III Models (.md3)
  • Neutral File Format (.nff)
  • 3D Metafile (.3dmf, .3mf, .b3d)
  • Caligari TrueSpace Objects (.cob)
  • Quick3D Objects & Scenes (.q3o, q3s)
  • VRML 1.0 files (.wrl, .vrml)
  • AC3D objects (.ac, .acc)
  • LeoCAD Models (.lcd)
  • Racer car models (.ar, .dof)
  • Ultimate Stunts car models (.glb)
  • VDrift car models (.joe, .car)
  • COLLADA & G**gle Earth (.dae, .kmz) (new in libg3d 0.0.7)
  • LDraw (.dat, .mpd) (new in libg3d 0.0.7)
  • ASCII Scene Exporter (.ase) (new in libg3d 0.0.7)
Disclaimer: All import plugins are not perfect and there are at least some files known not to work.

Some of the features are:
  • Wireframe mode
  • Texture support (new in 0.1.99.1)
  • Specular lighting (not really nice at the moment)
  • changeable background color ;-)

Requirements

  • One of the following combinations:
    • GTK+ 2.x and GtkGLExt 1.0 (recommended)
    • GTK+ 2.x and GtkGLArea 2.0 (1.99)
    • GTK+ 1.2 and GtkGLArea 1.x
    Support for Gtk+ 1.2 and for GtkGLArea will probably be removed in the next major version (0.3.0). This already includes the preview releases 0.2.99.x. These versions also require libglade >= 2.4.0.
  • an OpenGL implementation, e.g. MesaGL: http://www.mesa3d.org
    Hardware 3D acceleration is of course better and supported, but not necessary. At the moment I do most development on a slow machine without hardware acceleration.

Screenshots

textured A-10 (AC3D model) LeoCAD model .lwo file wireframe mode specular lighting .kmz model with shadow

Source

Beginning from version 0.2.99.x the code is split into two packages, libg3d and g3dviewer. You need to build libg3d first to compile and run G3DViewer.

g3dviewer

libg3d

If you are interested in older releases you can find them on the "Old releases" page.

Documentation

Not much documentation has been written, but you can take a look at the libg3d API documentation (@gna!) and the libg3d file type support matrix for some more information.

License

G3DViewer is available under the following license:
   This package is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.

   This package is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this package; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   02111-1307, USA.

Libg3d (starting from version 0.0.3) is available under the following license:
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public License as
   published by the Free Software Foundation; either
   version 2.1 of the License, or (at your option) any later version.

   This library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Lesser General Public License for more details.

   You should have received a copy of the GNU Lesser General Public
   License along with this library; if not, write to the Free Software
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

Example models

Here are some example models I made in Blender. Until the .blend import plugin is ready (I plan to do one some time) you should try the .obj files.
You can use the models under the terms of the Creative Commons Attribution Share Alike license.

SGI Indy
blend.gz (30kB)
obj.gz (37kB)
MAN
blend.gz (237kB)
obj.gz (532kB)


There are some other places on the Internet where you can get free 3D models. Some of them are 3D Cafe, Amazing 3D Graphics, The 3D Archive and Avalon.

 

main
automagically?
linux stuff
hardware
dissected
talks
contact

Valid XHTML 1.1! Valid CSS!