Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open standard format(s) for all native files used by OpenToonz #145

Open
yvanc opened this issue Mar 30, 2016 · 19 comments
Open

Open standard format(s) for all native files used by OpenToonz #145

yvanc opened this issue Mar 30, 2016 · 19 comments

Comments

@yvanc
Copy link

yvanc commented Mar 30, 2016

I cannot find any information or the file specification for the following files used by OpenToonz:
1.) Toonz raster level file (TLV)
2.) Palette file (TPL)
3.) Toonz vector level file (PLI)
4.) Scene file (TNZ)

As I was reading the Japanese manual (OpenToonzスタートアップマニュアル_導入編.pdf) I've noticed that it was written that these file formats are proprietary on page 4.

"OpenToonzで扱う独自のデータ形式とその関係について、下図に示します。"

独自 (dokuji) = 1. original; peculiar; unique; characteristic; proprietary; individual; independent; one's own

So this request is the community to discuss and create an open standard for these files.

@justinclift
Copy link

As a thought, do we know if there's an already existing standard which could be used?

@odysseywestra
Copy link

What about the OpenRaster format? There been talks about adding animation support to it.

@blurymind
Copy link

Open raster will need to also support the type of vector data that opentoonz uses.
having an open format is a very good idea.

@odysseywestra
Copy link

@blurymind Maybe create a thread over at the MyPaint Community Forums about this since they are the main community that uses it as default. I think the Developer category will be a good place to post it.

@blurymind
Copy link

I contacted vpaint's developers if they are interested. Boris is still open to the idea of integrating vpaint into opentoonz, if someone else does it. He said that his technology will need to mature a bit more first though.

Why did I contact him first before mypaint? He is developing a very interesting animation file format that is centered around a new type of vector graphics technology - that includes a new file type for vector animation. It is closer to what opentoonz is doing. I think ora is mostly focused on raster graphics.

I will try with mypaint devs too.
Edit: Ok posted to their issue tracker as well. Please note that mypaint devs rarely look at the mypaint forum. The gihub tracker will get a much faster and direct response.

@yvanc
Copy link
Author

yvanc commented Apr 2, 2016

Integrating opentoonz into vtoonz is a good idea.

@blurymind
Copy link

@yvanc I though so too :) The two have a compatible license.

@blurymind
Copy link

In this case are we looking to replace all formats that toons uses with single open source one? Or With multiple open source ones?

@blurymind
Copy link

For the scene file, it would be useful if it writes scenes into a json file. That way cutout animations made in opentoonz will be able to load and run on diferent game engines and take much less memory than image sequences. See spriter and spine2d as an example.

@blurymind
Copy link

@yvanc
Copy link
Author

yvanc commented Apr 5, 2016

@blurymind I'm not really sure what route we should take whether we should replace all the format into a single one cause I remember while translating the introduction manual that the purpose of the separate file format is to make it easier for animators to work on the different file collaboratively.

Are any of you guys gonna be attending Libre Graphics meeting this year? Maybe you could make a discussion about it with the other Devs during the meeting.

@Emasoft
Copy link

Emasoft commented Apr 15, 2016

For the vector layer, we should use SVG. It has the following advantages:

  • It is already an open standard for vector graphics
  • OpenToonz can already import/export vector layers in SVG format
  • You can edit the SVG vector layer in other software tools (Inkscape, Illustrator, Affinity Designer, Autodesk Graphics, CAVANi, etc.)
  • You can easily create a playable animation from the SVG frames. Just paste each svg frame as a group in a svg file, and add this animate tag inside each group:
<g id="frame60"  style="display:inline">
<animate
       attributeName="display"
       fill="freeze"
       repeatCount="indefinite"
       dur="1.3s"
       keyTimes="0;0.961;0.992;1"
       values="none;inline;none;none" />
...
<g id="frame60content" style="display:inline">
 (...paste the OpenToonz svg frame here...)
</g>
...
</g>
  • You can preview the vector animation on every browser.

I've made an animation test, joining the exported SVG in Inkscape (I just pasted each frame exported from OpenToonz in SVG as a new inkscape layer, and saved. But a script can do this process much quicker).

You can playback and download the resulting svg animation from here:

h t t p ://imgh.us/navetta_test.svg (Edit: Bad link)

@blurymind
Copy link

I think it should keep its proprietary formats. Some studios might want to use it with retas.

It would be nice if it can export to svg animation for the web.

@ghost

This comment has been minimized.

@RodneyBaker
Copy link
Collaborator

Routine issue and PR review.
Adding 'roadmap' tag as the discussion of file formats comes up often.
It would be good for the Opentoonz community to review all currently supported file formats prior used with Opentoonz of which there are many. This would be useful first and foremost because we often don't use what we have to full advantage.

Moving forward, this survey of file formats will then aid in the exploration of creating and adapting other formats.

@RodneyBaker

This comment has been minimized.

@RodneyBaker RodneyBaker reopened this Sep 25, 2020
@RodneyBaker RodneyBaker changed the title Feature Request: Create an open standard format for all the native files used by OpenToonz Create open standard format(s) for all native files used by OpenToonz Jun 28, 2021
@RodneyBaker
Copy link
Collaborator

RodneyBaker commented Jun 28, 2021

General observation: Of all the formats listed in this intitial report it seems scene files (.tnz) are the most accessible for exploiting due to the fact it is a text based file format. The TLV, TPL and PLI formats are all binary.

A related thought I have been interested in pursuing related to the Tahoma2D fork is to encourage (if/where appropriate) the use of a new scene file extension other than .tnz. The rationale being that there are current (although minor) incompatibilities that make opening a scene saved via Tahoma2D problematic but there is not a similar problem opening .tnz scenes created in Opentoonz in T2D. This might present an opportunity to explore a new scene file format similar and compatible with the current .tnz scene format but given a unique extension to make it clear it is not a standard toonz/opentoonz scene file. One possibilitiy would be to simply call the Tahoma2D scene format .t2d. This change might not now be appropriate but should the format of scene files in Tahoma2D become further incompatible it should be considered especially to prevent confusion as to why Opentoonz cannot open a .tnz scene file created with Tahoma.

More broadly, this addition of a .t2d scene file would allow deeper exploration of the scene format itself allowing for further optimizations. (Note: As of this writing John has no plans to pursue a separate scene file format for Tahoma2D as he desires to maintain scene level compatiblity within the .tnz format)

@RodneyBaker RodneyBaker changed the title Create open standard format(s) for all native files used by OpenToonz Open standard format(s) for all native files used by OpenToonz Apr 1, 2022
@RodneyBaker
Copy link
Collaborator

This is the start of an experiment...
Moving some of the more generic feature requests that are more documenatary to the Opentoonz-docs repo.

@RodneyBaker RodneyBaker transferred this issue from opentoonz/opentoonz Jun 21, 2023
@RodneyBaker
Copy link
Collaborator

Some useful information on the TLV format here: #137

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants