University of Southern CaliforniaUSC
USC ICT TwitterUSC ICT FacebookUSC ICT YouTube

BML Commands locomotion speed | General SmartBody Discussion | Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
BML Commands locomotion speed
July 23, 2017
6:33 pm
Avatar
Member
Members
Forum Posts: 6
Member Since:
July 23, 2017
sp_UserOfflineSmall Offline

Hello,

I want to change the speed a virtual human walks, and runs but when I put some value bigger than 0 in speed

of BML Commands window, it does not work. The VH does nothing.

I'd appreciate your help with this. Thanks.

July 24, 2017
9:10 am
Avatar
Admin
Forum Posts: 981
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

If you want to use the locomotion interface:

 

<locomotion speed="5" target="0 10"/>

Make sure that the target is within the steering grid (View->Steer->All steering for visualization) and you can change the grid in Services->Steering, just make sure to disable/then enable the service to reset it with new parameters).

Alternatively, you can call the blend directly and control the steering yourself

<blend name="mocapLocomotion" x="5" y="0" z="0"/>

where x is the forward velocity, y is the rotation in degrees, z is the sidestepping amount. If you call the blend directly, you don't have to worry about the steering space at all.

Ari

July 25, 2017
12:55 am
Avatar
Member
Members
Forum Posts: 6
Member Since:
July 23, 2017
sp_UserOfflineSmall Offline

Thank you!

By the way, is it possible to make my own animations for Virtual Humans??

Such as Sit and Lie.

July 25, 2017
8:47 am
Avatar
Admin
Forum Posts: 981
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

fastasleep said
Thank you!
By the way, is it possible to make my own animations for Virtual Humans??

Such as Sit and Lie.  

You can record or acquire your animations from any source. If the animations aren't made with the exact skeleton, you can use SmartBody to do an online retargeting (see manual). 

 

Ari

July 25, 2017
9:22 pm
Avatar
Member
Members
Forum Posts: 6
Member Since:
July 23, 2017
sp_UserOfflineSmall Offline

I just tried the command below in Unity3D,

string command = string.Format (@"bml.execBML('{0}', '<blend name=""mocapLocomotion"" x=""{1}"" y=""{2}"" z=""{3}""/>')", character, forwardvel, angle, sidestep);

and it says "can't find state name mocapLocomotion" and sets it to PseudoIdle.

Could you please tell me how to add 'mocapLocomotion' state inside the project?

September 17, 2017
8:31 am
Avatar
Admin
Forum Posts: 981
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

The animation blend probably isn't named mocapLocomotion. Perhaps the name is bradLocomotion? I'm assuming that you are using the VHToolkit - they use a different naming scheme. You can get a list of the blend names like this:

 

blendNames = scene.getBlendManager().getBlendNames()

Ari

October 6, 2017
7:56 pm
Avatar
New Member
Members
Forum Posts: 2
Member Since:
October 6, 2017
sp_UserOfflineSmall Offline
Awaiting Moderation

Forum Timezone: America/Los_Angeles

Top Posters:

jwwalker: 80

jyambao: 51

rbaral: 47

adiaz: 30

WargnierP: 29

lucky7456969: 28

mbarros: 28

avida.matt: 26

JonathanW: 24

laguerre: 23

Member Stats:

Guest Posters: 66

Members: 73502

Moderators: 3

Admins: 4

Forum Stats:

Groups: 1

Forums: 5

Topics: 439

Posts: 2365