Been fiddling with some designs. Left is the first draft, right is the second. Top image shows what it looks like when you mouse over and bottom image is what it looks like when you mouse out. Ended up leaving the first one behind because it felt kinda weird having three rows of text just for one image when there can be hundreds of images…
Progress 2. Been trying to rapid prototype and see what looks good. Had to abandon the first design because the fade covered part of the camo/skin image and it didn’t show what gun the skin/camo was for. Apart from some contrast issues with yellow and green, I think it looks okay now.
Ended up going through 5 drafts. Fading in looks really cool for some camos but it clashes with most. Look at the bottom 3 camos of any draft for instance. Not only does it clash for some of them, it obscures the texture itself. Ended up going back to 100% flat UI and removed gradients, removed borders, changed the scheme, then added a drop shadow to finish it off.
Definitely worth the 6 hours I spent on 1 button today lol.
Yeah, it’s pretty neat to see R15 animated past the default animations. I’d suggest animations for crouching/crouch walking/taking cover behind barriers/etc if you’re looking for new animations to make. If you’d like feedback on the current animations, the gun should be held more tightly towards the chest in the idle, and there should probably be a little movement of the gun during the walking animation instead of leaving it perfectly anchored in relativity to the torso.
I calculated the x shift and y shift to put the catenary in the right place. To solve for a I then used newtons method.
I assume the part you struggled with was solving for a. To find a you need to use a root solving algorithm, since it doesn’t need to be particularly accurate it was best to use Newtons Method because it’s quick.
However this proved to be a problem because the algorithm is prone to overshooting and returning infinite values with very steep curves because f’(x) = 0. This was because my starting point (the initial guess) was too high, so I made the function recurse, making the intial guess smaller each time until f’(x) ~= 0. There are more efficient ways to do this but I decided to keep it simple.
I’d love to open source it in a month or two once I’ve done something with it since a lot of hours went into it. I’ll let you know when I do.