Drawing order

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
Max aka Moscow Dragon

Drawing order

Post 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.
drcode
Site Admin
Posts: 2267
Joined: Thu May 14, 2020 1:34 pm

Re: Drawing order

Post 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:-)).
Lord Rat

Re: Drawing order

Post by Lord Rat »

Except for the wheat mill in Paws . . .
Max aka Moscow Dragon

Another very complex places...

Post 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.
drcode
Site Admin
Posts: 2267
Joined: Thu May 14, 2020 1:34 pm

Re: Another very complex places...

Post by drcode »

The mill has an animation problem, but I think the static drawing order is okay there.
Lord Rat

Re: Another very complex places...

Post by Lord Rat »

Rock on.
Colourless
Site Admin
Posts: 731
Joined: Thu May 14, 2020 1:34 pm

Re: Another very complex places...

Post by Colourless »

What animation problem? Where???? Tell me so I can fix it.

-Colourless Dragon
nadir
Site Admin
Posts: 407
Joined: Thu May 14, 2020 1:34 pm

Re: Another very complex places...

Post by nadir »

You must be using an old version. The CVS snapshot doesn't have any problems with the mill in Paws.
Lord Rat

Re: Another very complex places...

Post by Lord Rat »

I updated my snapshot two days ago, but Ill check again later today.
drcode
Site Admin
Posts: 2267
Joined: Thu May 14, 2020 1:34 pm

Re: Another very complex places...

Post 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.
Lord Rat

Re: Another very complex places...

Post 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)
Locked