Source Filmmaker > 一般討論 > 主題細節
raptornx01 2013 年 05 月 20 日 @ 下午 4 時 39 分
Conforming a walking animation to a terrain.
Just wondering if it's possible. Say I spawn a character, and import a walk sequence. generally they just walk in a straight line, but is there a way to make them walk along the terrain? like how when you are using that edit tool thats a circle with a square in it (forget the name.) and you hold shift and the model stays on the ground as you move it.

or is it only possible to do manually.
顯示 1-10,共 10 則回應
< >
Ryan 2013 年 05 月 20 日 @ 下午 5 時 05 分 
There is an easy way to create a character who is walking across terrain. Hit the F11 button to position your character in place. Hit F11 again and click the record button. On the fourth beep, it will start to record.

If you are using an unplayable character, create bookmarks of the character in certain heights of the place, while adding the walking animation
R234 2013 年 05 月 20 日 @ 下午 5 時 33 分 
I don't think that's what Raptor meant. What you want is basically leg IK, right?

Hm... As far as I know, leg IK was used in Half-Life 2, so the engine should be able to handle it, in theory. Whether there's a way to get it working in SFM, I don't know... Seems like getting scripts to recognize the terrain could be difficult, judging by how terrain detection isn't supported by SFMPhys yet.

So, is it possible to make an auto leg IK script for SFM? Not sure, but I would think so. Until some genius comes up with one though, doing it manually is all I can think of.
raptornx01 2013 年 05 月 20 日 @ 下午 5 時 49 分 
well, i'd hoped that since that editor is capable of detecting the terrain that there might be something in there that allowed for it. See if it was just one character i'd just do what Frost suggested, but i'm doing an army walking over uneven terrain. I could just use a flat map, but there are issues with that as well. namely the shots before and after the scene I have in mind, which call for the previously mentioned terrain, not lining up as far as lighting and sky are concerned.
Psi 2013 年 05 月 20 日 @ 下午 6 時 25 分 
would it be possible to just do it manually for one character then use constraints or locks to apply the manual work you've done to the rest of the army?
raptornx01 2013 年 05 月 20 日 @ 下午 6 時 51 分 
Or just copy and paste the animation set. but still uneven terrain and everyone would going up and down at the same times.
Pte Jack 2013 年 05 月 20 日 @ 下午 8 時 17 分 
Wonder if it is possible to use the Move Manipulator (Big Orange Circle with the square inside it) to pull the model across the terrain adding keymarkers as the terrain changes, then add a walk/run sequence between the markers??? (Thought, haven't had a chance to test)
R234 2013 年 05 月 20 日 @ 下午 8 時 41 分 
Oooh, I understood you wrong then.

No, I don't think it's possible to adjust a character's root motion to the terrain. I have a little trick that might cut down on the time it takes to make each individual character's vertical motion though, gimme a sec...


Right. So. If you import a character's run sequence, this is what you get:
The character runs right through the floor.

What you can do to remedy that quickly is use puppeteering on the pelvis joint's "z" axis position. Select it (like in the screenshot) and hold LMB on the blue arrow, then hit space and try your best to follow the ground with the mouse. You can give it a few shots until you're mostly happy with the results:
You also might want to apply some "smooth" filter on that before committing it.

This isn't perfect, but it's fast enough to do it for a bunch of characters, and it looks okay for a crowd seen from not too close.
最後修改者:R234; 2013 年 05 月 20 日 @ 下午 8 時 50 分
raptornx01 2013 年 05 月 20 日 @ 下午 8 時 44 分 
The walk sequence moves on it's own. but, if you are in motion editor hold the manipulator and press play it stops moving, just walks in place. but, you now have to grab it, hold shift, hit play and slide it at the same rate it walks.
Psi 2013 年 05 月 21 日 @ 下午 12 時 12 分 
Well you make an interesting point about SFM being able to distinguish terrains... for that reason i wouldn't be surprised if a script for this could be made. I mean it should only have to be a slight alteration on the way a sequence is applied to the model....

But if it was me, i would probably just do like you said and do it once then copy the animation set. Then with all time selected in the motion editor i'd move the new model over a bit next to the previous one, then do my best to quickly edit the new models motion in the graph editor to make it look better & unique to that model's path over the terrain. Then do that again and again...

I really want to do a Star Wars project next.. that is pretty much how i have figured i'd animate an army of clone troopers. Either that or using locks and the playhead preset to copy over motions.

Best of luck to you with this.
最後修改者:Psi; 2013 年 05 月 21 日 @ 下午 12 時 53 分
raptornx01 2013 年 05 月 21 日 @ 下午 3 時 15 分 
Thanks all for the help. In the end I decided to go the safe route and use a flat map. The reason being after so many models SFM starts to really lag, and it gets harder to animate and manipulate objects. I did a test just to see how well the animations copied over just through c&p (i'm using combine soldiers BTW). and at around 80 I started getting severe slow down. And the fact the final shot will have more then that, not to mention over 100 other models like trees, striders (which are a pain in the ♥♥♥ to animate BTW, especially since the animations included are broken so I had to make them walk manually), apcs, etc.
顯示 1-10,共 10 則回應
< >
每頁: 15 30 50
張貼日期: 2013 年 05 月 20 日 @ 下午 4 時 39 分
回覆: 10