Completed Collision Link Draw Order Fix

Punkline

Dr. Frankenstack
Premium
Joined
May 15, 2015
Messages
355
#1
UnclePunch UnclePunch requested a code that allows both collision bubbles and stage collision links to be displayed at the same time without graphical errors. This code moves the call used to draw collision links to a point before the player GObjs are drawn, avoiding a bug that causes overlay drawings to become occluded by the stage:




Collision Link Draw Order Fix
Install this with the latest version of Melee Code Manager
Code:
-==-

Collision Link Draw Order Fix
DBG mode stage collision geometry no longer occludes hitboxes
[Punkline]
NTSC 1.02 --- 8005a2ec ---- 4bfffb75 -> 60000000
------------- 80030288 ---- 881f0000 -> Branch
bl 0x80030A78
2C030000 41820008
bl 0x80059e60
881F0000 00000000
You may install this with the latest version of Melee Code Manager
Code:
-==-
ASM - Collision Link Draw Order Fix
DBG mode stage collision geometry no longer occludes hitboxes
[Punkline]
NTSC 1.02 --- 8005a2ec ---- 4bfffb75 -> 60000000
# disables default post-process call
------------- 80030288 ---- 881f0000 -> Branch
bl 0x80030A78
cmpwi r3, 0
beq- _return
# checks for collision link display flag

  _if_drawing_stage_collisions:
  bl 0x80059e60
  # moves post-process drawing call to before player draw
  # causes geometry to be drawn on black/white screen, if enabled simultaneously

_return:
lbz    r0, 0 (r31)
.long 0
Code:
$Collision Link Draw Order Fix [Punkline]
0405a2ec 60000000
C2030288 00000005
3C608045 88633001
7C602120 40BB0014
3C008005 60009E60
7C0803A6 4E800021
881F0000 00000000

---


Works well with the simple stage geometry code and the isolated ECB display code.
 
Last edited:
Top