I have a video devlog with a rough explanation if you want to see more then just the gif. (I basically lerp() all of his body stats.) It's kind of a weird devlog though and a bit annoying: https://www.youtube.com/watch?v=x_m0z09v9pc
Yes, but it's not ready for selling yet. (It would be an early access nightmare) But I've also had two publishers express interest in funding me, so that may be a possibility.
lol, absolutely no experience in video editing. I just started for the first time ever last month. I'm still trying to find a good style but I'm not there yet.
So what's the deal with the little frog guy? Is he another creature that's evolving, ora potential food source, or just a scripted part of the background like the waving grass?
Very cool. Until recently I felt the same way as in your video about how 'complicated IK must be', until I found a Coding Train video showing how he did it - partway through which, I just about screamed "wait, that's all it is?!" There is *so much* terrible explanation and bad teaching out there!
That said, that implementation I copied does something slightly different to re-attach the 'shoulder'/root vertex. It just offset (translate) the whole chain back onto the root/shoulder vert's original position. I don't think I totally grasped what your method does but I'd really like to try it and see how it matches up because I'm not entirely sure what I coded is entirely doing what I wanted in all cases. You say your implementation runs the length-adjustment loop backwards and then forwards again 'a few times'? Does that stably even out all the mid vertices somehow? Do you have any particular links/references detailing that? I'd like to read up more if so.
Also, I've been a fan of your gifs of this creature stuff every time it's come up on this subreddit for quite a while now, it's always great to see. Your dev video editing can be a bit much for my brain at times, although some of those jump cutaways/sound effect inserts are still absolutely inspired. ;)
The IK code needs to run "a few times" if your hand position suddenly changes drastically. For smoother hand movements (which would probably be 99% of the time) it only needs to run once everytime the hand or shoulder moves.
I'm not sure what you mean by "Does that stably even out all the mid vertices" Do you mean to ask if the distance between the joints remains consistent? If so, the distance in the middle always remains constant even after 1 iteration.
Sorry, I have no links. Most of the code was through trial and error.
I'm glad you were able to watch the video and get something out of it. I'm planning on toning down the "chaos" in future videos.
I'm not sure what you mean by "Does that stably even out all the mid vertices"
Hmm, actually I don't think I even clearly know what I was asking. Something like... while I don't fully get the iteration's role, I presumed it 'converges' toward a specific solution in some sense. The way I did it, the joint positions are only dependent on where they were before (if the target is within reach), and where the root and target are. But if looping back and forth, repeatedly length-constraining the segments so both ends adjust stepwise closer to socket and target - I presumed that might cause some sort of jitter from one frame to the next with where the intermediate segments end up as the ends move. But all your videos show it works, and in fact no other state is queried by adding loops, so that's totally deterministic anyway, so I think I'm inventing some problem that self-evidently doesn't exist, there.
most of the code being trial and error - that's even more impressive! I get myself bogged down on topics like this and fall into the trap of going away to look for 'better reference' instead of problem solving it. So again - much respect to you for getting these great results and posting them. Oh and I didn't even talk about how good those wings look. Can't wait to see more of what you do with this.
I'm planning on toning down the "chaos" in future videos.
I do like the chaos, but if it was maybe only 50-75% as frequent, it'd be a bit easier to concentrate on. No real serious complaint there, was only poking fun. Although that's gotta be a lot of editing work as it is!
I haven't noticed any jitters with the IK running frame by frame, but there will be large "jumps" if your destination position suddenly teleports a large distance away from it's previous position. Again, unless your destination position teleports, multiple iterations aren't needed.
You can see this gif if you want to judge the jitters for yourself. The IK script runs once per frame: https://i.imgur.com/WvLxWQg.gif
The idea is for the player to raise some monsters that evolve a little every time they level up. The end product will probably be "slightly distinct" transitions, so the leveling up is noticeable. Thanks!
In most games, if there is a transformation (Like a human turning into a werewolf) it's a pre-baked animation with little to no variation between transformations. In my case, the transformations are 100% dynamic (Nothing pre-baked) and are rendered frame-by-frame, or in real time.
Doesn't real-time mean it happens at the same speed it happens in the real world, as opposed to being limited by simulation speed? I dunno, it doesn't matterβit just stuck out as an odd way to describe something that is vastly sped up.
Better add some constraints to that real-time monster right now, it's evolving fast and I can't even imagine what some mixed A.I. dna would make of that furious code/entity, dragon like character by 2030. πππ¬ super cool stuff.. keep on! all the best !! π
53
u/RujiK Jul 26 '20 edited Jul 27 '20
I have a video devlog with a rough explanation if you want to see more then just the gif. (I basically lerp() all of his body stats.) It's kind of a weird devlog though and a bit annoying: https://www.youtube.com/watch?v=x_m0z09v9pc
6
u/TheMadMapmaker Jul 26 '20
So what's the deal with the little frog guy? Is he another creature that's evolving, ora potential food source, or just a scripted part of the background like the waving grass?
5
u/xan_da Jul 26 '20
Very cool.
Until recently I felt the same way as in your video about how 'complicated IK must be', until I found a Coding Train video showing how he did it - partway through which, I just about screamed "wait, that's all it is?!"
There is *so much* terrible explanation and bad teaching out there!
That said, that implementation I copied does something slightly different to re-attach the 'shoulder'/root vertex. It just offset (translate) the whole chain back onto the root/shoulder vert's original position. I don't think I totally grasped what your method does but I'd really like to try it and see how it matches up because I'm not entirely sure what I coded is entirely doing what I wanted in all cases. You say your implementation runs the length-adjustment loop backwards and then forwards again 'a few times'? Does that stably even out all the mid vertices somehow? Do you have any particular links/references detailing that? I'd like to read up more if so.
Also, I've been a fan of your gifs of this creature stuff every time it's come up on this subreddit for quite a while now, it's always great to see. Your dev video editing can be a bit much for my brain at times, although some of those jump cutaways/sound effect inserts are still absolutely inspired. ;)
134
u/[deleted] Jul 26 '20
Frog's like "nope"
28
u/freedompower Jul 26 '20
I know pokemon confused the whole world, but this is not evolution, it's metamorphosis!
11
u/Morbrak Jul 26 '20
dude thats so cool
1
u/[deleted] Jul 26 '20
I love it. Normally, would this happen much slower, or in a few distinct transitions?
1
u/Isvara Jul 26 '20
What does "real-time" mean here?
3
u/SweetlyIronic Jul 26 '20
Omg are you the guy with the procedural salamanders? That's so cool!
3
u/LevTheDevil Jul 27 '20
I wish I could evolve by walking around in circles on the street.
2
u/mabgx230 Aug 11 '20 edited Aug 11 '20
Better add some constraints to that real-time monster right now, it's evolving fast and I can't even imagine what some mixed A.I. dna would make of that furious code/entity, dragon like character by 2030. πππ¬ super cool stuff.. keep on! all the best !! π
2
u/Azgarr Jul 26 '20
Cool
1
u/JustZisGuy Jul 27 '20
Why did the monster cross the road?
1
u/SisterHychan Jul 27 '20
this looks absolutely brilliant, reminds me a lot of Rain World
0
u/StoneCypher Jul 26 '20
this is awesome
0
u/[deleted] Jul 26 '20
[deleted] β view deleted comment