<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to news</title><link href="https://sourceforge.net/p/globe3d/news/" rel="alternate"/><link href="https://sourceforge.net/p/globe3d/news/feed.atom" rel="self"/><id>https://sourceforge.net/p/globe3d/news/</id><updated>2016-07-07T20:50:31.991000Z</updated><subtitle>Recent posts to news</subtitle><entry><title>Now, a bit of fog...</title><link href="https://sourceforge.net/p/globe3d/news/2016/07/now-a-bit-of-fog/" rel="alternate"/><published>2016-07-07T20:50:31.991000Z</published><updated>2016-07-07T20:50:31.991000Z</updated><author><name>Gautier de Montmollin</name><uri>https://sourceforge.net/u/gdemont/</uri></author><id>https://sourceforge.net308badcaa8fbbd219c7f5a05a4394873cdf3e6e0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;a class="" href="https://1.bp.blogspot.com/-mMM40YrMFh4/V369VPlO-0I/AAAAAAAACj8/jfneAQaVrCkEkP8woAsF3xYrD1b1kaLqQCLcB/s1600/prairie_fog.jpg" rel="nofollow"&gt;&lt;img alt="" rel="nofollow" src="https://1.bp.blogspot.com/-mMM40YrMFh4/V369VPlO-0I/AAAAAAAACj8/jfneAQaVrCkEkP8woAsF3xYrD1b1kaLqQCLcB/s400/prairie_fog.jpg"/&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here is the code activating the fog in the background.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;if foggy then
  Enable (FOG);
  Fog (FOG_MODE, LINEAR);
  Fog (FOG_COLOR, fog_colour(0)'Unchecked_Access);
  Hint (FOG_HINT, FASTEST);
  Fog (FOG_START, 1.0);
  Fog (FOG_END, 0.4 * fairly_far);
end if;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;As usual with GL, it looks very obvious, but (as usual too) it is one of the few combinations that are actually working.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Release 2016-07-05</title><link href="https://sourceforge.net/p/globe3d/news/2016/07/release-2016-07-05/" rel="alternate"/><published>2016-07-05T14:02:34.514000Z</published><updated>2016-07-05T14:02:34.514000Z</updated><author><name>Gautier de Montmollin</name><uri>https://sourceforge.net/u/gdemont/</uri></author><id>https://sourceforge.net857632c398a8ea487d0b224cf2ed1d9f804f61b9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;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)&lt;/li&gt;
&lt;li&gt;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.&lt;/li&gt;
&lt;li&gt;Wavefront format (.obj / .mtl) importer for GLOBE_3D&lt;/li&gt;
&lt;li&gt;Doom 3 / Quake 4 map importer more complete&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>Non-convex objects with transparency</title><link href="https://sourceforge.net/p/globe3d/news/2016/07/non-convex-objects-with-transparency/" rel="alternate"/><published>2016-07-03T21:50:30.398000Z</published><updated>2016-07-03T21:50:30.398000Z</updated><author><name>Gautier de Montmollin</name><uri>https://sourceforge.net/u/gdemont/</uri></author><id>https://sourceforge.net3fa21d9b0e0f11527e90f6ddf2b6c2e87a54e974</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;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.&lt;br/&gt;
For instance, take this model:&lt;br/&gt;
&lt;a class="" href="https://4.bp.blogspot.com/-cqe5QGzbDXY/V3mDxdC0WFI/AAAAAAAACiw/vr5jMuxXUekMwKNWvdpwXfZ-OKXOvHOYgCLcB/s1600/transp_bad.png" rel="nofollow"&gt;&lt;img alt="" rel="nofollow" src="https://4.bp.blogspot.com/-cqe5QGzbDXY/V3mDxdC0WFI/AAAAAAAACiw/vr5jMuxXUekMwKNWvdpwXfZ-OKXOvHOYgCLcB/s400/transp_bad.png"/&gt;&lt;/a&gt;&lt;br/&gt;
It is a cross shaped (considered from above) object; texture has lots of transparency.&lt;br/&gt;
In the red rectangle you see the issue: the face in front was displayed before the face behind.&lt;br/&gt;
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.&lt;br/&gt;
Fortunately, the GL geniuses have invented a solution for that issue too:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;    Enable    (ALPHA_TEST);
    AlphaFunc (GREATER, 0.05);
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Et voilà...&lt;br/&gt;
&lt;a class="" href="https://2.bp.blogspot.com/-ZaiX-M-YiNM/V3mFlPF4eVI/AAAAAAAACi8/sJum-lb1X8Aa4XYPccdnAdfws-RDoSh8gCLcB/s1600/transp_good.png" rel="nofollow"&gt;&lt;img alt="" rel="nofollow" src="https://2.bp.blogspot.com/-ZaiX-M-YiNM/V3mFlPF4eVI/AAAAAAAACi8/sJum-lb1X8Aa4XYPccdnAdfws-RDoSh8gCLcB/s400/transp_good.png"/&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The model, "herbe01.obj" is in the ./tools/wavefront directory in the GLOBE_3D repository.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Wavefront (.obj) parser simplified</title><link href="https://sourceforge.net/p/globe3d/news/2016/06/wavefront-obj-parser-simplified/" rel="alternate"/><published>2016-06-27T10:37:39.823000Z</published><updated>2016-06-27T10:37:39.823000Z</updated><author><name>Gautier de Montmollin</name><uri>https://sourceforge.net/u/gdemont/</uri></author><id>https://sourceforge.net100749d0a4381c3a2d2f58b17972f751cc73af95</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In revision #311, two important improvements to make the o2g translator more handy.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;o2g has now options for centering and scaling the object.&lt;/li&gt;
&lt;li&gt;o2g creates itself a .zip archive containing the 3D object file and the textures (plus a few goodies).&lt;br/&gt;
     This has two advantages:&lt;br/&gt;
   a. the opack.cmd script is no more needed and disappears; o2g can be used "as-is" from Linux or OSX as well.&lt;br/&gt;
   b. only the needed textures are packed.&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;</summary></entry><entry><title>Most image formats now available for textures</title><link href="https://sourceforge.net/p/globe3d/news/2016/06/most-image-formats-now-available-for-textures/" rel="alternate"/><published>2016-06-22T09:02:14.137000Z</published><updated>2016-06-22T09:02:14.137000Z</updated><author><name>Gautier de Montmollin</name><uri>https://sourceforge.net/u/gdemont/</uri></author><id>https://sourceforge.nete9ad127cb46702fe16c8ce449bdf128168a2820d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;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).&lt;br/&gt;
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 &lt;a class="" href="http://gen-img-dec.sourceforge.net/"&gt;GID&lt;/a&gt; for the job, supporting JPEG or PNG in addition. For instance the &lt;a class="" href="https://www.blender.org/" rel="nofollow"&gt;Blender&lt;/a&gt; model below is using the JPEG format for textures.&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://4.bp.blogspot.com/-oiQmwSnZkiw/V2mfpYUWwaI/AAAAAAAACiQ/UUDaVl-ONIYk4Up8ciV5K4cJdgTwznGcwCLcB/s1600/fut_jet_2_shot.jpg" rel="nofollow"&gt;&lt;img alt="" rel="nofollow" src="https://4.bp.blogspot.com/-oiQmwSnZkiw/V2mfpYUWwaI/AAAAAAAACiQ/UUDaVl-ONIYk4Up8ciV5K4cJdgTwznGcwCLcB/s400/fut_jet_2_shot.jpg"/&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The following Blender model has a single PNG texture projected on a complicated surface called a Mandelbulb:&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://2.bp.blogspot.com/-WjyCPNiRqIs/V2mrEZhwDpI/AAAAAAAACig/GaF-tKlRcYIJ5ZaSQJhxX6h17cRTUQOPQCLcB/s1600/mandel.jpg/" rel="nofollow"&gt;&lt;img alt="" rel="nofollow" src="https://2.bp.blogspot.com/-WjyCPNiRqIs/V2mrEZhwDpI/AAAAAAAACig/GaF-tKlRcYIJ5ZaSQJhxX6h17cRTUQOPQCLcB/s400/mandel.jpg"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Wavefront format (.obj / .mtl) importer for GLOBE_3D</title><link href="https://sourceforge.net/p/globe3d/news/2016/06/wavefront-format-obj--mtl-importer-for-globe3d/" rel="alternate"/><published>2016-06-21T03:46:30.374000Z</published><updated>2016-06-21T03:46:30.374000Z</updated><author><name>Gautier de Montmollin</name><uri>https://sourceforge.net/u/gdemont/</uri></author><id>https://sourceforge.net85b72478b2b793f290c80bfcdddab179f82ef033</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://4.bp.blogspot.com/-6g4ANa_GZTw/V2i4wjiJKJI/AAAAAAAACiA/h4PbZ1XFMbUawWV_LMYIraGKGS7YHmcrQCLcB/s1600/fut_jet.jpg" rel="nofollow"&gt;&lt;img alt="" rel="nofollow" src="https://4.bp.blogspot.com/-6g4ANa_GZTw/V2i4wjiJKJI/AAAAAAAACiA/h4PbZ1XFMbUawWV_LMYIraGKGS7YHmcrQCLcB/s400/fut_jet.jpg"/&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The translator is in ./tools/wavefront&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Visual debugging with GLOBE_3D</title><link href="https://sourceforge.net/p/globe3d/news/2016/06/visual-debugging-with-globe3d/" rel="alternate"/><published>2016-06-21T03:30:24.487000Z</published><updated>2016-06-21T03:30:24.487000Z</updated><author><name>Gautier de Montmollin</name><uri>https://sourceforge.net/u/gdemont/</uri></author><id>https://sourceforge.netb2287274511f79e3d8a86d76e9c3e10ef3db89b5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Texture names:&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://1.bp.blogspot.com/-RF5wQM7dy3Y/V1h6DV6iofI/AAAAAAAACg8/JsklbKwYycs1MYwPuDiFODEw_zBTLOnyACLcB/s1600/tex_labels.jpg" rel="nofollow"&gt;&lt;br/&gt;
&lt;img alt="" rel="nofollow" src="https://1.bp.blogspot.com/-RF5wQM7dy3Y/V1h6DV6iofI/AAAAAAAACg8/JsklbKwYycs1MYwPuDiFODEw_zBTLOnyACLcB/s400/tex_labels.jpg"/&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Portal labels:&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://3.bp.blogspot.com/-gB2u_aZrmVE/V1h6uGDaV6I/AAAAAAAAChE/AA3h_QmNfKMyjnx1BzXqEOoJigdFXuyRQCLcB/s1600/portal_labels.jpg" rel="nofollow"&gt;&lt;br/&gt;
&lt;img alt="" rel="nofollow" src="https://3.bp.blogspot.com/-gB2u_aZrmVE/V1h6uGDaV6I/AAAAAAAAChE/AA3h_QmNfKMyjnx1BzXqEOoJigdFXuyRQCLcB/s400/portal_labels.jpg"/&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This is obtained by toggling the options in this package:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="kr"&gt;package&lt;/span&gt; &lt;span class="nx"&gt;GLOBE_3D&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;Options&lt;/span&gt; &lt;span class="nx"&gt;is&lt;/span&gt;

  &lt;span class="o"&gt;--&lt;/span&gt; &lt;span class="nx"&gt;Visual&lt;/span&gt; &lt;span class="nx"&gt;checks&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;

  &lt;span class="nx"&gt;show_normals&lt;/span&gt;        &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;constant&lt;/span&gt; &lt;span class="nb"&gt;Boolean&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="nx"&gt;False&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nx"&gt;show_portals&lt;/span&gt;        &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;constant&lt;/span&gt; &lt;span class="nb"&gt;Boolean&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="nx"&gt;False&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nx"&gt;show_texture_labels&lt;/span&gt; &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;constant&lt;/span&gt; &lt;span class="nb"&gt;Boolean&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="nx"&gt;False&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nx"&gt;filter_portal_depth&lt;/span&gt; &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;constant&lt;/span&gt; &lt;span class="nb"&gt;Boolean&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="nx"&gt;False&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="o"&gt;--&lt;/span&gt; &lt;span class="nx"&gt;Formal&lt;/span&gt; &lt;span class="nx"&gt;checks&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;

  &lt;span class="nx"&gt;full_check_objects&lt;/span&gt;  &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;constant&lt;/span&gt; &lt;span class="nb"&gt;Boolean&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="nx"&gt;False&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nx"&gt;strict_geometry&lt;/span&gt;     &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;constant&lt;/span&gt; &lt;span class="nb"&gt;Boolean&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="nx"&gt;False&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="o"&gt;--&lt;/span&gt; &lt;span class="nx"&gt;Misc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;
  &lt;span class="nx"&gt;portal_tracking&lt;/span&gt;     &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;constant&lt;/span&gt; &lt;span class="nb"&gt;Boolean&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="nx"&gt;True&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nx"&gt;BSP_tracking&lt;/span&gt;        &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;constant&lt;/span&gt; &lt;span class="nb"&gt;Boolean&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="nx"&gt;True&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;Is_debug_mode&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;Boolean&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="nx"&gt;arrow_inflator&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;constant&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="mf"&gt;10.0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nx"&gt;end&lt;/span&gt; &lt;span class="nx"&gt;GLOBE_3D&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;Options&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry><entry><title>Doom 3 / Quake 4 map parser more complete</title><link href="https://sourceforge.net/p/globe3d/news/2016/06/doom-3--quake-4-map-parser-more-complete/" rel="alternate"/><published>2016-06-17T08:21:49.967000Z</published><updated>2016-06-17T08:21:49.967000Z</updated><author><name>Gautier de Montmollin</name><uri>https://sourceforge.net/u/gdemont/</uri></author><id>https://sourceforge.net8c0f2a2928c388676e0f150aee123cd89541fc9e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;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 &lt;span&gt;[level]&lt;/span&gt;.map beside the &lt;span&gt;[level]&lt;/span&gt;.proc file.&lt;/p&gt;
&lt;p&gt;The difference is visible in the main demo: now glass or various previously missing objects are visible.&lt;br/&gt;
The translation of the following model (a cathedral) was pretty incomplete without latest improvement in D3G:&lt;br/&gt;
&lt;img alt="" src="https://sourceforge.net/p/globe3d/screenshot/catherdal_reims_2_mini.jpg/thumb"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Release 2016-06-12 - Added multitexturing</title><link href="https://sourceforge.net/p/globe3d/news/2016/06/release-2016-06-12---added-multitexturing/" rel="alternate"/><published>2016-06-12T12:13:49.822000Z</published><updated>2016-06-12T12:13:49.822000Z</updated><author><name>Gautier de Montmollin</name><uri>https://sourceforge.net/u/gdemont/</uri></author><id>https://sourceforge.net019f1d326263170aec77b6d27699cec53314f4ad</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Added multitexturing (diffuse + specular).&lt;br/&gt;
First video captures published:&lt;br/&gt;
&lt;a href="https://www.youtube.com/watch?v=Bf7kyxVVIXs" rel="nofollow"&gt;https://www.youtube.com/watch?v=Bf7kyxVVIXs&lt;/a&gt;&lt;br/&gt;
&lt;a href="https://www.youtube.com/watch?v=_lEWKx2lZ88" rel="nofollow"&gt;https://www.youtube.com/watch?v=_lEWKx2lZ88&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Screenshots before (diffuse only):&lt;br/&gt;
&lt;img alt="" rel="nofollow" src="https://1.bp.blogspot.com/-ttdywfOuxlE/V1n0MAO5OyI/AAAAAAAAChY/ssqIkShN2RkQ0W6WHh3je28gPWgHlRHKQCLcB/s400/g3d_old.jpg"/&gt;&lt;br/&gt;
after (diffuse + specular):&lt;br/&gt;
&lt;img alt="" rel="nofollow" src="https://2.bp.blogspot.com/-ucdy7q65WCA/V1n0UCxwNMI/AAAAAAAAChg/eviQG1lSycQbsJfHX3igy9nD-mFXn55igCLcB/s400/g3d_new.jpg"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>First SF release for download</title><link href="https://sourceforge.net/p/globe3d/news/2008/04/first-sf-release-for-download/" rel="alternate"/><published>2008-04-29T20:31:34Z</published><updated>2008-04-29T20:31:34Z</updated><author><name>Gautier de Montmollin</name><uri>https://sourceforge.net/u/gdemont/</uri></author><id>https://sourceforge.net0ae1cef9a9411356c211b154820140279a72694e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;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).&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>