Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: overlap  (Read 1105 times)

0 Members and 1 Guest are viewing this topic.

Timmm

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
overlap
« 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
 :D

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
AW: overlap
« Reply #1 on: February 28, 2013, 12:41:42 am »
Sorry I don't understand your problem... :-
Can you try to describe it in a different way?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Timmm

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Re: overlap
« Reply #2 on: February 28, 2013, 03:48:12 pm »
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.
 :)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: overlap
« Reply #3 on: February 28, 2013, 03:54:10 pm »
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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything