Advertisement
DSX8

SmashU light_set_param research (WIP)

May 7th, 2016
1,372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.32 KB | None | 0 0
  1. Stage Light_Set_Param Research
  2. note: to get ur colors, please divide your RGB value's by 255 to get the decimals.
  3.  
  4. First documented by: Demonslayerx8
  5. Helped by: SeanHicksART, RayTwo, BJT, Kangaroogreen, and Dr. HyperCake.
  6.  
  7. --------------------------------------------------------------------------------------------------------------------------------------
  8. Group[1] - Misc Stuff (Documented by DSX8 and SeanHicksArt)
  9. k00 - Enable lighting in Group[2] /Disable to use light.bin in "Animations"
  10. k01 - ??
  11. k02 - ??
  12. k03 - ??
  13. k04 - Enable/Disable Shadow System (flag)
  14. k05 - ??
  15. k06 - ??
  16.  
  17. Lighting - Fresnel Hemisphere Lighting
  18. k07 - Enable/Disable Fresnel Lighting (flag)
  19. k08 - Fresnel Sky Hue Color
  20. k09 - Fresnel Sky Color Saturation
  21. k10 - Fresnel Sky Color Value/Brightness
  22. k11 - Fresnel Ground Hue Color
  23. k12 - Fresnel Ground Color Saturation
  24. k13 - Fresnel Ground Color Value/Brightness
  25. k14 - Fresnel Sky angle (Affects character shadow position)
  26. k15 - Fresnel Ground Angle (Affects character shadow position)
  27. k16 - ???
  28.  
  29. Char/Stage Shadow System
  30. k17 - Character Shadow Verticle Angle
  31. k18 - Character Shadow Saturation
  32. k19 - Character Shadow Value/Brightness
  33. k20 - Enable/Disable Stage Shadow Casting/Char Self Shadowing (flag)
  34. k21 - Shadow Hue Color
  35. k22 - Shadow Color Saturation
  36. k23 - Shadow Color Value/Brightness
  37. k24 - ?? (flag)
  38. k25 - ??
  39. k26 - ??
  40.  
  41. Character Diffuse & Ambient Lighting
  42. k27 - Lighting Strength??
  43. k28 - ??
  44. k29 - Diffuse Hue Color
  45. k30 - Diffuse Saturation
  46. k31 - Diffuse Value/Brightness
  47. k32 - ??
  48. k33 - Ambient Hue Color
  49. k34 - Ambient Saturation
  50. k35 - Ambient Value/Brightness
  51.  
  52. Unknown Data
  53. k36 to k38 - ??
  54. k39 to k41 - ??
  55. k42 to k44 - ??
  56. k45 to k47 - Affects Specular Color when zooming in
  57. k48 to k50 - ??
  58. k51 to k53 - Affects Diffuse(?) Color when zooming in
  59. k54 to k56 - Affects Diffuse(?) Color when zooming in
  60. k57 to k59 - Affects Specular Color when zooming out
  61. k60 to k62 - ??
  62. k63 to k65 - Affects Diffuse Color when zooming out
  63. k66 to k68 - ??
  64. k69 - ?? (only 8-9 stages with different value)
  65. k70 - ?? (only 8-9 stages with different value)
  66. k71 - ?? (always 0.0001)
  67. k72 - ?? (always 0.0001)
  68. k73 - nulled
  69. k74 - nulled
  70.  
  71. --------------------------------------------------------------------------------------------------------------------------------------
  72. Group[2] - Lighting Data (Documented by DSX8 and Dr. HyperCake)
  73. Based on: Miiverse Light_set_param (its different for each stage)
  74. Notes: For XYZ Rotation Value's, only value's up to 180
  75. X: Lighting from above uses Negative value's, Lighting from Under uses Positive value's.
  76. Y: Lighting from Right uses Positive Value's, Lighting from Left uses Negative value's.
  77. Z: Negative value's shifts to the Right, Positive value's shifts to the Left.
  78.  
  79. Entry[0] - Character Lightset 0-1
  80. k0 - ??
  81. k1 - Enable/Disable
  82. k2 - Hue Color Selector
  83. k3 - Color Saturation
  84. k4 - Color Value/Brightness
  85. k5 - X Angle
  86. k6 - Y Angle
  87. k7 - Z Angle
  88.  
  89. Entry[1] - Character Lightset 0-2
  90. k0 - ??
  91. k1 - Enable/Disable
  92. k2 - Hue Color Selector
  93. k3 - Color Saturation
  94. k4 - Color Value/Brightness
  95. k5 - X Angle
  96. k6 - Y Angle
  97. k7 - Z Angle
  98.  
  99. Entry[2] - Character Lightset 0-3
  100. k0 - ??
  101. k1 - Enable/Disable
  102. k2 - Hue Color Selector
  103. k3 - Color Saturation
  104. k4 - Color Value/Brightness
  105. k5 - X Angle
  106. k6 - Y Angle
  107. k7 - Z Angle
  108.  
  109. Entry[3] - Character Lightset 0-4
  110. k0 - ??
  111. k1 - Enable/Disable
  112. k2 - Hue Color Selector
  113. k3 - Color Saturation
  114. k4 - Color Value/Brightness
  115. k5 - X Angle
  116. k6 - Y Angle
  117. k7 - Z Angle
  118.  
  119. Entry[4] - Stage Lightset 0-1
  120. k0 - ??
  121. k1 - Enable/Disable
  122. k2 - Hue Color Selector
  123. k3 - Color Saturation
  124. k4 - Color Value/Brightness
  125. k5 - X Angle
  126. k6 - Y Angle
  127. k7 - Z Angle
  128.  
  129. Entry[5] - Stage Lightset 0-2
  130. k0 - ??
  131. k1 - Enable/Disable
  132. k2 - Hue Color Selector
  133. k3 - Color Saturation
  134. k4 - Color Value/Brightness
  135. k5 - X Angle
  136. k6 - Y Angle
  137. k7 - Z Angle
  138.  
  139. Entry[6] - Stage Lightset 0-3
  140. k0 - ??
  141. k1 - Enable/Disable
  142. k2 - Hue Color Selector
  143. k3 - Color Saturation
  144. k4 - Color Value/Brightness
  145. k5 - X Angle
  146. k6 - Y Angle
  147. k7 - Z Angle
  148.  
  149. Entry[7] - Stage Lightset 0-4
  150. k0 - ??
  151. k1 - Enable/Disable
  152. k2 - Hue Color Selector
  153. k3 - Color Saturation
  154. k4 - Color Value/Brightness
  155. k5 - X Angle
  156. k6 - Y Angle
  157. k7 - Z Angle
  158.  
  159. Repeats for each 4 entries, adding up to 16 stage lightsets
  160.  
  161. --------------------------------------------------------------------------------------------------------------------------------------
  162. Group[3] - Fog data (Documented by DSX8 and KillzXGaming)
  163. NOTE: Note! Entries 1-16 control some sort of object prioty. Possibly hard coded to specific stage models. Entry 1 can still control the main fog intensity and brightness. If a stage appears to have no fog, it may have a very low intensity or brightness value.
  164. NU_FogParam can control the intensity of a specific object aswell. these are controlled by the second value. Higher values increase fog, lower decrease.
  165.  
  166. entry[0] - Character Fog
  167. k0 - Hue color selector
  168. k1 - Color Saturation
  169. k2 - Fog Value/Brightness
  170.  
  171. entry[1] - Stage Fog1
  172. k0 - Hue color selector
  173. k1 - Color Saturation
  174. k2 - Fog Value/Brightness
  175.  
  176. Repeats for each entry, adding up to 16 stage Fog
  177.  
  178. --------------------------------------------------------------------------------------------------------------------------------------
  179. Group[4] - Unknown
  180. entry0 to 3 - unknown (Bridge of Eldin and Suzaku Castle has different data)
  181. k0 - 1
  182. k1 - 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement