Home Creators Posts Import Register Favorites Logout

Content

Hey everyone! This is hmal, you may recognize me as the new programmer on Vessel Tactics, and this week, I’d like to break the big news to you all…

Water 3! The trilogy!

I had introduced Water 2 a while ago, and now I’m now following it up with Water 3! Before I get to the meat of the post, I’d like to say that this post will be a little nerdier than the usual posts here, don’t worry though, I’ll explain things in simple terms to make it easy to understand what’s going on.

With that said, let’s get to it!

Deep Depths

Before we even think about rendering water, we need to figure out a basic but important thing. Depth. As you know, as you go deeper in a body of water, the amount of light reaching that point decreases, getting darker as you go, along with other features like the dazzling lightshow on the seafloor caused by the waves. To be able to do any of that, we need to figure out how deep a point is under the water, to do so, we extract something called a “Depth Map” when we render our water. It tells us how deep a point is from that specific viewing angle. As you can see above, it gets brighter as the water gets deeper with the shore colored yellow. We’ll frequently come back to the depth map as we go on.

Wavity Waves

Now that we’ve gotten our depth figured out, let’s get to waves! While in real life waves occur naturally by wind and other factors, we don’t have a NASA supercomputer at everyone’s desks yet, so we have to resort to trickery and elaborate lies! Going back to highschool maths, you may remember trigonometry, sine, cosine and such... Ah, such memories... Anyway, it would turn out that merging many wave looking mathematical equations create good looking waves! So we just write some fancy maths to create waves, then repeat it endlessly to cover our water’s surface. You can see the repeating pattern in the image too, bright spots are peaks and darker spots are troughs between waves.

It’s dark under the water...

It is easy to figure out it gets darker the deeper you go, we all know that, but how do we figure out how deep it is under our water? We don’t have a ruler to calculate the depth... or do we..? Recalling the Depth Map we talked about earlier, it makes it trivial to actually recreate the effect of deeper water looking darker! We can take our water’s color, usually blue for stylistic reasons but who cares, combine it with the depth map and voila! We get lighter colored water on the shore and darker colored water on the depths, so convenient!

I’m under the water, help me pls

With the water color and waves figured out, let’s get to something fancy! The distortion caused by water itself! As you know, filling a glass with water causes all sorts of funky distortions to objects behind it, and we have a nice way of mimicking that too, namely, Noise Textures. Imagine the static on an old TV with no signal, that colored mess of pixels changing rapidly on the screen... How unfortunate, but it’ll come in really handy for us because we can use the noise to shift pixels under our water and create nice looking distortions without tanking our FPS! While ray tracing would give us accurate water, I’m sure you’re not playing VT for our industry leading rendering technologies, this gives us good enough eyecandy to fool our eyes as long as you don’t look too closely... Hey! Don’t zoom on the water!!

An Underwater Lightshow

You’ve probably seen the light dancing behind a glass filled with water when you put it on your window, a proper water shader wouldn’t be complete without caustics (yes, that’s what they are called!), so we need to figure out a way to render them without tanking our FPS... It seems that performance is a recurring theme around here haha... Doing some research reveals that there’s actually a very easy way to fake those too... More noise textures! We can apply a noise technique called “Voronoi” to our seafloor and make crisp looking caustics! While there’s not much to talk about Voronoi itself other than boring maths, it creates the fancy looking web-like structures you see on the image above.

Foamy Shores

While not this pronounced in real life, crashing waves on shores create foamy water! And we have a rather nice problem: “How do we figure out what’s a shore and what’s not a shore?” Believe it or not, it’s the Depth Map once again! We know where our water is relative to where we stand, we know the objects closer to us than the water (e.g the yellow shore), and objects farther to us than the water (e.g the objects under the water), so we find a nice range of “depth” values to render our foamy water at! After deciding where to put our foam at, we use noise textures once again to create nice looking foam, and we can animate it to look extra nice as well!

Birbs Over The Water!

As you may know, the v0.5 added aerial units, namely harpies. And they... Fly! Fly they do over on land and water! I thought I could add a little nice effect for our birbs, so I looked at some aircraft and helicopters hovering over wate, and decided that a little water splashing effect would be nice under them. While the way I did this is mostly boring code and maths, there’s unfortunately not much I can explain without getting deep into maths. Either way, I think it looks cool!

Bringing it all together

It was a long way to reach this point, and I’m happy to say that we have a nice looking water at the end of all that! The water just got a lot wetter, and more is to come when more water related mechanics are to be added down the line. Stay hydrated people!

With the wet stuff done with, let’s get to the second topic of today’s post: Map Authoring Tools (aka the map creator)

With our efforts focused on making the game more stable, easier to work with and create new content for, I’ll be working on a developer only map creator in the coming weeks! It’ll allow us to create new maps with more features and new mechanics. I should also add, the map creator will be a developer only for now. An in-game map creator may be added down the line after details are struck down with the initial developer tooling. The map creator is mostly in ideation phase with no visuals to show unfortunately.

Thanks for your support, and see you next week!

==============================================================

Addendum from Cyrk: Still working on the modding adding in all functions for the different possible vore types, and the chimera, but should be done soon.

Also, POV, you enter the haunted house at Tracen, but the girls working that day are a little too committed to the bit.

Files

Comments

Archetype

This is great news! Can’t wait for Water 7

Pentasquint

I cant believe it! I asked for it and I will recieve!

Mohbr

Taiki shuttle my beloved,,,,

Simsl Threeg

looks really good! is this a precursor to fsih update since we got birb update :p

JoJomama345

you made me remember SIN, COS and TAN I'm canceling my memebership (JK)

Jack Hazardous

Are we gonna have powerful navel units, or instant downs on land units being pushed into the sea?

EliteBarbarian

When's the new free version dropping im BROKE

Votre

I would like Hmal explain this because I was left wanting more

JoJomama345

On the discord in the bate channel if I remember correctly

GK402

How can I join the discord channel?Do I need to become a paid supporter?

Gold

Thanks so much for working so hard on the Water for the levels. Yeah, I understand animating water is a tricky substance to do. Though for me, I am more looking forward to what creatures and faction might exist in the water. Will you meet mermaids that are terrifying in the water but weak on land? Maybe a Octopus type girl who is in beef with your forces.

compu

this link is a virus or no.itch.io/devlog/1638286/vessel-tactics-v05a-by-meshisoftworks.amp

compu

sorry, this is the link itch.io/devlog/1638286/vessel-tactics-v05a-by-meshisoftworks.amp

compu

can you give me the 2 games (vt v0.5 and the last version of venus dervi)