How to create Aim Pose?

Hi. I am struggling with Aim Pose. I have my own character and skeleton. I made basic movement but now I am stucked on Aim Poses.
I have already read document about Aim Poses about hundred times. I made 15 frames with poses like it is shown in documentation. I use LowerBack joint for the rotation as a ParameterJoint, and custom middle joint as StartJoint. I use correct AnimToken. Everything seems to be alright. But in documentation there is something called DirectionalBlends.img which I don't have, and I don't know how to create it as my RC doesn't do anything. I wrote some code in C++ but SetTarget method doesn't change anything. Without it my aim pose works in the same way. It reacts for the camera movement, but it seems to make some weird stuff.

Could someone tell me how to properly create Aim Poses? How to create DirectionalBlends.img file? Or maybe something is out of date? This document is already 2 years old.
Cryengine tutorial videos on my Youtube channel! Check it out !

Re: How to create Aim Pose?

Nope it doesn't do anything. Img file does not exist and with this command it stilll does not appear. Documentation about that is out of date, for example I've noticed that there is 9, 15 or 21 frames for the aim/look poses, whereas documentation mentions only 9 and 15.

The hint might be, that console throws warning which says that my aim pose animation does not have compressed file or something like that. Tomorrow I'll edit this post with the complete warning. However my .caf file works in manequin and character tool, so it is compressed. I believe this warning refers to missing img file.
Cryengine tutorial videos on my Youtube channel! Check it out !

Re: How to create Aim Pose?

How do I use blendspace in this case? Could you give me some hint? Cause as far as I can see .bspace's have only travel speed, direction and so on. Can I use bspaces from c++ somehow?

There is that warning I mentioned before:

Code: Select all

[Warning] File contains uncompressed controller data. [File=animations/humanoidanims/aimposes.caf] [Warning] File does not contain any compressed controller data. [File=animations/humanoidanims/aimposes.caf]
It also gives me assert like that :

[Assert] [File=D:/jk/gamesdk_release/Code/CryEngine/CryAnimation/GlobalAnimationHeaderAIM.cpp]
Cryengine tutorial videos on my Youtube channel! Check it out !

Re: How to create Aim Pose?

When you make a fragment you can put the bendspace animation in that layer there. Then you can set walk speed, rotation speed etc using cpp. You probably know these already but Its in the firstpersonshooter templete. I don't think blend spaces can be used for something else. That would be unintended.

Code: Select all

pCharacter->GetISkeletonAnim()->SetDesiredMotionParam(eMotionParamID_TravelSpeed, travelSpeed, 0.f); m_pAnimationContext->state.Set(m_walkTagId, travelSpeed > 0.2f && m_pPlayer->GetMovement()->IsOnGround());
Looks like you have a problem with your aimpose file. Warnings might be disregarded?, not sure really, but assert means something failed.

Still I would suggest to do what mknmknmknjk said, it might work in game. There is so much going on in that function.

Who is online

Users browsing this forum: edmanjo and 1 guest