Billboard on quadmeshes not overlaping player
Asked Answered
T

2

0

Hi all! I created a gridmap using some Quadmesh nodes with no collision shape and simple textures to create some trees and grasses for my 3D game. They're billboard, but sometime, depending of their position they don't overlap the player as expected, as you can see on the image below.

Do you have any clue to fix it?

Btw, the player is a 3D Sprite node with billboard enabled (using a capsule as collision shape) , and the Alpha cut enabled as Opaque Pre-pass.

Tetramethyldiarsine answered 9/2, 2022 at 21:28 Comment(0)
D
0

This is a transparency sorting issue. Try changing the player material's Render Priority to be higher (or lower) than the trees'. To customize the player's material on a Sprite3D, you have to specify a Material Override in the GeometryInstance section in the Sprite3D inspector.

Dalmatic answered 10/2, 2022 at 22:37 Comment(0)
T
0

I have to try it. Thanks @Calinou

Tetramethyldiarsine answered 11/2, 2022 at 1:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.