TUXDB - LINUX GAMING AGGREGATE
by NuSuey
NEWSFEED
▪️ GAMES
▪️ STEAM DECK ▪️ DEALS ▪️ CROWDFUNDING ▪️ COMMUNITY
tuxdb.com logo
Support tuxDB on Patreon
Currently supported by 9 awesome people!

🌟 Special thanks to our amazing supporters:


✨ $10 Tier: [Geeks Love Detail]
🌈 $5 Tier: [Arch Toasty][Benedikt][David Martínez Martí]

Steam ImageSteam ImageSteam ImageSteam ImageSteam Image
Devlog #5 - Water

In a game about frogs you kind of need to have water, which means you need to program a water shader. A shader is basically a short program that calculates what color a pixel should receive. To me as a programmer they can be somewhat intimidating to create - you need to write some code that, somehow, produces something that matches a certain artistic vision. Whenever I'm working on a shader I find that oftentimes the result looks terrible for a long time until eventually a tiny change is made and suddenly everything looks great, but figuring out what tiny change is required can be a long process of trying lots of different things. Oftentimes it's also not clear from the start what the artistic vision is, especially when the art style of the rest of the game is still evolving, but you have to start somewhere. So one of our first tests around late 2021 for the water looked like this:
We liked the reflections and the wavy outlines around the edges of the water, but it felt like it was still missing something. Eventually Marve came up with this concept art for the fishing hut:
This concept is really more about the the objects for the fishing hut, but it still gave us a some direction for what the water could look and "feel" like. Over the next few years we kept making small tweaks to the water shader until eventually arriving at the current version, which looks like this:
This is what I meant at the start of this post - from a technical point of view this is really not all too different from the very first version we had, there's just some tweaks to the color, the transparency, the width and shape of the outlines, and some "smaller" additions like the ripples from the fish and other things swimming in the water, but with all of these things together it eventually looks good. We'll surely keep making more small changes but for now we're quite happy with how it looks.

Shorelines


I couldn't find a lot about how other games are doing their water, so I wanted to give a bit of technical insight into how we're doing ours. Probably the easiest approach for this kind of effect is the version we used in Parkitect, which looks like this:
This is being created by checking if the distance from the water surface to the depth in the depth buffer is below a certain threshold. It's very easy to do and quite cheap performance-wise, but you can't do a wave movement animation towards the shore and it can look as if the effect is painted onto the objects inside the water (because it essentially is; the effect can not extend beyond the geometry of the objects inside the water, so you can also only ever see it on the side that's facing the camera, not all around the object). In Croakwood we went for a slightly more complex approach. We're placing an orthographic camera that's looking straight down just above the water surface to get a texture that contains the outlines of anything intersecting the water surface. Here's an example with the generated outline texture on the right:
To be able to distinguish what type of shore it is we render the terrain into the green color channel and anything else into the red color channel (we do this so that we can give the wave effect a different movement direction and slightly different look depending on whether it's around the terrain or an object). Then for every pixel in this outline texture we calculate the distance to the nearest shoreline pixel which can be done really fast on the GPU as explained in this excellent article.
Signed Distance Field generated for the shoreline effect (the version on the right is just a different visualization to better understand what's going on) And that's all we need to know where the shoreline effect should appear! They work for objects of any shape, fully surround them and nicely combine if there are multiple nearby objects.

Waves


The waves created by swimming frogs and fish look like they might be fairly complex, but it's surprisingly just a couple dozen lines of code in a compute shader. This article and this video explain it better than I could.


[ 2024-11-12 12:50:57 CET ] [ Original post ]

Croakwood
Texel Raptor Developer
Texel Raptor Publisher
1970-01-01 Release
Game News Posts: 5
🎹🖱️Keyboard + Mouse
🕹️ Partial Controller Support
🎮 Full Controller Support
No user reviews (0 reviews)


Nestled in the heart of Croakwood Forest is a community unlike any other!
Help the locals to build and grow their home in this relaxed town building and management game.

Design and create structures, plan and decorate towns, explore an ancient and wild forest, and manage the Frog Market to guide these tiny amphibians as they settle in and learn to thrive.

Key Features

  • Piece-based building design system with an abundance of customization options and styles
  • Entertaining, independent frog townsfolk to observe and care for while they live their day-to-day lives and express themselves in unique ways
  • Guide and manage the economy as the townsfolk gain or craft each resource by hand
  • A lush, expansive forest to explore with secrets to uncover and creatures to meet
  • Meet goals to gain access to new areas and buildables


MINIMAL SETUP
  • OS: Ubuntu 20.04 or newerGraphics: Vulkan capable GPUStorage: 2 GB available spaceAdditional Notes: More precise requirements still to be determined
  • Graphics: Vulkan capable GPU
  • Storage: 2 GB available spaceAdditional Notes: More precise requirements still to be determined
GAMEBILLET

[ 6138 ]

3.18$ (79%)
25.19$ (16%)
2.07$ (92%)
7.91$ (74%)
6.61$ (17%)
8.49$ (15%)
2.00$ (80%)
17.99$ (40%)
0.90$ (91%)
8.47$ (15%)
2.00$ (80%)
16.59$ (17%)
17.99$ (28%)
16.99$ (15%)
49.79$ (17%)
3.29$ (18%)
2.83$ (81%)
6.00$ (70%)
24.89$ (17%)
8.25$ (17%)
4.19$ (16%)
15.99$ (20%)
12.38$ (17%)
15.42$ (49%)
16.79$ (16%)
8.39$ (16%)
6.65$ (65%)
3.79$ (81%)
14.99$ (25%)
9.95$ (17%)
GAMERSGATE

[ 3335 ]

1.05$ (85%)
3.75$ (75%)
0.85$ (91%)
13.99$ (30%)
1.5$ (85%)
9.99$ (50%)
2.7$ (91%)
32.49$ (35%)
1.69$ (79%)
2.25$ (85%)
34.99$ (30%)
5.0$ (50%)
9.4$ (53%)
6.38$ (57%)
3.5$ (65%)
5.0$ (75%)
2.0$ (80%)
3.0$ (80%)
0.87$ (71%)
10.13$ (22%)
4.5$ (62%)
0.86$ (57%)
5.0$ (75%)
2.63$ (74%)
2.55$ (83%)
0.75$ (85%)
1.76$ (91%)
7.49$ (63%)
4.0$ (75%)
15.0$ (70%)

FANATICAL BUNDLES

Time left:

6 days, 2 hours, 4 minutes


Time left:

12 days, 2 hours, 4 minutes


Time left:

9 days, 2 hours, 4 minutes


Time left:

9 days, 2 hours, 4 minutes


Time left:

9 days, 2 hours, 4 minutes


Time left:

9 days, 2 hours, 4 minutes


Time left:

9 days, 2 hours, 4 minutes


Time left:

9 days, 2 hours, 4 minutes


Time left:

9 days, 2 hours, 4 minutes


Time left:

9 days, 2 hours, 4 minutes


Time left:

9 days, 2 hours, 4 minutes


Time left:

9 days, 2 hours, 4 minutes


Time left:

9 days, 2 hours, 4 minutes


Time left:

9 days, 2 hours, 4 minutes


Time left:

9 days, 2 hours, 4 minutes


Time left:

34 days, 2 hours, 4 minutes


Time left:

14 days, 2 hours, 4 minutes


Time left:

6 days, 2 hours, 4 minutes


Time left:

41 days, 2 hours, 4 minutes


Time left:

30 days, 2 hours, 4 minutes


Time left:

27 days, 2 hours, 4 minutes


Time left:

35 days, 2 hours, 4 minutes


Time left:

37 days, 2 hours, 4 minutes


HUMBLE BUNDLES

Time left:

0 days, 20 hours, 4 minutes


Time left:

14 days, 20 hours, 4 minutes

by buying games/dlcs from affiliate links you are supporting tuxDB
🔴 LIVE