Page 1 of 1

HOW IT WORKS?

Posted: Wed Apr 10, 2002 3:51 am
by nad
Can anyone tell me how the tile engine in exult works?
I'd like to know how we make to draw the tiles in the correct order, for instance a column must be drawn over the avatar is this one is behind.

Or colum tiles must be over floor tiles...
What is the algorithm used?
Some kind of z buffer?


thanks a lot for your help!

yes

Posted: Wed Apr 10, 2002 3:55 am
by man
you are right!
i'd like to know too!

Please answer this post asap!

Re: yes

Posted: Wed Apr 10, 2002 4:25 am
by wjp
Funny... two posts from the same IP range on the same topic within 4 minutes of eachother written in the same style. What a coincidence... *cough*


Anyway, to summarize: we're not using a z-buffer, but we're sorting the shapes based on a very complex shape compare function.

only a joke

Posted: Wed Apr 10, 2002 4:34 am
by nad
yes i am confuse...;-)
Just a joke and to (sorry) help people think it is a VERY interesting subject ;-) ;-) ;-)

next time i'll change of computer...no i'll won't do that again...
And sorry for my style but i am french and i 'am trying to do my best to communicate in the shakespeare's language ;-)

Can you tell me a bit more about this sort function, what's the name of the source file please...

thank you

Re: only a joke

Posted: Wed Apr 10, 2002 4:42 am
by wjp
> Just a joke and to (sorry) help people think it is a VERY interesting subject ;-) ;-) ;-)

We already think exult is a VERY interesting subject :-)

> And sorry for my style but i am french

There's nothing wrong with your english. I was just pointing out that the writing style was the same in the two messages. :-)


> Can you tell me a bit more about this sort function, what's the name of the source file please...

It's in objs/objs.cc. The function is Game_object::lt

thanks!

Posted: Wed Apr 10, 2002 4:46 am
by nad
yes exult is a very interesting project...
I am an ultima 7 fan and I hate u8...beurrrrrk

I am making a rpg too with sdl and fmod for music.
i am looking for the faster tiles rendering algorithm...

Where do you come from?
USA?

Re: thanks!

Posted: Wed Apr 10, 2002 4:53 am
by wjp
I'm from the Netherlands.

yo

Posted: Wed Apr 10, 2002 5:18 am
by nad
thanks for your help!

i 've found the order function you've told me...

This function seems to compare two objects...
Do you apply it to every objets in the scene to be drawn?
It means you'll have to make a lot of comparisons if you compare objects two by two , no?

hou hou

Posted: Wed Apr 10, 2002 5:57 am
by nad
he wjp from this magnific country netherlands, where are you?

Re: hou hou

Posted: Wed Apr 10, 2002 8:26 am
by drcode
Generally, only objects within a chunk (16x16 tiles) are compared with each other, or sometimes with objects in an adjacent chunk. Also, objects don't need to be compared if they're images don't overlap, since it then doesn't matter which is drawn first.