Drawing order
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Drawing order
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.
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
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:-)).
Another very complex places...
...for drawing order are:
- LB castle. Especially the NE corner tower and nearby trees.
- Empath Abbey.
- Xenkan monastery entrance.
- Shrine of Enthusiasm, the maze.
- 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...
The mill has an animation problem, but I think the static drawing order is okay there.
-
- Site Admin
- Posts: 731
- Joined: Thu May 14, 2020 1:34 pm
Re: Another very complex places...
What animation problem? Where???? Tell me so I can fix it.
-Colourless Dragon
-Colourless Dragon
Re: Another very complex places...
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...
I updated my snapshot two days ago, but Ill check again later today.
Re: Another very complex places...
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...
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)
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)