Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Mixing z-buffer and spritebatch to simulate 3d behaviour

$
0
0

@Eversor wrote:

Hello everyone,
is there any standard way i can add a "z-buffer" channel to a spritebatch.draw so that it's sampled value is added to the z-buffer?

This way i could simulate "vertical" objects in a "horizontal" top-down view without the need to use 3d camera and quads.
Of course i cannot use a simple sorting algorithm because
lower ground needs to be at Z=1,
vertical object needs to be at Z=2,
higher ground needs to be at Z=3.

Posts: 5

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles