<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://wedesoft.github.io/sfsim/feed.xml" rel="self" type="application/atom+xml" /><link href="https://wedesoft.github.io/sfsim/" rel="alternate" type="text/html" /><updated>2026-11-09T22:03:06+00:00</updated><id>https://wedesoft.github.io/sfsim/feed.xml</id><title type="html">sfsim</title><subtitle>sfsim is a space flight simulator under development</subtitle><author><name>Jan Wedekind</name><email>jan@wedesoft.de</email></author><entry><title type="html">Flight control display</title><link href="https://wedesoft.github.io/sfsim/simulation/2026/11/05/control-mfd.html" rel="alternate" type="text/html" title="Flight control display" /><published>2026-11-05T22:01:00+00:00</published><updated>2026-11-05T22:01:00+00:00</updated><id>https://wedesoft.github.io/sfsim/simulation/2026/11/05/control-mfd</id><content type="html" xml:base="https://wedesoft.github.io/sfsim/simulation/2026/11/05/control-mfd.html"><![CDATA[<p>I have released version 0.37-1 of <a href="https://wedesoft.github.io/sfsim/">sfsim</a>.</p>

<p><img src="/sfsim/pics/controls.jpg" alt="flight control display" /></p>

<p>This release adds a new flight control display showing the positions of the ailerons, elevator, and rudder.
It lets you see at a glance how your control inputs move the surfaces responsible for roll, pitch, and yaw.</p>

<p>Let me know any feedback and comments in the <a href="https://steamcommunity.com/app/3847320/discussions/">sfsim playtest discussion forum</a>.</p>

<p>Don’t forget to <a href="https://store.steampowered.com/app/3687560/sfsim/">wishlist sfsim</a>!</p>]]></content><author><name>Jan Wedekind</name><email>jan@wedesoft.de</email></author><category term="simulation" /><summary type="html"><![CDATA[I have released version 0.37-1 of sfsim.]]></summary></entry><entry><title type="html">Reentry graphics</title><link href="https://wedesoft.github.io/sfsim/graphics/2026/10/31/reentry-graphics.html" rel="alternate" type="text/html" title="Reentry graphics" /><published>2026-10-31T00:05:00+00:00</published><updated>2026-10-31T00:05:00+00:00</updated><id>https://wedesoft.github.io/sfsim/graphics/2026/10/31/reentry-graphics</id><content type="html" xml:base="https://wedesoft.github.io/sfsim/graphics/2026/10/31/reentry-graphics.html"><![CDATA[<p>I have released version 0.34-3 of <a href="https://wedesoft.github.io/sfsim/">sfsim</a>.</p>

<div class="video-container">
<video src="/sfsim/pics/reentry.mp4" autoplay="" loop="" playsinline=""></video>
</div>

<p>Reentry shockwave visuals are now integrated into the game!
The shockwave’s shape changes with the vehicle’s speed, while its brightness depends on the rate at which energy is converted into heat.
Getting the shockwave to conform to the spacecraft’s wind-facing surfaces was particularly challenging.
For technical details, see my post about <a href="/sfsim/graphics/2026/09/06/shockwaves.html">shockwaves</a>.</p>

<p>Let me know any feedback and comments in the <a href="https://steamcommunity.com/app/3847320/discussions/">sfsim playtest discussion forum</a>.</p>

<p>Don’t forget to <a href="https://store.steampowered.com/app/3687560/sfsim/">wishlist sfsim</a>!</p>]]></content><author><name>Jan Wedekind</name><email>jan@wedesoft.de</email></author><category term="graphics" /><summary type="html"><![CDATA[I have released version 0.34-3 of sfsim.]]></summary></entry><entry><title type="html">Bugfixes</title><link href="https://wedesoft.github.io/sfsim/software/2026/10/27/bugfixes.html" rel="alternate" type="text/html" title="Bugfixes" /><published>2026-10-27T23:08:24+00:00</published><updated>2026-10-27T23:08:24+00:00</updated><id>https://wedesoft.github.io/sfsim/software/2026/10/27/bugfixes</id><content type="html" xml:base="https://wedesoft.github.io/sfsim/software/2026/10/27/bugfixes.html"><![CDATA[<p>I’ve released version 0.33-1 of the <a href="https://wedesoft.github.io/sfsim/">sfsim</a> space flight simulator.
This bug-fix release includes three changes aimed at improving stability:</p>

<ol>
  <li>Switched back from Java 27 to the stable Java 25 LTS release.</li>
  <li>Fixed infinite recursion when determining which cube face an edge point belongs to.</li>
  <li>Fixed an infinite loop caused by a negative opacity step size when computing cloud shadows.</li>
</ol>

<p><img src="/sfsim/pics/cloudy.jpg" alt="spacecraft flying through clouds" /></p>

<p>If you encounter any further problems, please report them in the <a href="https://steamcommunity.com/app/3847320/discussions/">sfsim playtest discussion forum</a>.
See the <a href="https://wedesoft.github.io/sfsim/support/">support page</a> for instructions on how to submit your log file.</p>]]></content><author><name>Jan Wedekind</name><email>jan@wedesoft.de</email></author><category term="software" /><summary type="html"><![CDATA[I’ve released version 0.33-1 of the sfsim space flight simulator. This bug-fix release includes three changes aimed at improving stability:]]></summary></entry><entry><title type="html">Shockwaves</title><link href="https://wedesoft.github.io/sfsim/graphics/2026/09/06/shockwaves.html" rel="alternate" type="text/html" title="Shockwaves" /><published>2026-09-06T22:45:23+00:00</published><updated>2026-09-06T22:45:23+00:00</updated><id>https://wedesoft.github.io/sfsim/graphics/2026/09/06/shockwaves</id><content type="html" xml:base="https://wedesoft.github.io/sfsim/graphics/2026/09/06/shockwaves.html"><![CDATA[<p>I am excited to share early results of shockwave rendering with the community!</p>

<p>I would like to add visualization of a glowing shockwave during atmospheric reentry in the <a href="https://wedesoft.github.io/sfsim/">sfsim</a> spaceflight simulator.
I explored possible approaches by discussing the problem with Google Gemini.
Popular approaches seem to use meshes with animated semi-transparent noise textures.
However this still leaves the problem of determining the shape of the mesh.</p>

<p>Also the shape of the single-stage-to-orbit spacecraft is complex and the shockwave will look different depending on the orientation of the spacecraft.
<img src="/sfsim/pics/windtunnel.jpg" alt="windtunnel image of spaceship" /></p>

<p>In the end, Google Gemini pointed out the <a href="https://en.wikipedia.org/wiki/Jump_flooding_algorithm">Jump Flooding Algorithm</a> (JFA), published in 2006.
This algorithm essentially enables a real-time distance transform on the GPU.
In this case, it can instead be adapted to fit a shockwave to each wind-facing surface patch and determine, for each pixel, which shockwave candidate lies farthest upstream in the wind direction.</p>

<p>Here is a depth image as seen from the direction the wind is coming from.
<img src="/sfsim/pics/depth.png" alt="depth image from wind direction" /></p>

<p>JFA then expands this image into a depth image of the shock front.
Billig’s formula is used (with a fixed nose curvature radius for this prototype) to create a shockwave emitter at each surface pixel.
<img src="/sfsim/pics/shockfront.png" alt="visualization of depth of shockwave" /></p>

<p>The following image visualizes the seed pixel coordinates for the image.
JFA has to track seed pixel coordinates in order to properly propagate the dominant/nearest shockwave.
<img src="/sfsim/pics/seedpixels.png" alt="visualization of seed pixel coordinates" /></p>

<p>The remaining step is to use this depth image for volumetric rendering of the shockwave.
The next image shows a volumetric box used for rendering the shockwave.
<img src="/sfsim/pics/fogbox.jpg" alt="box for volumetric shader" /></p>

<p>By limiting the fog to pixels behind the shockwave, one obtains the following image.
<img src="/sfsim/pics/shockvolume.jpg" alt="rendering the shock volume" /></p>

<p>One can instead apply exponential fall-off to create a more realistic image of a glowing shock front.
<img src="/sfsim/pics/shockwave.jpg" alt="rendering the shock wave" /></p>

<p>Future work includes taking into account the surface slope and curvature to get more realistic shockwaves.</p>

<p>Let me know any feedback and comments in the <a href="https://steamcommunity.com/app/3847320/discussions/">sfsim playtest discussion forum</a> or one of the social channels below.</p>

<div class="embed-container">
  <iframe src="https://www.youtube.com/embed/iogoPzst3KU" allowfullscreen=""></iframe>
</div>]]></content><author><name>Jan Wedekind</name><email>jan@wedesoft.de</email></author><category term="graphics" /><summary type="html"><![CDATA[I am excited to share early results of shockwave rendering with the community!]]></summary></entry><entry><title type="html">Deferred Rendering</title><link href="https://wedesoft.github.io/sfsim/graphics/2026/08/27/deferred-rendering.html" rel="alternate" type="text/html" title="Deferred Rendering" /><published>2026-08-27T18:39:31+00:00</published><updated>2026-08-27T18:39:31+00:00</updated><id>https://wedesoft.github.io/sfsim/graphics/2026/08/27/deferred-rendering</id><content type="html" xml:base="https://wedesoft.github.io/sfsim/graphics/2026/08/27/deferred-rendering.html"><![CDATA[<p>I have released version 0.30-1 of <a href="https://wedesoft.github.io/sfsim/">sfsim</a>.</p>

<p>This release introduces a major overhaul of the rendering code as well as a runway for the spacecraft.
The rendering system is implemented using the <a href="https://clojure.org/">Clojure</a> programming language as well as <a href="https://en.wikipedia.org/wiki/OpenGL_Shading_Language">GLSL</a>.
<a href="https://www.lwjgl.org/">LWJGL3</a> is used to access the graphics card’s OpenGL bindings.</p>

<p>The new rendering code uses <a href="https://en.wikipedia.org/wiki/Deferred_shading">deferred shading</a>, which first computes and stores per-pixel geometry data in a geometry buffer (G-buffer), then calculates each pixel’s final lighting in a separate shader pass.
Deferred shading makes it easy to render <a href="https://mtnphil.wordpress.com/2014/05/24/decals-deferred-rendering/">decals</a>, which are essentially textures projected onto scene geometry.
It also enables efficient real-time rendering of <a href="https://learnopengl.com/Advanced-Lighting/Deferred-Shading">many localized light sources</a>.</p>

<p>Deferred rendering splits rendering into stages so geometry is processed first, lighting later.</p>

<p>Step by step from the images:</p>

<h3 id="geometry-pass">Geometry Pass</h3>

<h4 id="projecting-geometry">Projecting Geometry</h4>

<p><img src="/sfsim/pics/wireframe.png" alt="Wireframe of model triangles" /></p>

<p>The scene is made of triangles.
A vertex shader is used to project the triangles which are passed to the rasterizer.
For the planet mesh, the geometry is further refined through tessellation and geometry shaders.
The geometry pass draws all visible geometry and stores per-pixel surface data into multiple buffers (textures) as shown below instead of computing final lighting immediately.</p>

<p>Although the runway could be rendered as a decal in a separate pass, it was chosen to render it within the same shader as the planet.
This will make it easier to later adopt <a href="https://www.shlom.dev/articles/how-virtual-textures-really-work/">runtime virtual texturing</a>, for example to render airport ground surfaces with markings.</p>

<h4 id="diffuse-buffer">Diffuse buffer</h4>

<p><img src="/sfsim/pics/diffuse.jpg" alt="Diffuse color of materials" /></p>

<p>The diffuse buffer stores the base RGB color of the material at each pixel.
There is also an emissive buffer for light-emitting surfaces which is not shown here.</p>

<h4 id="material-property-buffer">Material property buffer</h4>

<p><img src="/sfsim/pics/metallic.png" alt="Metallic constant of materials" /></p>

<p>The metallic buffer stores a scalar indicating how reflective the material at each pixel is.
The buffer with specular strength (inverse roughness) is not shown here.</p>

<h4 id="normal-buffer">Normal buffer</h4>

<p><img src="/sfsim/pics/normals.jpg" alt="Normal vectors" /></p>

<p>The normal buffer stores the surface normal vector at each pixel in the camera coordinate system.
Normals are useful lateron in order to determine the incident angle of incoming light.</p>

<h4 id="view-space-position-buffer">View-space Position buffer</h4>

<p><img src="/sfsim/pics/points.jpg" alt="View-space position" /></p>

<p>The view-space position buffer stores the 3D position of the surface visible at each pixel.
This data is useful for computing atmospheric scattering and the distance to local light sources during the subsequent lighting pass.</p>

<h3 id="lighting-pass">Lighting pass</h3>

<p><img src="/sfsim/pics/phong.jpg" alt="Result of Phong shading" /></p>

<p>During the lighting pass, the G-buffer and a shadow map are used to calculate per-pixel lighting.
Blending can also be used in this pass to update the lighting of only part of the scene, without evaluating every light source at every pixel.
This image shows the shaded result produced with a Phong model.</p>

<h4 id="atmospheric-effects">Atmospheric effects</h4>

<p><img src="/sfsim/pics/atmosphere.jpg" alt="Atmospheric scattering" /></p>

<p>Phong shading computes the surface color after lighting.
The lighting shader also accounts for <a href="https://ebruneton.github.io/precomputed_atmospheric_scattering/">atmospheric scattering</a>.
Atmospheric scattering both adds in-scattered light and removes part of the incoming light through scattering.</p>

<h4 id="final-compositing">Final compositing</h4>

<p><img src="/sfsim/pics/clouds.jpg" alt="Cloud overlay" /></p>

<p>The volumetric clouds are rendered separately using a lower resolution.
The lighting pass then incorporates the cloud layer using depth-aware upsampling.</p>

<hr />

<p>Let me know any feedback and comments in the <a href="https://steamcommunity.com/app/3847320/discussions/">sfsim playtest discussion forum</a>.</p>

<p>Don’t forget to <a href="https://store.steampowered.com/app/3687560/sfsim/">wishlist sfsim</a>!</p>]]></content><author><name>Jan Wedekind</name><email>jan@wedesoft.de</email></author><category term="graphics" /><summary type="html"><![CDATA[I have released version 0.30-1 of sfsim.]]></summary></entry><entry><title type="html">Metallic and roughness factor</title><link href="https://wedesoft.github.io/sfsim/graphics/2026/08/07/materials.html" rel="alternate" type="text/html" title="Metallic and roughness factor" /><published>2026-08-07T22:49:00+00:00</published><updated>2026-08-07T22:49:00+00:00</updated><id>https://wedesoft.github.io/sfsim/graphics/2026/08/07/materials</id><content type="html" xml:base="https://wedesoft.github.io/sfsim/graphics/2026/08/07/materials.html"><![CDATA[<p>I have released version 0.29-1 of <a href="https://wedesoft.github.io/sfsim/">sfsim</a>.</p>

<p><img src="/sfsim/pics/materials.jpg" alt="Metallic material with roughness" /></p>

<p>The <a href="https://github.com/assimp/assimp">Open Asset Import Library (assimp)</a> which is shipped with the <a href="https://www.lwjgl.org/">LWJGL3 library</a> has been updated some time ago.
I am now able to access the metallic value and the roughness value from the glTF exported by <a href="https://www.blender.org/">Blender</a>.
The metallic and roughness value are now used in the model shader programs so that the spacecraft has a more metallic surface.</p>

<p><img src="/sfsim/pics/blender.jpg" alt="Blender view of spacecraft" /></p>

<p>In the meantime I am still working on implementing deferred shading to facilitate rendering of a runway and localized light sources.</p>

<p>Let me know any feedback and comments in the <a href="https://steamcommunity.com/app/3847320/discussions/">sfsim playtest discussion forum</a>.</p>

<p>Don’t forget to <a href="https://store.steampowered.com/app/3687560/sfsim/">wishlist sfsim</a>!</p>]]></content><author><name>Jan Wedekind</name><email>jan@wedesoft.de</email></author><category term="graphics" /><summary type="html"><![CDATA[I have released version 0.29-1 of sfsim.]]></summary></entry><entry><title type="html">Deferred shading</title><link href="https://wedesoft.github.io/sfsim/graphics/2026/07/16/deferred-shading.html" rel="alternate" type="text/html" title="Deferred shading" /><published>2026-07-16T21:46:00+00:00</published><updated>2026-07-16T21:46:00+00:00</updated><id>https://wedesoft.github.io/sfsim/graphics/2026/07/16/deferred-shading</id><content type="html" xml:base="https://wedesoft.github.io/sfsim/graphics/2026/07/16/deferred-shading.html"><![CDATA[<p><img src="/sfsim/pics/deferred.jpg" alt="Localized lights using deferred shading" /></p>

<p>Currently I am working on deferred shading.
This requires me to separate rendering into two passes:</p>

<ul>
  <li><strong>Geometry pass</strong>: render data to a point buffer, normal buffer, and a color buffer, etc.</li>
  <li><strong>Lighting pass</strong>: use the geometry buffers to compute lighting including shadows and volumetric clouds.</li>
</ul>

<p>The change is quite a bit of work, because I have to split up the graphics code and the shaders for rendering the space craft, the planet, and the atmosphere.</p>

<p>However this will facilitate rendering of runway textures which are at the same height as the rest of the scene but have a higher texture resolution.
Simply adding textured polygons to render a runway does not work, because extra geometry placed at the same elevation as the ground causes <a href="https://en.wikipedia.org/wiki/Z-fighting">z-fighting</a>.
Z-fighting is a rendering artifact where two surfaces are so close together that the depth buffer can’t reliably tell which one is in front.</p>

<p>Another nice feature of deferred shading is that it allows for multiple localized lights to be rendered at once.
You can render the backfaces of a small cube around the light source and use the geometry buffers to light the scene additively, factoring in both the incident angle and the distance from the light source.</p>

<p>I.e., deferred shading enables detailed nighttime runway rendering with dense, spatially localized illumination, while keeping performance manageable compared to forward rendering with many dynamic lights.</p>

<p>Don’t forget to <a href="https://store.steampowered.com/app/3687560/sfsim/">wishlist sfsim</a>!</p>

<p>Also you can catch me on the <a href="https://discord.com/invite/EJEE6QNHra">sfsim Discord</a>.</p>]]></content><author><name>Jan Wedekind</name><email>jan@wedesoft.de</email></author><category term="graphics" /><summary type="html"><![CDATA[]]></summary></entry><entry><title type="html">Github CI</title><link href="https://wedesoft.github.io/sfsim/software/2026/06/30/github-ci.html" rel="alternate" type="text/html" title="Github CI" /><published>2026-06-30T21:52:00+00:00</published><updated>2026-06-30T21:52:00+00:00</updated><id>https://wedesoft.github.io/sfsim/software/2026/06/30/github-ci</id><content type="html" xml:base="https://wedesoft.github.io/sfsim/software/2026/06/30/github-ci.html"><![CDATA[<p>Hi,</p>

<p>Here is release version 0.28-1 of <a href="https://wedesoft.github.io/sfsim/">sfsim</a>.</p>

<p>This release has a minor fix for time lapse limits.
Also I have increased the coverage of the schemas used for checking correctness of the software.</p>

<p><img src="/sfsim/pics/ci.png" alt="Github CI build" /></p>

<p>The bigger change which hopefully is not noticeable is that I am trialing Github CI builds.
<a href="https://github.com/features/actions">Github kindly provides free CI for public repositories</a>.
I was already using Github CI for running unit tests.</p>

<p>Using an automated build process on a controlled environment has many advantages:</p>
<ul>
  <li>less error prone than performing multiple manual build steps</li>
  <li>configuration changes on developer machines do not affect software releases</li>
  <li>builds for both Linux and Windows can be triggered from any computer</li>
  <li>the complete build process including dependencies is captured</li>
  <li>build logs are online</li>
  <li>it is easier for others to create modified builds</li>
</ul>

<p>Let me know in the <a href="https://steamcommunity.com/app/3847320/discussions/">sfsim playtest discussion forum</a> if there are any problems.</p>

<p>Don’t forget to <a href="https://store.steampowered.com/app/3687560/sfsim/">wishlist sfsim</a>!</p>

<p>Enjoy!</p>]]></content><author><name>Jan Wedekind</name><email>jan@wedesoft.de</email></author><category term="software" /><summary type="html"><![CDATA[Hi,]]></summary></entry><entry><title type="html">Steam Achievements</title><link href="https://wedesoft.github.io/sfsim/playtest/2026/06/18/steam-achievements.html" rel="alternate" type="text/html" title="Steam Achievements" /><published>2026-06-18T16:20:00+00:00</published><updated>2026-06-18T16:20:00+00:00</updated><id>https://wedesoft.github.io/sfsim/playtest/2026/06/18/steam-achievements</id><content type="html" xml:base="https://wedesoft.github.io/sfsim/playtest/2026/06/18/steam-achievements.html"><![CDATA[<p>Hi,</p>

<p>Here is release version 0.23-1 of <a href="https://wedesoft.github.io/sfsim/">sfsim</a>.</p>

<p><img src="/sfsim/pics/achievements.jpg" alt="Steam Achievements" /></p>

<p>I started adding achievements to <em>sfsim</em>.</p>

<p>To begin with I added the following achievements:</p>
<ul>
  <li>breaking the sound barrier: spacecraft exceeds speed of sound</li>
  <li>crossing the Kármán line: spacecraft reaches altitude of more than 100 kilometers</li>
  <li>achieving stable Earth orbit: lowest point of orbit is above 160 kilometers</li>
</ul>

<p>I think achievements are a useful feature of Steam, because they give feedback to players about their progress in the game.</p>

<p>Let me know in the <a href="https://steamcommunity.com/app/3847320/discussions/">sfsim playtest discussion forum</a> if you have any thoughts.
Don’t forget to <a href="https://store.steampowered.com/app/3687560/sfsim/">wishlist sfsim</a>!</p>

<p>Enjoy!</p>]]></content><author><name>Jan Wedekind</name><email>jan@wedesoft.de</email></author><category term="playtest" /><summary type="html"><![CDATA[Hi,]]></summary></entry><entry><title type="html">Rate Needles</title><link href="https://wedesoft.github.io/sfsim/interface/2026/06/14/rate-needles.html" rel="alternate" type="text/html" title="Rate Needles" /><published>2026-06-14T19:39:00+00:00</published><updated>2026-06-14T19:39:00+00:00</updated><id>https://wedesoft.github.io/sfsim/interface/2026/06/14/rate-needles</id><content type="html" xml:base="https://wedesoft.github.io/sfsim/interface/2026/06/14/rate-needles.html"><![CDATA[<p>Hi,</p>

<p>Here is release version 0.22-1 of <a href="https://wedesoft.github.io/sfsim/">sfsim</a>.</p>

<p><img src="/sfsim/pics/rate-needles.jpg" alt="Navball MFD" /></p>

<p>I added rate pointers for roll, pitch, and yaw angles to the MFD.
The pointers are arranged around the <a href="/sfsim/interface/2026/06/12/navball-mfd.html">navball</a> in the center.</p>

<ul>
  <li>Top: roll rate indicator</li>
  <li>Right: pitch rate indicator</li>
  <li>Bottom: yaw rate indicator</li>
</ul>

<p>See <a href="https://spaceshuttleguide.com/MDU.htm">here</a> for a detailed overview of the space shuttle primary flight display.</p>

<p>The rate indicators make it easier to control the attitude of the craft.
Especially in orbit it is important to control the orientation, because there are no aerodynamic forces stabilising the angles of the spacecraft.</p>

<p>Let me know in the <a href="https://steamcommunity.com/app/3847320/discussions/">sfsim playtest discussion forum</a> if you have any thoughts.
Don’t forget to <a href="https://store.steampowered.com/app/3687560/sfsim/">wishlist sfsim</a>!</p>

<p>Enjoy!</p>]]></content><author><name>Jan Wedekind</name><email>jan@wedesoft.de</email></author><category term="interface" /><summary type="html"><![CDATA[Hi,]]></summary></entry></feed>