SFML community forums
Help => Graphics => Topic started by: Timmm on February 27, 2013, 11:46:12 pm
-
My problem is that I have merere images and when rendering always overlap. That's true, but how do I get it out, which now overlaps that. The images are to be created as a Particelsystem.
Hope you can help me.
It should look like in this video:
http://www.youtube.com/watch?v=EaweXTjpQJY #t=7m30s (http://www.youtube.com/watch?v=EaweXTjpQJY #t=7m30s)
:D
-
Sorry I don't understand your problem... :-
Can you try to describe it in a different way?
-
An image that should actually stand behind another is rendered before it.
I want to know how I find out in which order I should render the images.
:)
-
Images are displayed in the order they're drawn. Thus if you want image1 to be infront of image2 then you'll have to draw image1 first and then image2.
How you'll be keeping track of the ordering is a problem, which can be solved in many, many different ways. A 'general' soltuion is to give every object a certain z-value and sort the objects after that value.