PDA

View Full Version : Drawing..



Rojekti
30-09-2007, 11:18 AM
I'll do my best explaining this with my skill of english...


If I do like this;

Draw(sky);
Draw(duck);
Draw(car);

... it should draw sky first, then duck, then car - isn't that so? So the duck and car would be seen ON the sky, and the duck can go BEHIND the car.

But, I notice that it doesn't always work. It draws them quite randomly; sometimes it draws first the duck, then car, then sky, or something.

So, I'm asking; with which principle Asphyre decides when it draws the images? How I can determine when it draws duck and when the sky?

Or is there just something I'm doing terribly wrong :D

arthurprs
30-09-2007, 09:04 PM
But, I notice that it doesn't always work. It draws them quite randomly; sometimes it draws first the duck, then car, then sky, or something.

I never noticed that {im using version 3.1}

wodzu
30-09-2007, 09:07 PM
Hello :)

If you share some code it might help. There should be no random drawing order, it should be as you described at the begining.

arthurprs
30-09-2007, 09:12 PM
Hello :)

If you share some code it might help. There should be no random drawing order, it should be as you described at the begining.

Yes draw order is 99% often defined by the order of the drawing calls

Rojekti
10-10-2007, 06:52 PM
I've been an idiot, sorry. I noticed that I did the drawings in OnTimer instead of OnRender. It works now just fine! Thanks for making sure that it shouldn't be random ;)