Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Flat - 2D model editor (wip)  (Read 12869 times)

0 Members and 1 Guest are viewing this topic.

panithadrum

  • Sr. Member
  • ****
  • Posts: 304
    • View Profile
    • Skyrpex@Github
    • Email
Flat - 2D model editor (wip)
« on: December 16, 2010, 04:52:45 pm »
Flat - 2D model editor

Introduction
I am developing a 2D model editor for my games. It is intended to be used in topdown games (although, it could be used for any kind of 2D animations). I used Qt for the window handling and numerous widgets, and SFML for the rendering (the timeline and model view widgets).

It used a primitive version of what I am creating now for animations, so you will get the idea behind my work.

At the moment you can just animate a single dot, but skeleton creation and animation is half finished. There is no download link at the moment. I will post new youtube videos when I am releasing new things.

Features
Before 19-12-2010:
    - Timeline:
      - Create keyframe
         - Move keyframe
         - Delete keyframe

    - Animation editor:
      - Change bone's position

    - Skeleton/skin editor
      - Empty, with a single bone

    - Settings
      - Project settings

    - File   
      - Empty
[/i]
23/12/2010:
    - Skeleton/skin editor:
      - Load new skin
      - Skeleton with multiple bones

[/i]
Planned:
    - Skeleton/skin editor:
      - Change skin properties

    - Animation editor
      Properly animate the multiple bones (with the skin properties)

    - File
          
      - New/open/save as/save project files

    - Timeline
      - Copy/cut/paste keyframes

[/i]

model76

  • Full Member
  • ***
  • Posts: 231
    • View Profile
Flat - 2D model editor (wip)
« Reply #1 on: December 20, 2010, 09:29:02 am »
Looks very promising! Looking forward to seeing it in action.

Walker

  • Full Member
  • ***
  • Posts: 181
    • View Profile
Flat - 2D model editor (wip)
« Reply #2 on: December 23, 2010, 07:52:16 am »
This is the type of animation tool I have wanted for quite a long time! Looking forward to seeing some more progress :)

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
Flat - 2D model editor (wip)
« Reply #3 on: December 23, 2010, 12:43:48 pm »
First link is a video to a game and not an editor. Or that might be the idea?

Anyway the second video was right. Looked pretty cool ^^
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

panithadrum

  • Sr. Member
  • ****
  • Posts: 304
    • View Profile
    • Skyrpex@Github
    • Email
Flat - 2D model editor (wip)
« Reply #4 on: December 23, 2010, 01:01:05 pm »
Thanks for your support!

Quote from: "Groogy"
First link is a video to a game and not an editor. Or that might be the idea?

Anyway the second video was right. Looked pretty cool ^^

The first link is a reference of what the final product will be (2D fluid animations).

Just say that I am currently working on the skin properties/proper animation. Then, I will work on the project saving. With that done, it will be functional (and downloadable ) :D

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
Flat - 2D model editor (wip)
« Reply #5 on: December 23, 2010, 01:12:31 pm »
Quote from: "panithadrum"

Just say that I am currently working on the skin properties/proper animation. Then, I will work on the project saving. With that done, it will be functional (and downloadable ) :D


When do you think it will be downloadable? Also the output files, are they just normal image spritesheets?
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

panithadrum

  • Sr. Member
  • ****
  • Posts: 304
    • View Profile
    • Skyrpex@Github
    • Email
Flat - 2D model editor (wip)
« Reply #6 on: December 23, 2010, 02:31:07 pm »
Quote from: "Groogy"
Quote from: "panithadrum"

Just say that I am currently working on the skin properties/proper animation. Then, I will work on the project saving. With that done, it will be functional (and downloadable ) :D


When do you think it will be downloadable? Also the output files, are they just normal image spritesheets?

Well, expect two weeks, not much!

The output will be a special file containing the animation data. You will have to wait some more time before using the animations in real life  :oops:

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
Flat - 2D model editor (wip)
« Reply #7 on: December 23, 2010, 05:22:43 pm »
Quote from: "panithadrum"
Quote from: "Groogy"
Quote from: "panithadrum"

Just say that I am currently working on the skin properties/proper animation. Then, I will work on the project saving. With that done, it will be functional (and downloadable ) :D


When do you think it will be downloadable? Also the output files, are they just normal image spritesheets?

Well, expect two weeks, not much!

The output will be a special file containing the animation data. You will have to wait some more time before using the animations in real life  :oops:


Yeah I was kinda playing with the idea to integrate it to my game engine.
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

Walker

  • Full Member
  • ***
  • Posts: 181
    • View Profile
Flat - 2D model editor (wip)
« Reply #8 on: December 24, 2010, 01:40:00 pm »
Yeah I am interested in using the actual animation data rather than exported sprites as well. Not sure where you are planning to take it.

panithadrum

  • Sr. Member
  • ****
  • Posts: 304
    • View Profile
    • Skyrpex@Github
    • Email
Flat - 2D model editor (wip)
« Reply #9 on: December 24, 2010, 02:57:30 pm »
Quote from: "Walker"
Not sure where you are planning to take it.

What do you mean?

It is going to use .flat files, which contains the name of the skins and the animation data. You will load this in your game with code like this:
Code: [Select]
Model::Data data;
data.LoadFromFile("myModel.flat");
Model model;
model.SetData(data);
model.SetAnimation("Run");
model.Play();
model.SetLoop(true);
...
model.Draw(position, direction, etc);

Walker

  • Full Member
  • ***
  • Posts: 181
    • View Profile
Flat - 2D model editor (wip)
« Reply #10 on: December 24, 2010, 11:32:27 pm »
Just wasn't sure if that's how you intended it but it is so that's good! :D

panithadrum

  • Sr. Member
  • ****
  • Posts: 304
    • View Profile
    • Skyrpex@Github
    • Email
Flat - 2D model editor (wip)
« Reply #11 on: December 25, 2010, 02:11:39 am »
Quote from: "Walker"
Just wasn't sure if that's how you intended it but it is so that's good! :D

Maybe I should explain it in the first post.

I want also to make something to interpolate between animations, but I am not sure how would the code look like. For example
Code: [Select]
Model model;
... /* Load the model data and so... */
/* Set the base animation */
model.SetAnimation("Idle");
/* Let the model do a transition from "idle" to "run" softly in 1.5 seconds */
model.ChangeAnimation("Run", 1.5f /* seconds */);
...
while(Window.IsOpened())
{
model.Update(Window.GetFrameTime());
model.Draw();
}


Also, could be interesting to blend more than one animation at once, but I don't know how to make the API... any ideas?

panithadrum

  • Sr. Member
  • ****
  • Posts: 304
    • View Profile
    • Skyrpex@Github
    • Email
Flat - 2D model editor (wip)
« Reply #12 on: March 14, 2011, 11:07:58 pm »


Hi guys, just let you know that I'm still working on this editor. I've a blog here (The dead walk).
I'm trying to update the entries as soon as possible, including some mini-tutorials, explanations and videos.

BTW, my blog is mainly about the development of game I'm working on (The dead walk), but it also includes Flat2D in it's process. I would like you to follow it, and feel free to comment!

panithadrum

  • Sr. Member
  • ****
  • Posts: 304
    • View Profile
    • Skyrpex@Github
    • Email
Flat - 2D model editor (wip)
« Reply #13 on: April 01, 2011, 09:22:30 pm »
Just wanted to say that I'm still working on the editor!!! I'm introducing some nice features, and debugging it.

It is autoupdatable, so I'm going to release an alpha in the next hours.

panithadrum

  • Sr. Member
  • ****
  • Posts: 304
    • View Profile
    • Skyrpex@Github
    • Email
Flat - 2D model editor (wip)
« Reply #14 on: April 01, 2011, 10:41:50 pm »
As promised...

Flat 2D 0.1 (hosted by 64digits.com, updated from vgafib.com)

Version 0.1 (01-04-2011)
 - Minor GUI bugs fixed
 - Save and load available
 - New bone rotation directions (nearest and farthest)
 - Lots of things

Mini-explanations
  • Create new bones in the skeleton editor tab by selecting one and clicking with the right mouse button.
  • Edit animations in the animation editor tab.
  • Create keyframes by double-clicking the timeline or by right click.
  • Play the animation with enter (make sure the input is reiceived by the timeline)
  • Animation bone properties works but is not user friendly. You will have to wait a little