How does one control an animated SVG in Unity 3D? - animation

I have an animated SVG file that contains 400 frames of animation. I'd like to put this asset in my game, and control which frames playback and when like a file strip / animated GIF. I have the asset imported using SVGAssets.
Is there a way to do this? I've looked in the Unity documentation, but it continually points me at standard 2D assets or normal 3D FBX files.
Thank you!

SVG animations are not supported by SVGAssets plugin, at the moment. The usual workflow would be to import SVG static graphics with SVGAssets, then animate it with Unity tools (as done for the Orc example included in the SVGAssets package).

Related

How to load gltf with svg texture

I am trying to load svg and use it as a texture for some parts of my 3d scene in react-three-fiber. The issue I am trying to fix is that somet of the textures are quite blurry even though I have big raster images.
I can load an svg using react-three-drei's component, and it looks super crisp.
Is there a way I can load svg as a texture for a mesh? Or should I go about it as I somehow link the component to the mesh and mimic its size and movement during animations?
Not sure how I can do this.
I've tried adding the svg files directly in my gltf file as texture with mimetype image/svg+xml but react three-fiber gives an error about enconding.
Also I've tried using useTexture() with the svg source which does work, however blurry as the raster textures.
I want to know if it is possible for me to achieve this somehow. Or if there is an alternative to making my scene render crisper.
Hi sadly textures are raster images only…
There is technique called SDF 2d but this would also involve converting svg to image…
You can check it here https://github.com/dy/svg-path-sdf
The way it works, it coverts svg to raster under the hood, for you, maybe there is some options for it, however I would recommend process your svg to png or jpg manually…

How to create an animation in form of svg?

recently when I was looking to find some tool regarding some rf bits operation I found this, it was not a website nor a gif it's extension was .svg it is displaying moving objects and when we are hovering it is changing its animation like this
So, my question is that how we can create this type of svg animation with hover-events?

Can the latest openlayers render the animated marker using gif/apng/webp?

According to this QA, by using "gifler" library, we can use animated gif to render on canvas-based openlayers.
can openlayers 3 render the animated marker using gif
But it cannot accept apng/webp, and also, "gifler" library is bit old, it is tough to use with the latest EcmaScript or TypeScript.
Are there any other way to enable this?
Eventually, I couldn't find a way to make it work, so I started developing it myself.
Animated GIF, APNG, and Animated webp can be frame-split and even animated on a canvas context in the following.
https://github.com/code4history/Gyeonghwon

using blender, how to add armature to svg image

I have 2d image of a person and converted the same into svg file, uploaded the file into blender and tried to add armature to it but somehow i could not find any relavant controls to bind armature to human shape(svg). Could anybody share the supporting docs..
Thanks
ASH
by adding armature plugin to blender tool complete human shaped armature option will be available under ADD-->Armature-->Human(Meta-Rig)
However complete 3d model cannot be generated from the svg object. At max all parts of the image object can be extruded.
Thanks
ASH

How to create scaleable svg animations?

Consider creating an SVG animation: a rectangle move into the scene from left side of the svg image and move out from right side and this is a loop.
(And i don't what to use canvas libraries or any javascript code).
[1] Is it possible to create this simple animation with any application (just like flash but with svg export) (I know Adobe Illustrator let us export vectors but not sure about animating theme).
[2] Also as SVG is vector based i intend to make this svg animating fluid (setting the width of svg to 100% an content scale automatically) is it also possible?
(I know how to do such these things using canvas libraries like snap.svg kinetic ... with bunch of js code i'm looking for some GUI App which let a graphic designer having no idea what JS is do it like Adobe Flash for example).
Any solution?
I am not sure about GUI App but fluid animations are possible. Look at the following elements: animate, animateMotion, animateTransform, animateColor.
Here are some examples and documentation:
MDN: animate, animateMotion
W3C

Resources