dragonbane

Mitmap stuff

May 29th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. check:
  2.  
  3. daAlink_c::setWindSpeed(void) for rupee slide
  4.  
  5. setSwordAtCollision for no recoil
  6. checkNoCollisionCorret for no recoil
  7. crash for no recoil
  8. daAlink_c::checkSwordTwirlAction(void)
  9. daAlink_c::procSwordPush
  10. Z2CreatureLink::startLinkSwordSound
  11.  
  12. cancelBoomerangLock(fopAc_ac_c *) for gale bug
  13. checkBoomerangAnimeAndReturnWait
  14. checkNextActionBoomerang(void)
  15. daPy_boomerangMove_c::bgCheckAfterOffset(cXyz const *)
  16. daPy_py_c::cancelBoomerangLockActor(fopAc_ac_c *)
  17.  
  18.  
  19.  
  20.  
  21. Section starting at 80h: Mitmap offset table
  22.  
  23. Section+0: Offset from start of main pic to end = repeat of main image size (4 bytes)
  24. Section+4: Offset from start of mitmap data section to 2nd mitmap (4 bytes) (Mitmaps are stored biggest-to-smallest)
  25. Section+8: Offset from start of mitmap data section to 3rd mitmap etc. (4 bytes)
  26.  
  27. Size of mitmap 1 = offsetMitmap2
  28. Size of mitmap 2 = offsetMitmap3 - offsetMitmap2
  29. Size of final mitmap11 = mitmapSectionSize - offsetMitmap11
  30.  
  31. First mitmap has a resolution that is floored down to the next power of 2 on both axis from the original image resolution. E.g. the main image has a resolution of 2432x1792, the first mitmap would be 2048x1024 big
  32.  
  33. Further mitmaps are just halved normally (1024x512, 512x256, 256x128, 128x64, 64x32, 32x16, 16x8, 8x4, 4x2, 2x1)
  34.  
  35. biggest bitmap is 2097152 = 2048x1024
  36. biggest bitmap is 524288 = 1024x512
  37. second bitmap should be (512x256 = 524288 bytes
  38.  
  39.  
  40. 2 ^ (Mitmap count - 1) = biggest mitmap width (height = width/2)
  41.  
  42.  
  43. TP HD Logo uses 2048x1024.dds
Add Comment
Please, Sign In to add comment