GLOBE_3D / News: Recent posts

Now, a bit of fog...

Here is the code activating the fog in the background.

if foggy then
Enable (FOG);
Fog (FOG_COLOR, fog_colour(0)'Unchecked_Access);
Fog (FOG_START, 1.0);
Fog (FOG_END, 0.4 * fairly_far);
end if;
~~~... read more

Posted by Gautier de Montmollin 2016-07-07

Release 2016-07-05

  • Use of Generic Image Decoder (GID) in GL.IO; now most image formats are supported for textures and other bitmaps to be used with GLOBE_3D (or any GL app)
  • Unified GNAT project file (.gpr), allowing to selected the target Operating System (Windows, Linux, Mac) and compilation mode (fast, debug, small) for demos, tools, etc.
  • Wavefront format (.obj / .mtl) importer for GLOBE_3D
  • Doom 3 / Quake 4 map importer more complete
Posted by Gautier de Montmollin 2016-07-05

Non-convex objects with transparency

It's stunning how the inventors of GL addressed from the beginning, in 1991, subtle issues popping up when displaying 3D object in your own program 25 years later.
For instance, take this model:

It is a cross shaped (considered from above) object; texture has lots of transparency.
In the red rectangle you see the issue: the face in front was displayed before the face behind.
There is no bullet-proof rule for sorting faces, and GL has a per-screen-pixel depth buffer that allows displaying faces in an arbitrary order. So we don't want to introduce imperfect face sorting just for dealing with this kind of object.
Fortunately, the GL geniuses have invented a solution for that issue too:

    Enable    (ALPHA_TEST);
    AlphaFunc (GREATER, 0.05);

Et voilà...
... read more

Posted by Gautier de Montmollin 2016-07-03

Wavefront (.obj) parser simplified

In revision #311, two important improvements to make the o2g translator more handy.

  1. o2g has now options for centering and scaling the object.
  2. o2g creates itself a .zip archive containing the 3D object file and the textures (plus a few goodies).
    This has two advantages:
    a. the opack.cmd script is no more needed and disappears; o2g can be used "as-is" from Linux or OSX as well.
    b. only the needed textures are packed.
Posted by Gautier de Montmollin 2016-06-27

Most image formats now available for textures

The texture loader in GL.IO was around 15 years old and supported only the Targa (.tga) format for textures, plus a few sub-formats of Windows bitmaps (.bmp).
In order to make things easy when dealing with various models, e.g. those imported from Blender, the old code for reading images has been wiped out and the loader is using now GID for the job, supporting JPEG or PNG in addition. For instance the Blender model below is using the JPEG format for textures.... read more

Posted by Gautier de Montmollin 2016-06-22

Wavefront format (.obj / .mtl) importer for GLOBE_3D

Basically, it is possible now to import a model saved in Blender as a Wavefront (.obj) model, and turn it into a GLOBE_3D object.

The translator is in ./tools/wavefront

Posted by Gautier de Montmollin 2016-06-21

Visual debugging with GLOBE_3D

Texture names:

Portal labels:

... read more

Posted by Gautier de Montmollin 2016-06-21

Doom 3 / Quake 4 map parser more complete

The D3G tool now is able to translate all models correctly into .g3d objects, in addition to the special models corresponding to areas. This needs the presence of the file [level].map beside the [level].proc file.

The difference is visible in the main demo: now glass or various previously missing objects are visible.
The translation of the following model (a cathedral) was pretty incomplete without latest improvement in D3G:

Posted by Gautier de Montmollin 2016-06-17

Release 2016-06-12 - Added multitexturing

Added multitexturing (diffuse + specular).
First video captures published:

Screenshots before (diffuse only):

after (diffuse + specular):

Posted by Gautier de Montmollin 2016-06-12

First SF release for download

On a 16th April 2008, a first release was set on SourceForge, packaged in a Zip file, with full sources, GL bindings, and a pre-compiled demo (Windows, Linux).

Posted by Gautier de Montmollin 2008-04-29

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks