-
-
Notifications
You must be signed in to change notification settings - Fork 327
DRAFT PR: adding interpolation to mdl animations #2314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
//interpolation | ||
if (frameAIndex != frameBIndex) | ||
{ | ||
vtkNew<vtkInterpolateDataSetAttributes> interpolator; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vtkNew is a RAII mechanism, which means interpolator is deallocated when you leave the scope, which means the dataset is deleted before you display it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to store the Interpolator as a member of the vtkF3DQuakeMDLImporter so it keeps on living when you leave this method.
Need any help moving forward @The-Lennzer ? |
1 similar comment
Need any help moving forward @The-Lennzer ? |
iPtr->SetInputData(0, frameA); | ||
iPtr->SetInputData(1, frameB); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iPtr->SetInputData(0, frameA); | |
iPtr->SetInputData(1, frameB); | |
iPtr->AddInputData(frameA); | |
iPtr->AddInputData(frameB); |
Need any help moving forward @The-Lennzer ? |
Describe your changes
Changed File:
vtkF3DQuakeMDLImporter.cxx
timeValue
to find two adjacent frames instead of just the previous FramevtkNew<vtkInterpolateDataSetAttributes>
Issue ticket number and link if any
#2138
This is a work-in-progress draft PR to fix issues in interpolation logic