Lava experiments

Published June 20, 2008
Advertisement
General progress

In the past two weeks, I've been working a lot on "polishing" the engine. This means investigating all sorts of bugs and problems that I had noticed, but didn't have the time to fix so far.

For example, I added support for minidumps. When the engine/program crashes, the exception gets intercepted and generates a dump file that contains a stack trace as well as local variable values. It works in release mode too, so there's no performance cost; the only restriction is that I need to keep the .pdb files associated to a release. From a user's point of view, a small dialog box pops up and asks whether a minidump should be saved or not. If agreed, it generates a file called 'minidump.dmp' near the executable. This can be packed together with the log file and sent to me for further investigations.

All future releases of prototypes, ASEToBin, StoryGen etc.. should include this minidump.

Lava experiments

On the "visual" side, I've spent a couple of hours on lava. The effect is "okay" I believe; later on, I plan to add a screen-space heat ( distortion ) effect.

The current shader samples a lava texture and combines 14 octaves at different frequencies. The last layers ( closer to the ground ) are animated, but it's quite subtle. A self-illumination term is calculated and added back additively. However, that alone isn't enough: lava emits light on the surrounding terrain; so to help a bit, I've added a bit of red-ish lighting additively, that is a function of the distance above the lava plane.

With HDRI enabled ( like in those screenshots ), and the glowing effect, it's looking rather nice. I've included day and night shots.

I'm thinking of using a similar shader ( with probably a lot of copy/paste ) for the sun surface effect.

At this point, what is worrying me the most are the z-fighting artifacts between the ocean/lava and the terrain.

I've also created a small terrain editor that allows to tweak the procedural parameters ( those were previously hardcoded ), change the frequencies, etc..







Previous Entry Descriptions generator
Next Entry A bit of history
0 likes 12 comments

Comments

Demosthenes
Nice, especially the last two images.
June 20, 2008 10:30 AM
sprite_hound
Pretty! Love the night-time images too. :)
June 20, 2008 10:38 AM
Twisol
That's a very breathtaking effect. I can't wait to see what it looks like with the heat distortion effect, too! *sets as background*
June 20, 2008 12:35 PM
rip-off
Very nice.
June 20, 2008 12:46 PM
Radan
Looks really nice.

Do you think you might be putting out a new video with all the new effects added since the last video? Maybe just a little unofficial one at youtube.
June 20, 2008 01:04 PM
Ysaneya
Quote:Original post by Radan
Do you think you might be putting out a new video with all the new effects added since the last video? Maybe just a little unofficial one at youtube.


There will be a new video in the coming months, but I want that one to be particularly polished and breathtaking. I'm waiting to have the planetary engine in a more complete state ( for example, vegetation is still simplistic, clouds should be volumetric, etc.. ) before making it.
June 20, 2008 01:26 PM
AniCator
That looks nice. As you already suggested: It still needs to be polished. But it looks great already!
June 21, 2008 03:34 AM
Hypnotron
What are your plans with regards to publishing? I imagine you are already getting inquiries from interested publishers looking for a next gen Space Sim?

I'll echo what everyone else is saying while I'm at it. Your work is amazing!

June 21, 2008 10:29 AM
Butterman
I came.
June 22, 2008 01:39 PM
LachlanL
Awesome. Just awesome.
June 22, 2008 08:15 PM
pixelperfect
how do you procedurally decide where to place a volcano? do you deliberately generate volcano-like terrain, or do you try to detect terrain patterns where a volcano would look ok?
how do you decide which terrain vertices should have the red light based on height above lava plane? is this on a per-tile basis?
July 05, 2008 09:16 PM
dgreen02
Great work as usual man! I really like the last 2 shots of the lava. Looks amazing.

The screen-space heat blur effect is easily implemented and will really make the day-time shots look a lot better. I threw one into my game in a few hours using a scrolling 2d distortion map/post-processing shader. I made a journal entry a long time ago about it [ even posting the texture if I recall ].

Keep up the great work!!

- Danny

edit: Here is the link...to my heat blur entry, loosly based off the ATI Caves Demo w/ the lava etc. written about a year ago. Though I'm sure you've got 1000 better ways of implementing the effect already.
July 11, 2008 12:40 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement