-
-
Notifications
You must be signed in to change notification settings - Fork 365
DRAFT PR: adding interpolation to QuakeMDL animations with vtkInterpolateDataSe… #2775
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?
DRAFT PR: adding interpolation to QuakeMDL animations with vtkInterpolateDataSe… #2775
Conversation
|
|
||
| // Calculate interpolation factor (alpha) | ||
| double alpha = 0.0; | ||
| if (frameIndex0 != frameIndex1 && (t1 - t0) > 1e-9) |
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.
why 1e-9 specifically ?
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.
In order to make sure that the two frames are unique. 1e-9 is really strict. I think we can remove this check as well if you think that's okay.
|
|
||
| vtkIdType ActiveAnimation = -1; | ||
|
|
||
| vtkSmartPointer<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.
| vtkSmartPointer<vtkInterpolateDataSetAttributes> Interpolator; | |
| 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.
will apply 👍🏼
| { | ||
| this->Internals->Texture->SetInputData(this->Internals->GroupSkins[animIndex][frameIndex]); | ||
| // For texture animations, use nearest neighbor approach | ||
| // Not interpolating here since texture interpolation is complex(?) |
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.
yes its fine and out of scope
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.
OK 👍🏼
mwestphal
left a comment
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.
Some questions and remarks
|
please resolve adressed discussions and ask me for a review @The-Lennzer when its ready :) |
…tAttributes
Issue: #2138
Describe your changes
#include <vtkInterpolateDataSetAttributes.h>vtkSmartPointer<vtkInterpolateDataSetAttributes> InterpolatorDRAFT PR for reviewing code not to be merged!