View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000050 | Gorilla3D | Bug Reports | public | 2019-12-04 10:15 | 2019-12-04 10:22 |
Reporter | administrator | Assigned To | administrator | ||
Priority | normal | Severity | major | Reproducibility | sometimes |
Status | resolved | Resolution | fixed | ||
Product Version | 0.8.1.x | ||||
Target Version | 0.8.1.x | Fixed in Version | 0.8.1.x | ||
Summary | 0000050: TPoint3DKeyAnimation, TVector3DKeyAnimation, TTransformationKey, TCoordinateKeyAnimation not useable as standalone animations | ||||
Description | Because TPoint3DKeyAnimation, TVector3DKeyAnimation, TTransformationKey and TCoordinateKeyAnimation are not useable as standalone animations to animate property values outside of TGorillaAnimation. | ||||
Tags | No tags attached. | ||||
Delphi-Version | |||||
OpenGLVersion | OpenGL 4.6 | ||||
|
Fixed. And no need anymore to call AddElement() anymore. The animation-types are now able to handle default FMX behaviour (only be set parent) and extended Gorilla3D behaviour, where we can add multiple components to be manipulated (AddElement) Case #1 (default FMX behaviour) <code> FAnim := Gorilla.Animation.TPoint3DKeyAnimation.Create(FViewport); FAnim.Parent := FAim; FAnim.Duration := 2; // add keys FAnim.Keys.Clear(); // start key LKey := FAnim.Keys.Add() as TPoint3DKey; LKey.Key := 0; LKey.SetDefaultValue(FCurrentPoint3D); // end key LKey := FAnim.Keys.Add() as TPoint3DKey; LKey.Key := 1; LKey.SetDefaultValue(FDestPoint3D); </code> OR alternativly use multiple elements: <code> FAnim := Gorilla.Animation.TPoint3DKeyAnimation.Create(FViewport); FAnim.Parent := FAim; FAnim.Duration := 2; FAnim.AddElement(FAim); FAnim.AddElement(FAim2); // add keys FAnim.Keys.Clear(); // start key LKey := FAnim.Keys.Add() as TPoint3DKey; LKey.Key := 0; LKey.SetDefaultValue(FCurrentPoint3D); LKey.SetValue(FAim, FCurrentPoint3D_1); LKey.SetValue(FAim2, FCurrentPoint3D_2); // end key LKey := FAnim.Keys.Add() as TPoint3DKey; LKey.Key := 1; LKey.SetDefaultValue(FDestPoint3D); LKey.SetValue(FAim, FDestPoint3D_1); LKey.SetValue(FAim2, FDestPoint3D_2); </code> "SetDefaultValue" works as fallback value, which can be set or not! In case you don't set a value for Aim2 it will detect the default value. |
Date Modified | Username | Field | Change |
---|---|---|---|
2019-12-04 10:15 | administrator | New Issue | |
2019-12-04 10:15 | administrator | Status | new => assigned |
2019-12-04 10:15 | administrator | Assigned To | => administrator |
2019-12-04 10:22 | administrator | Status | assigned => resolved |
2019-12-04 10:22 | administrator | Resolution | open => fixed |
2019-12-04 10:22 | administrator | Fixed in Version | => 0.8.1.x |
2019-12-04 10:22 | administrator | Note Added: 0000035 |