Author Topic: General Discussion  (Read 3821212 times)

0 Members and 33 Guests are viewing this topic.

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #7050 on: April 08, 2016, 04:38:07 PM »
Yeah. They are divided according to internal game structure, there are skills and effects databases.

I learned a bit about the game, there was a big story update some time ago that changed many things forever, including animations. No wonder I cannot find some of your gifs in the resources.

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #7051 on: April 09, 2016, 05:11:09 AM »
Quote
if os.path.isdir("/".join([dir, packfolder, folder])):
                                # We set the path to the character so we know where to draw images from:
                                setattr(char, "_path_to_imgfolder", "/".join(["content/{}".format(path), packfolder, folder]))
                                # We load the new tags!:
                                for fn in os.listdir("/".join([dir, packfolder, folder])):
                                    if fn.endswith((".jpg", ".png", ".gif")):
Gifs? They are not supported, aren't they?

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #7052 on: April 09, 2016, 07:53:42 AM »
Animated gifs are not supported, but you'll see the first frame of the file. Ren'Py prolly supports a few other image formats as well, I don't remember why I put it there, someone prolly asked me to.

===>>
I've looked into Ren'Py's file listing a little bit. At some point we'll prolly call that function (once), sort all files appropriately and load the data in a correct order. There will be no further need of OS module and multiple places/function with separate checks. What we're doing now will only work on MAC/Linux/Win and prolly not if we ever start using "archive" system when releasing the game to reduce the amount of files.
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #7053 on: April 12, 2016, 04:22:13 AM »
I was curious why gifs and apngs are not supported and read renpy forum a bit. Turns out apngs are not popular enough to add support for them, and gifs are not supported due to low specifications, like 256 colors and no full alpha support.

But at the same time we make webms from gifs, passing the same low specifications to them. Seems legit  ::)

For better results we probably should do something like this.
 
« Last Edit: April 12, 2016, 04:32:35 AM by DarkTl »

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #7054 on: April 12, 2016, 04:44:18 AM »
I have posted the code line to create webm from png series. But it is not a good option for maple stuff. We could try adobes studio or whatever that is called as well... there may be alignment options there as well.
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #7055 on: April 12, 2016, 05:40:18 AM »
Yeah, I'll try cured-of-greed adobe animate cc then, swfs could be converted to webms too.

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #7056 on: April 12, 2016, 10:48:04 AM »
I can't express how easily one can create a swf or a mov from a sprite sheet in animate cc. Too bad it cannot make a webm directly, kinda lame for the price they ask.

And here is a decent free offline tool for converting videos to webms.
« Last Edit: April 12, 2016, 11:17:16 AM by DarkTl »

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #7057 on: April 12, 2016, 12:49:26 PM »
Looks good, was this one of the animations that required alignment? I am not sure that Animate CC is the best soft for this either. I am gonna try something else tonight.

==>>
We'll also need a way to create alpha channel for webm...
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #7058 on: April 12, 2016, 01:20:40 PM »
Kinda, it required central alignment. You can freely move separate frames with mouse to manually set any kind of alignment, and probably more, I don't know about all options yet. And of course CC has its own effects that may help to make better animations, after all it was made to create animations not only from sprites sheets.

I don't think we have a better option than using grayscaled animation as alpha. I suppose a pro artist could make a perfect alpha webm manually, but that's an overkill.

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #7059 on: April 12, 2016, 06:40:48 PM »
Kinda, it required central alignment. You can freely move separate frames with mouse to manually set any kind of alignment, and probably more, I don't know about all options yet. And of course CC has its own effects that may help to make better animations, after all it was made to create animations not only from sprites sheets.

I couldn't figure out the Animation CC BS, peace of sh!t, sorry excuse for a software :) We don't need it anyway, we're making movies, not flash animations so for us it's either AE or Premiere.

Quote from: DarkTl link=topic=1291.msg3945
1#msg39451 date=1460481640
I don't think we have a better option than using grayscaled animation as alpha. I suppose a pro artist could make a perfect alpha webm manually, but that's an overkill.

AE makes a movie from png files with 3 clicks of a button and a perfect mask (I mean it, perfect one) with another 5 clicks. Two resulting files (movie + mask) turn out only slightly smaller than the original .pngs but I haven't looked into optimization yet.

1) Get After Effects.
2) Get Media Encoder.
3) Get .webm plugin for Media Encoder.
4) Import .png files into AE. Don't use sequence import, just the files. Create a composition (here you click the sequence check-button) from the files using the largest file for size (manually look for it..., there might be a script for this but I haven't looked for on yet).
5) Make sure FPS/Alignments are to your liking (FPS is a bitch and there doesn't seem to be an option to setup alignments vs the canvas for all files properly :( ).
6) Export the movie to ME.
7) Go to effects and under Channel, pick Set Channels. Set Red Channel to Alpha and turn off Green, Blue and Alpha Channels.
8 ) Export the mask to ME.
9) Setup the files in ME so the format is webm. Take parameters from the original file. Bitrate on Alpha channel can prolly be low to beat down the size a bit.

I've tested it in Ren'Py already, it works great and looks really, really good but unless there is a better way to optimize webms, we can just use Ren'Py animations directly, especially in cases with smaller files.

Afterthought... maybe we can remove alpha channel from movie. It's prolly useless. If that can improve the size...
« Last Edit: April 12, 2016, 06:53:17 PM by Xela »
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #7060 on: April 13, 2016, 01:12:59 AM »
We don't need it anyway, we're making movies, not flash animations so for us it's either AE or Premiere.
Actually, for some reason swfs made by CC cannot be converted to webms, there is an error of some kind. But it also can make .mov videos from sprite sheets, and they can be converted  :)

I read their forums a bit, pro artists who paid a sh*t-ton of money for CC keep asking for webms support for years since it's a very popular format, but nope, adobe is too interested in formats war to add it.

AE makes a movie from png files with 3 clicks of a button and a perfect mask (I mean it, perfect one) with another 5 clicks.
Uh, what about alignment? Can it be freely adjusted for every frame?
« Last Edit: April 13, 2016, 01:15:54 AM by DarkTl »

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #7061 on: April 13, 2016, 02:47:34 AM »
Yes. Adjusting alignment is possible for a selection or even for all frames at once as well but it is working oddly. Per frame it's easy. Just like you described for Animate, you can drag and drop or set values.

We need to learn more about optimisation in both programs cause this combo feels perfect
+ it can save to webm directly using a third party plugin. Ren'Py works best with all movies running the same framerate so we need an acceptable standart.

I still haven't undertood framerate settings during import of png images. I can control it by setting up composition frame rate  and time during png to compositionto get the desired result but without full understanding of what's what.

Also, I haven't figured out how to change duration of one image. There is a time setting for it but it cuts into the general sequence. It's all prolly very easy but there aren't many guides around... and I was very tired yesterday as it was.

Prolly with proper knowledge of soft, we can do better than I did by trial and error. Also Premiere may be worth giving it a shot...

Edit: Premiere can do what is required as well, based off what I've just read. It's for movie editing while ae is for composing but our task is so simple that it prolly wouldn't matter which is used.
« Last Edit: April 13, 2016, 04:12:17 AM by Xela »
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #7062 on: April 13, 2016, 04:24:03 AM »
Well, they say After Effects is better for 2D animations, although professionals probably use both.

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #7063 on: April 13, 2016, 05:06:22 AM »
Well, they say After Effects is better for 2D animations, although professionals probably use both.

Yeap, but we don't really need to animate much. Just showing a bunch of images in a sequence is possible in most editing software of adobe. Even in photoshop, so for us the only thing that matters are the options availible and simplicity and accessibility of those options.

We need to be able to create mask. It prolly doesn't get any easier than in ae. We need to be able to set alignments and change time each image is shown freely. That may be easier in animate or premiere, that's why I mentioned it. We'll prolly stick to ae... it may take a bit of effort to figure out but if it can change time image is shown, automatically adjusting times of other images to get rid of cteated gap or overlap and set alignments properly in bulk which worked ok for me setting 25 frames properly while fucking up 3 or 4, so not perfect as messed up frames must be adjusted frame by frame.

Reading about premiere, it feels like it should be easier to change timings. It may be super easy using ae as well, but I don't have access to software atm.
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #7064 on: April 13, 2016, 06:30:31 AM »
I figured Media Encoder with plugins is used to make actual webm, no matter the tool we used to make animations. Does it support the same stuff as online converters?