zhad3 / zrenderer

A renderer for Ragnarok Online sprites

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Garment rendered wrong in front of body in some frames

alisonrag opened this issue · comments

this seems to happen in the following actions: 0 (idle), 16(sit), 72(freeze2)
request example:

{
    "job": ["4063"],
    "action": 16,
    "head": 21,
    "headPalette": 6,
    "headgear": [1985,1309,572],
    "gender": 0,
    "garment": 48,
    "bodyPalette": 3
}

result:
idle

sit

commented

Thank your for reporting, I was able to reproduce this. The cause seems to lie in the depth sorting when an animated headgear is in use.

commented

Actions such as Freeze need to be special treated e.g. by using only the first frame ignoring all headgears. There are probably some other actions that also only have 1 frame. That is something I'll look at some point.

Fixed at:
idle (0~7) and sit (16~23)

idle
sit

commented

Created a follow-up ticket here: #18