Page 1 of 1

Drawing order

Posted: Wed Nov 14, 2001 8:19 am
by Max aka Moscow Dragon
Is drawing order fine in current Exult?
Have you re-discovered the original one?
Is the ordering code chunk-by-chunk or global?

I did some reverse-engineering of the native U7.EXE from SI/SS - that New Year IIRC (I even have the byte offset in SI/SS EXE of the function which compares the shapes) - and can say that it is based on TFA.DAT only. SHPDIMS.DAT is used only to determine whether the item is visible at all.

Re: Drawing order

Posted: Wed Nov 14, 2001 8:47 am
by drcode
It's not perfect, but it's pretty good. I remember looking at the code you discovered back then, and concluded that it was an implementation of a Zbuffer for culling objects that don't need to be painted. We don't do that, but it doesn't seem to matter (much:-)).

Re: Drawing order

Posted: Wed Nov 14, 2001 9:03 am
by Lord Rat
Except for the wheat mill in Paws . . .

Another very complex places...

Posted: Wed Nov 14, 2001 11:59 am
by Max aka Moscow Dragon
...for drawing order are:
- LB castle. Especially the NE corner tower and nearby trees.
- Empath Abbey.
- Xenkan monastery entrance.
- Shrine of Enthusiasm, the maze.

Re: Another very complex places...

Posted: Wed Nov 14, 2001 12:38 pm
by drcode
The mill has an animation problem, but I think the static drawing order is okay there.

Re: Another very complex places...

Posted: Wed Nov 14, 2001 1:03 pm
by Lord Rat
Rock on.

Re: Another very complex places...

Posted: Thu Nov 15, 2001 5:28 am
by Colourless
What animation problem? Where???? Tell me so I can fix it.

-Colourless Dragon

Re: Another very complex places...

Posted: Thu Nov 15, 2001 7:50 am
by nadir
You must be using an old version. The CVS snapshot doesn't have any problems with the mill in Paws.

Re: Another very complex places...

Posted: Thu Nov 15, 2001 10:30 am
by Lord Rat
I updated my snapshot two days ago, but Ill check again later today.

Re: Another very complex places...

Posted: Thu Nov 15, 2001 10:36 am
by drcode
It could be that I have my FPS set faster than my machine can handle with the Eagle scaler. But it always looks like the mill wheel drops a frame on each iteration. And I think it's always done that, even before Colourless' (<-note the correct spelling) improvements.

Re: Another very complex places...

Posted: Thu Nov 15, 2001 10:44 am
by Lord Rat
So, the animation issue (for thou info, Colourless Avatar)

On the mill in Paws, it will draw the mill, draw the dough (or whatever it is) on top, then draw the mill again, so that the dough flickers quickly for an instant.

I, too have my fps at the highest setting. (And even that feels a bit too slow)