Pencil animation (or line animation)

Thank you for the technical explanation. Now I understand it better.

With all that I have learned here I have made an animation with Hype for the header of some videos that I am working on.


I have also taken the opportunity to test the buttons. I have put one of "Repaly" but it gives a failure: the pencil line effect is lost with the "Replay", although it works if you reload the page.

En enlace está aquí:
https://artesaeta.com/Animation/Logo_Animado.html

5 Likes

I have been doing tests and only "reload" the pencil style if the button action is "Go to Url (same web address)" reloading the page, instead of "Jump to the Scene1". But I don't know if that's right.

That looks great!

Any chance you would be willing to share a zip of this .hype document? I think that would be the easiest route to investigate why the filter effect for the pencil isn't showing up.

1 Like

Yes. Here it is @jonathan . It's my first job with Hype so there may be a few bugs. The animation is entirely handmade.

Many thanks for the help

Looking great! Basically, the enabler creates SVGs with effect definitions and a unique id for each of the pencils. Currently, I am not checking if the enabler already did that job and it reruns. I guess that would be the source of the problem. You can fix it if you add the enabler to a first scene you never revisit. But the pencils (and the enabler) do need some love and some refactoring. I am currently investigating patterns and in that go… maybe I'll see to it that pencils are also "cleaned" up and extracted into a CDN file rather than being rendered as an "enabler" (in a rectangle) on stage…

2 Likes

Sorry, the ZIP file is not complete. I renamed the file in the folder while the file was open in Hzpe and all the SVGs disappeared. I managed to recover a backup. I was quite shocked to see that all that was missing. :scream:
I am sharing it again in case it helps to see better what is going on. Sorry for the inconvenience.

Thank you very much for the explanation. As I don't know how to program I simply copied the previous molds trying to understand the logic, but not much more.

I also found that the image of the hand is too heavy. I did the test with an image in print resolution and forgot to change it for the image with screen resolution. That slows it down a lot.

amazing animation!

I have a problem with the video export of this project.
As you can see in the file, I have already set the measurements of the scene thinking about the output to HD video (1920x1080) but when exporting, the video obtained does not have the sharpness that it should. In fact there is almost no difference with the export to 720px.

I have tried exporting with both Codex and I have also done a test doubling the export size. The problem remains.

However, when exporting GIF or PNG the result is much sharper, but they are formats that do not solve anything for me in this project.

I looked in the forums and found the same problem in this post.

Although it is old it explains perfectly the result. I'm following @jonathan 's advice to make the scheme bigger. It doesn't sound logical to me with the size of my scene but I'm trying to see what happens.

I think the problem is when converting from SVG to video format, perhaps because of compression.

An interesting solution might be to export each frame in numbered PNG, just as Flash did. It is not the most agile but it allows to solve some problems. Now I think that maybe you could export with transparent PNG as well.

yeah it's a pitfall, but working with a doubled scenesize brought the expected results for some videos i did in the past ...

1 Like

There is a Runtime called HYPE.video.js in the package and one could use it for that…

Added and needed API for frame exports is ...
heartbeatForVideoExport with the signature (currentTime)

@jonathan wrote about it here:

Transparent Video background export is possible with puppeteer and headless chrome:

1 Like

Thank you very much, guys, for your contributions.

@MaxZieb Thank you very much, :pray: but without knowing how to program I prefer not to go into that field (although I will take a look). I'll keep this information for when I know more. :wink:

Every day I spend using Hype I like it more but, what makes me fall in love is the community here supporting everybody. :slightly_smiling_face:
Thank you very, very much for all the support, really.

2 Likes

@h_classen The trick of preparing the scene with a larger size than the final video output works very well. :grinning:

It is simply something that you have to take into account if you want to export the animation to video. For other direct web projects, it is not necessary.

The final size I used is 3840 x 2160 px

1 Like

The zip from above has the scene size of 1920x1080, so if this is your video export setting then you will get the same pixels as on your retina screen with that choice since it is a 2x factor.

I wasn't quite certain from your messages if you were just hitting the fact that on a Retina screen Hype will show the scene at @2x vs. a video export dimensions are in @1x pixels. If you have shots of the same resolution of a PNG export vs. a video export that shows a difference, please feel free to send that along. The video export really just uses the same data as the PNG export, so the only difference is compression inherent to the video format.

Thank you for your response. I am out of the studio until Saturday. On my return I compare the quality of the PNG and the video to see if there is a real difference or not.

Enviado desde myMail para iOS

1 Like

I'm back now.
I've been able to see that there's no difference in the visual quality of the animated PNG and the MP4, although there are colour differences. The Gif also has its own colour, but that's normal.

I share the examples of the three files. The resolution of all of them is 1920 x 1080 px
MP4:

PNG:

GIF:

Wow, I just saw that the GIF is at a lower resolution :thinking:

1 Like

Great.

There are unfortunately going to be color differences even in mp4 compared to the PNG, since mp4 is a compressed format.
The video export shares the same scale factor among all formats, so it isn't clear why GIF would be different, but perhaps it is just from when it was exported at a different time?

Yes, @jonathan . We visual artists are already used to all those colour changes in digital. The colour depends on the compression of the files, the screens and the programmes used to display them. For example, Moyilla Fierfox saturates the colours a lot and in Safari they look more "correct".

This is a quality of the digital world that must be taken into account and not be frightened by it. It is better to learn to live with this inevitable characteristic. I believe that this also gives more value to original works made in a traditional way.

On the other hand, yes, the GIF is exported with another resolution, it is not a fault. I simply didn't remember that detail with all the tests I did.

Another issue that has brought me to mind with Hype is working with audio.
I think I've read all the threads on this subject and this is the summary I've understood about the subject of audio in Hzpe.
Hype is web-oriented and search engines impose their logic. This can be summed up by the fact that audios that are not activated by the viewer are not accepted. So any sound effect that accompanies the animation automatically cannot be included.

I have also seen that the best way to implement audio in Hype and synchronize it with the animation is with the MP4a format. This way it is imported as if it were a video file that runs alongside the animation. That can go great for voiceovers.

At the moment, as this project is more geared towards video output than the web, I decided to do the audio editing in the DaVinci Resolve video editor. In my case the animation is the one that rules over the audio and not the other way around. In other cases where the audio is the one that commands over the animation I will try to work with MP4a.

Is this summary correct? Do you plan to make improvements in the audio work within Hype? Is it worth the effort? I think it would be a good point in favour of using Hype.

Here I leave you the finished video. I've also saved the two scenes separately from Hype, to give you more room to manoeuvre with the videos.
The audio is from the DaVinci library and others that I recorded myself, like the handwriting and the brush stroke.

1 Like