VoidsShadow

Animation Permutation Chain

Aug 12th, 2019
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. num0005
  2. > you know why bungie made rename.txt?
  3. > could they not bother to name their animations?
  4.  
  5. Shelly 🦊
  6. > Is that a bungie file?
  7.  
  8. num0005
  9. > it's a file Tool can read
  10.  
  11. Shelly 🦊
  12. > I never heard of it before you started mentioning it a lot
  13. > huh
  14.  
  15. num0005
  16. > I know they used it in halo 2 cause they gave us logs
  17.  
  18. Shelly 🦊
  19. > Probably because there is so many animations
  20.  
  21. num0005
  22. > but CE has no logs
  23. > it renames the animations
  24. > @MosesofEgypt why do animations that have a name that starts with "%" get like linked together or something
  25.  
  26. MosesofEgypt
  27. > its a permutation
  28. > play this animation, then play this one
  29. > they chain together
  30.  
  31. num0005
  32. > makes sense
  33.  
  34. MosesofEgypt
  35. > you can specify the chance to play
  36.  
  37. num0005
  38. > how does it know which one does with what?
  39. > is the list re-ordered alphabetically or something?
  40.  
  41. MosesofEgypt
  42. > you number them %0, %1, %12312 and it links them all together, averages their weights, and assigns them a skip value based on their relative weight
  43. > so if you had 3 animations, each with a weight of 1, their relative weight in [0, 1] is 0.333333
  44. > on map compile, it calculates a threshold for whether the animation should play or not using the weight
  45. > the first of those animations would have a threshold of 0.33333, the next would be 0.666666, and the last would be 1.0
  46. > it skips through the chain until the [0, 1] number it rolled is at or below that permutations threshold
  47.  
  48. num0005
  49. > I meant the linking
  50. > but I think I understand that now
  51. > you put the % thing at the end of the name right?
  52. > not the start
  53.  
  54. MosesofEgypt
  55. > its just string sorting
  56. > yeah
  57. > pistol idle%0
  58. > they dont have to be contiguous
  59. > pistol idle%1234
Advertisement
Add Comment
Please, Sign In to add comment