Using Open Reality SDK, the class HFBCamera members Near and Far are not Animatable even the UI allow to Animate them
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
My names is Alain Guyet, CTO at Asobo Studio France, working a AAA titles as MSFS 2020 and The Plague Tale.
I want to export Near & Far HFBCamera members, this work, but i can't find a way to export them if they are animated.
In the header there's a back comp comment (inserted below), and i didn't succeed to retrieve animated Near&Far Node and Curve.
////////////////WARNING////////////////////////////////////
BACK-COMP implementation:
The proper implementation is to change UseDepthOfField from
FBPropertyBool to FBPropertyAnimatableBool. This breaks
backward compatibility and should only be done for major releases
////////////////WARNING////////////////////////////////////
void GetAnimatableFarPlane(FBPropertyAnimatableDouble *pProp);
void GetAnimatableNearPlane(FBPropertyAnimatableDouble *pProp);
So, i try to use this (code below), to find the FBPropertyFCurve that should contain all keyframed Near or Far values, but the GetAnimatedNode is null.
FBPropertyAnimatableDouble nearPlaneAnimatable;
pCamera->GetAnimatableFarPlane(&nearPlaneAnimatable);
if(nearPlaneAnimatable.GetAnimationNode()!=NULL)
{
FBPropertyFCurve &curve=nearPlaneAnimatable.GetAnimationNode()->FCurve;
}
So could you help me ? Maybe there's another way i didn't find, i think the SDK didn't match the MotionBuilder 2019, so if it's the case a code sample will be appreciated.
Thanks a lot!