why shape is change when we add or remove vertex in timeline after effect - keyframe

I want draw shape that is change in timeline with make some keyframe with "path"
for Ex: the first keyframe include 3 vertex and next keyframe have 4 vertex.
when i add extra keyframe in time line for new keyframe the shape in last keyframe will change! why? or when i delete vertex the shape in last keyframe will change

You cannot add or remove vertex from a shape in the timeline. You can only animate them.
Pick a place you can hide the vertex and key frame it from there.
For example. If you wanted a triangle to become a square. you'd make a triangle but with 4 vertex points. You could hide the 4th vertex inline on one side, and then keyframe the top points to make a square. After effects doesn't "generate" new shapes in the way you're thinking.
See the 4 points?
Triangle with 4 vertex
This should then be animated in your timeline to your desired position and thus, the shape you want.
Keyframed Square from Triangle

Related

Constant spacing between QML items when one item is rotating

I have two elements that are supposed to be laid out in a column, but one of them is supposed to rotate as it is meant to visually depict the orientation changes read by an IMU. Since that rotating element is a rectangle, when it rotates it overlaps with the item below.
I have tried using both Column and ColumnLayout elements to see if the spacing between these elements can be kept constant even if the top element takes more space because of rotation, but no luck. I then removed both items from Column and tried binding the y property of the lower element to be h*cos(rotation) + w*sin(rotation) where h is height, w is width, and rotation is the angle of rotation in degrees of the top-most element. This results in the second item moving up and down pretty wildly on the screen instead of smoothly following the rotation of the first element.
What can I do to achieve the desired effect?

Clip (truncate) 3D shape using OpenFX

I need to clip 3D shapes for group of the object.
I have a Box and some 3D shapes (for example Sphere) inside Box, I want to clip this box that all shape parts, which outside the box were truncated.
I tried setClip method
Group root = new Group(sphere,box);
root.setClip(new Box(box.getWidth(),box.getHeight(),box.getDepth()));
it works with simple scene and direct view. In other situation it looks bad
Documents says:
Clipping is essentially a 2D image operation. The result of a Clip set on a Group node with 3D transformed children will cause its children to be rendered in order without Z-buffering applied between those children.
Is it limitation of the setClip or I'm doing something wrong, I'm new in javafx.

Can position accuracy indicator be animated in here maps?

I am implementing a scenario where I am trying to animate map accuracy indicator surrounding the position indicator using here maps
It should animate like ripples along the route with position indicator
But could not find any interface in HereMaps Android SDK document
Can you help with the same ? !
Ripple animated circle
What about using different MapCircles on the coordinates of the current position in different colors?
A MapCircle represents a type of MapObject in the shape of a circle with an assigned radius distance and a GeoCoordinate center. It can be created by calling the constructor MapCircle(double radius, GeoCoordinate center).

How to get a both side colored plane in A-Frame

When I create an a-plane and assign an attribute color="red", the color is applied to one side only. I added rotation animation to the plane and the back of the plane is white: fiddle.
What would be the method to get a plane colored from both sides? Should I create 2 planes of same color and then rotate one so that they are back to back and to the user looks like a single plane?
There is a material property called side. If you set it to double, the material will be applied both to front and back
<a-entity material="side: double"></a-entity>
updated codepen.

Shifting a QGraphicsItem's "graphic"

I have a QGraphicsItem with a custom graphic as shown below in the top half of the figure, where the red circle is the shape() of the item:
Is there a way to preserve the graphic but just shift it like shown in the bottom half of the figure?
I don't think, you can move QGraphicsItem without shape. Shape is bounded to QGraphicsItem.
It changes its co-ordinates according to QGraphicsItem.
If you want to achieve something like your second half of the fig. You need to have two QGraphicsItems (one is your red outer circle and second your inner graphics item).

Resources