DevBlog #1
Author: info,
published 4 years ago,
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.
[b]First of all, I needed a tree like this one:[/b]
[img]https://clan.cloudflare.steamstatic.com/images//38733779/68e37ff0d623c8f03af54d4e7066152be8e601c4.jpg[/img]
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.
[img]https://clan.cloudflare.steamstatic.com/images//38733779/5541470d4c21c2d317b1675289af625a121676c7.gif[/img]
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.
[img]https://clan.cloudflare.steamstatic.com/images//38733779/a705176164c9e5762c6fbc23d69dc3ef4a969274.jpg[/img]
After the split I put the parts back together and gave each part a different wind speed.
I think the result is really impressive.
[img]https://clan.cloudflare.steamstatic.com/images//38733779/597ed9da6e914dc3c0f9cc73bbecd7e128e2c84f.gif[/img]
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!
[img]https://clan.cloudflare.steamstatic.com/images//38733779/68ae8b48c2aaeb3cdb53f1ca5e37220e62791f7b.jpg[/img]
Because the tree sometimes loses a few leaves, we definitely had to have a particle effect here.
[img]https://clan.cloudflare.steamstatic.com/images//38733779/67913c1b12b030347ac864a16afe679858456d15.jpg[/img]
The end result is highly impressive, right?
[img]https://clan.cloudflare.steamstatic.com/images//38733779/622e85d507369cc4a44f76002db693d0e9f795e6.gif[/img]
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!