Out of reach

Hi guys, it's been a while. After a bit of a break from 3d, I decided to make something for the Kinetic Rush challenge. It is heavily inspired by the game Rayman Legends - love the game and its style, so I wanted to try and replicate it in Blender with 3d objects, trying to learn in the process. Dino is based on a cardboard box next to my PC. In case someone finds it useful - I'll just dump my process below, since it took some head scratching, and it still feels incomplete - I would welcome ideas for improvement.

PeterM - Kinetic Rush - Out of Reach.mp4PeterM - Kinetic Rush - Out of Reach - clay.mp4

The grass consists of tufts - stretched icosphere with a hair particle system, that is then distributed on the ground with geo nodes aligning the tufts to the faces of the ground.

For the tree leaves - I use a simple object onto which I distribute leaves with geo nodes (and hide the object), then align the leaves to the camera (for the closeup tree, I skip the alignment). As a simple object, I chose good old Suzanne for a more scruffy look. To get a depth layering effect, I use a geo nodes setup which stores in an attribute the distance of the leave inside the simple object, in the direction of an empty (initially I used the camera, but this gives inconsistent results due to the movement, leading to flickering) - effectively creating a depth gradient from 0 to 1 (normalizing the value still seems to have some issues with distance). I then use this in the material to create three layers of lightness. After this, I placed a bunch of these simple objects in the rough shape of a tree crown. Since the leaves are aligned to the camera, and in my case the sun is on the right, the leaves don't get proper lighting - as a workaround, I added lights to highlight selected parts.

For the bushes, since they were an object containing multiple mesh islands (the leaves) - skipping the distribution part, I just store the depth attribute per mesh island, then using it in the same way in the material.

In retrospect, I definitely have some issues with the color choices and the materials of the bark and stones, should have joined the Suzanne heads beforehand to get a proper depth attribute, and the grass looks odd when viewed from the top - but on the overall it seems to be on the right track.

A couple of useful links for the geo nodes setups:

https://blender.stackexchange.com/questions/287204/geometry-nodes-align-instance-object-to-face-orientation-rotate-normal-to-lon

https://blender.stackexchange.com/questions/287018/how-is-the-position-of-a-mesh-island-calculated-in-geometry-nodes

https://www.youtube.com/watch?v=6ELlKe8otn8