Skip to the content

Sauce Update: Infinite Worlds, Wet Roads, Hurricanes, and a Flamethrower

Episode: Bantha Fodder

Watch on Shmotime

News

Today is a quick update about the improvements I’ve been putting into Source Engine in the Sauce project.

What is Sauce?

Sauce engine logo
Sauce: Source 1, but with extra sauce.

Sauce is a fork of the 2013 Source 1 engine that adds the deferred renderer originally written by Biohazard. It also swaps out the physics engine from Havok to Box 3D, and it implements D3D9 on 12, which lets me use advanced shader techniques such as 3D meshes in GPU shaders.

I also added the ability to have infinite terrain worlds in Sauce. Source Engine has a fixed-size world that cannot be escaped from. So what does Sauce do? It’s like the original Mario. When you walk off one screen’s edge, you appear at the other end. However, the entire world shifts too, giving the illusion that it’s an infinite world even though you’re actually just running through the same finite space over and over again.

This works for traveling across the map in the XY direction, but it also works for flying into the air or going down into the ground. Infinite in all directions.

Day/Night, Sky, and Weather

To go along with the infinite terrain mode, I added:

  • A day/night system
  • A shader-driven sky to go with that day/night system
  • A dynamic weather system, including extreme weather (more on that below)

For now, let’s talk about regular weather, such as rain. Storm clouds roll in, and you can see the front coming from miles away. But when you’re in there, it drops buckets on you and makes everything wet. There’s wind, bushes and trees rustling around, fog, splashes, all that.

But after the rain passes, the water remains. That’s what this screenshot shows: the wet spots left on the road after the storm passes.

Wet road with reflective puddles after a storm
Puddles and reflections left behind after the storm.

Here’s the same spot at a more intense moment of the storm. There’s water everywhere, splashes, fog, and the wind is pushing through the mist in waves. When you’re actually playing this thing, it looks pretty damn good.

Heavy rain with splashes and fog on the road
Same spot, mid-downpour.

Extreme Weather

When there’s a hurricane or a tornado, the wind is so strong that it strips the leaves off the trees and blows the grass down flat, and you end up with something that looks like this wasteland. This screenshot is from the middle of a hurricane.

Forest stripped bare during a hurricane
Mid-hurricane. The trees did not survive.

The high winds will also be hurling tree parts and other junk the storm just ripped loose straight at you. Watch out.

For comparison, here’s a calmer storm that isn’t raining sideways:

Calmer storm over a road
A more civilized storm.

It Burns

Did I mention that this crap burns? You can have massive-scale forest fires going down, and there’s a flamethrower in the game now to light shit up.

Smoky haze downwind of a forest fire
Downwind of a forest fire.

Portal-Window Interiors

What open world engine would be complete without interior areas that use portals for their windows? This lets you make the inside of a building look like it’s positioned anywhere you want in the world without it actually being positioned there.

This is how they do interiors in GTA 5 Online, for example. You enter these buildings, look out the window, and it looks like you’re really there.

Interior room with a portal window showing the outside world
The view out the window is a portal, not the real location.

Laser Sword vs. Tall Grass

Here I’m checking out our laser sword (not a lightsaber) in the tall grass. This was recorded before cutting grass with the lightsaber was a thing. Now if you swing it through tall grass, you scorch it all off.

Flamethrower Test

Here’s the flamethrower I mentioned. I’m testing it in the desert environment, where there’s not much vegetation to burn, but there’s still fire.

That Grass Though

Just look at that grass. It’s so nice. That’s some DX12 grass.

Dense DX12-rendered grass field in Sauce
DX12 grass.

That’s going to wrap it up for today. Next time I’ll have more stuff that’s being added, not only to this project but to other projects too.

This post was also a test of whether Autoblogger works on my new website setup, and it’s looking like yes. See ya on the flip side.