Is there a way to render both models and sprites? (SOLVED)

Hi,
Can someone help me with getting these work:

  1. Perspective Camera
  2. animated 2D sprites
  3. 3D models.
    I checked this example https://github.com/Lerg/TankVsMeteors and it was good til i discovered its not rendering sprites with such render setup.
    Thanks in advance

You have to include the sprite render predicates. This script for example has rendering sprites integrated into the 3d scene. It has sprite materials with a different tag.

Study the render_script in the builtins folder and you can add orthographic sprites on top of everything too if that’s what you want. If you want 3d models on top of 2d orthographic sprites then you render the sprite predicate tag first and the model predicate after.

3 Likes

Thanks a lot mate, i’ll look into this stuff.