• Register
Post news RSS Sons of Valhalla - Dev Blog #1

Welcome to my first Sons of Valhalla Dev Blog. This time I will show you how I bring life into pixel trees

Posted by on

Hi guys,

welcome to my first Sons of Valhalla Dev Blog! This month I mainly worked on my online presence. So the Steam page is finally live and you can now also find me on IndieDB and GameJolt.
Besides that I worked on a lot of little things regarding the game and one of them is how I bring life into trees. I'm going to show you how it works in todays dev blog.

First of all, I needed a tree like this one:

tree start

This tree is beautiful but if it had some movement it would be even more beautiful to look at. So I took a wind shader from Unity (you can find it in the Lost Crypt demo) to make the tree vibrate.
Because the shader is on the entire tree, the trunk and treetop move at the same time.

tree parts start2

Then I decided to divide the tree into individual parts, so I can equip each part with a different wind speed. This will make the tree look more realistic because the entire treetop will not move evenly.

tree parts

After the split I put the parts back together and gave each part a different wind speed.
I think the result is really impressive.

tree parts final2

To make the tree fit into the background, I created a rim color mask for all parts. With the wind shader it is possible to transfer the light color of the scene onto the tree rim and it looks as if light is shining through the rim. Very cool!

tree mask

Because the tree sometimes loses a few leaves, we definitely had to have a particle effect here.

tree particle

The end result is highly impressive, right?

tree final

That's how I make trees dancing in Sons of Valhalla! If you haven't already, please add SoV to your wishlist. I'd really appreciate your support!

See you in the next dev blog episode!

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.