×

Langue

Fermer
Atelier 801
  • Forums
  • Dev Tracker
  • Connexion
    • English Français
      Português do Brasil Español
      Türkçe Polski
      Magyar Română
      العربية Skandinavisk
      Nederlands Deutsch
      Bahasa Indonesia Русский
      中文 Filipino
      Lietuvių kalba 日本語
      Suomi עברית
      Italiano Česky
      Hrvatski Slovensky
      Български Latviešu
      Estonian
  • Langue
  • Forums
  • /
  • Transformice
  • /
  • Éditeur de cartes
  • /
  • [Tutorial] How convert a image to a map
1 / 2 › »
[Tutorial] How convert a image to a map
Sewdycreatooor
« Citoyen »
1572823200000
    • Sewdycreatooor#0873
    • Profil
    • Derniers messages
    • Tribu
#1
  23
  • Tutorial
  • Version
CONVERT A IMAGE TO A MAP


Tutorial are kinda boring, it's now full automated in one app !
Go on Converter App, import your image (jpg/png), no matter the size, set your config, and run ! Drag your XML on transformice editor or edit into miceditor.


Warning, the use is for making personal maps and not for the rotation. Also your map will be similar to your image but isn't possible to be the exact same, it's more like a drawing version of your image.

Any issues ? please fell free to post it on the topic, i'll help you and try to fix it if it's a bug !
If you have any UI/UX idea you wish to see, like translation or theming, DM me.

Current issues and todos :
  • Opacity isn't working.
  • Rotated rectangle can be a bit improve.
  • Rotated rectangle and rectangle taller than 260 are not considered yet.
  • Bad responsive in some case


Can't fix :
  • Heavy on perfomance on first iterations.


App

• v2 - Work on App
• v1 - Tutorial
This is a tutorial to learn how convert a image as a map drawing joints in few steps

I would like to clarify that a drawing art map did manually with a good job will be always better

Warning, the use is for making personal maps and not for the rotation. Also your map will be similar to your image but isn't possible to be the exact same, it's more like a drawing version of your image.

FIRST STEP
For the first step we have to choose the image we want and edit it a bit.

A.
Select your image on google or whatever and save it. Know that more there is details less your map will be similar. Make sure the size of your image is higher than 800px*400px.

B.
For solve some issues, I have to order you to resize your image size to exact 800px*400px.

You can use this website for doing it. Select your image from your pc, then edit the width to 800 and the height to 400. Deselect the "Maintain aspect ratio" checkbox, select the "Do not enlarge if smaller" checkbox and click on Resize image. Then save it.


SECOND STEP
The second step consist of recreating image as geometric primitives. Of course we don't gonna do it oneself.
We gonna use a tool named Geometrize.

A.
Click on settings, then climb up the shape opacity at 255 and the shape mutation per step to 300.
Uncheck the "rotated Ellipses" checkbox, and check "Rectangle", "Circles" and "Lines" only. You have choice to use all three as only one or two. (If you check another it would not working for next step)

Edit the "Max Shapes Cap" between 300 and 1400.
I recommend to put 600 (around 30kb).
This is a important parameters, it means about the numbers of joints line and it will determinate the size in kb of your map. If you put more than 1400 your map will exceed the 60kb limit.
Notice that is you put more than 600 Viprin Editor Drawing will crash if you load the map on it.

We had finish with parameters.

B.
After this did, click on "Open Image" and select your image with 800px*400px size. (Make sure that is not the original size image). And waiting that the program finish when shapes added is equal to the max.

Then click on "Save SVG".

It's the file with all geometrical shapes informations, we gonna convert this into map XML.

THIRD STEP
We have to convert our SVG file as XML with Transformice propriety's.
Use this tool I made for, load your SVG file.
You can check "Viprin Drawing Editor compatability" checkbox is you want edit the draw, but make sure it's lower than 600 line or your browser might crash when you gonna load it in VDE.

Then do the trick for exceed the 20kb limit: click and drag right to the Transformice map editor XML loader. And here we are, finished.

TUTORIAL VIDEO





Dernière modification le 1612195740000
Sin
« Citoyen »
1572823740000
    • Sin#9948
    • Profil
    • Derniers messages
    • Tribu
#2
  0
Great thread, well down Sewd!!!
Cilacapenjoy
« Citoyen »
1572874020000
    • Cilacapenjoy#0000
    • Profil
    • Derniers messages
    • Tribu
#3
  0
keep it up man!
Pisse
« Citoyen »
1572884280000
    • Pisse#0000
    • Profil
    • Derniers messages
    • Tribu
#4
  1
Coooool stuff
Aron
« Censeur »
1572890880000
    • Aron#6810
    • Profil
    • Derniers messages
    • Tribu
#5
  0
wow thx
Miminou1
« Citoyen »
1572892020000
    • Miminou1#0000
    • Profil
    • Derniers messages
    • Tribu
#6
  0
that amazing !!
Stefan
« Censeur »
1572894600000
    • Stefan#0095
    • Profil
    • Derniers messages
    • Tribu
#7
  9
cool stuff, rip p5 artists who made their arts for hours
Artgir
« Consul »
1572898740000
    • Artgir#0000
    • Profil
    • Derniers messages
    • Tribu
#8
  0
Woow cool
Sewdycreatooor
« Citoyen »
1572901260000
    • Sewdycreatooor#0873
    • Profil
    • Derniers messages
    • Tribu
#10
  2
❤️❤️❤️ Thank you for all your feedback! I really appreciate it ❤️❤️❤️

I would like to take this opportunity to explain the two major problems that cause irregularities.

First it is the fact that the joints are not right-angled rectangles but with a rounded edge (I cannot allow 20 joints to be used for a single rectangle). So you have to choose, either exceed, equal or reduce. I have chosen to reduce but I will try to see if it is not better to equalize.

One aspect of the problem = https://i.imgur.com/XVDS6Mx.png

The second is the fact that it is not possible to exceed a thickness greater than 260, which is not a problem for rectangles, but for some circles it is. What I have to do is simulate the shape of a circle with a few joints. I have chosen the simple square currently with a slightly smaller size, but I think a mixture of a 45 degree square and a 0 degree square, like a star, would be more effective

One aspect of the problem = https://i.imgur.com/wRuXIXg.png

Once it's fixed I'll work on the implementation of the polygons, to be honest it's almost finished but I still have to work on the correction of the distances due to the rounding of the joints for the rectangles, mentioned above.

Cya and thank you again m8 !
+Minstens
« Citoyen »
1572903540000
    • +Minstens#0000
    • Profil
    • Derniers messages
    • Tribu
#11
  1
Stefanmocarz a dit :
cool stuff, rip p5 artists who made their arts for hours

You're bit wrong, none of this maps can enter in P5 or any other rotation category. These maps have the best lag ever and I'm just alone. When these are played on normal rooms you should imagine and with the shaman buildings, they get rejected.
Sewdycreatooor
« Citoyen »
1572904740000
    • Sewdycreatooor#0873
    • Profil
    • Derniers messages
    • Tribu
#12
  0
+Minstens a dit :
Stefanmocarz a dit :
cool stuff, rip p5 artists who made their arts for hours

You're bit wrong, none of this maps can enter in P5 or any other rotation category. These maps have the best lag ever and I'm just alone. When these are played on normal rooms you should imagine and with the shaman buildings, they get rejected.

Yes like I said,
a dit :
Warning, the use is for making personal maps and not for the rotation.


It is just a fun way to create map, but whatever I don't think he was talking at first degree

Dernière modification le 1572904860000
Iovis
« Citoyen »
1572911940000
    • Iovis#9042
    • Profil
    • Derniers messages
#13
  0
Is it allowed to make a maps gallery with this tool but without giving the credits to you?

Dernière modification le 1572912000000
Blank
« Citoyen »
1572915660000
    • Blank#3495
    • Profil
    • Derniers messages
    • Tribu
#14
  1
Iovis a dit :
Is it allowed to make a maps gallery with this tool but without giving the credits to you?

that'd be a bit too selfish, don't you think?
Sewdycreatooor
« Citoyen »
1572936300000
    • Sewdycreatooor#0873
    • Profil
    • Derniers messages
    • Tribu
#15
  3
Iovis a dit :
Is it allowed to make a maps gallery with this tool but without giving the credits to you?

Yes you can, it is a tutorial, my tool is only a convertor, 90% of the job is did by Geometrize so

Blank a dit :
Iovis a dit :
Is it allowed to make a maps gallery with this tool but without giving the credits to you?

that'd be a bit too selfish, don't you think?

Imo when you use Viprin Drawing Editor and you show your maps on a gallery everyone know if you use it or not, you don't tell it, it's guessed.

But whatever if you wanna give credit to this tutorial you can ofc (By this tutorial I am not meaning me but all stuffs on his tutorial used, mainly Geometrize)
Iovis
« Citoyen »
1572954000000
    • Iovis#9042
    • Profil
    • Derniers messages
#16
  1
Sewdycreatooor a dit :
Iovis a dit :
Is it allowed to make a maps gallery with this tool but without giving the credits to you?

Yes you can, it is a tutorial, my tool is only a convertor, 90% of the job is did by Geometrize so

Blank a dit :
Iovis a dit :
Is it allowed to make a maps gallery with this tool but without giving the credits to you?

that'd be a bit too selfish, don't you think?

Imo when you use Viprin Drawing Editor and you show your maps on a gallery everyone know if you use it or not, you don't tell it, it's guessed.

But whatever if you wanna give credit to this tutorial you can ofc (By this tutorial I am not meaning me but all stuffs on his tutorial used, mainly Geometrize)

Thanks you for response me!

This gonna be very useful in my projects.
Ikke
« Sénateur »
1573189980000
    • Ikke#0010
    • Profil
    • Derniers messages
    • Tribu
#17
  0
If you want to credit someone, you could mention the artists who made the source arts. But it's just my opinion.

I really appreciate your efforts to make this tool, even though it isn't very precise neither optimized, I think the arts have a good looking.
Sewdycreatooor
« Citoyen »
1573940880000
    • Sewdycreatooor#0873
    • Profil
    • Derniers messages
    • Tribu
#18
  3
Hi,
I would like to inform you that I am no longer working on this tool, at least for the moment. I am working on a "big" project to create a map editor with a design software aspect. Sorry if some was waiting for polygons etc. Thank

NB: I'm not trying to match or equal any other VDE miceditor and tfmcanvas that are just amazing. To be honest I don't necessarily do it for Transformice but because I like the project, I learn a lot from him, and it will be better than a tic tac toe in my portfolio, anyway). If any of you are interested here is my progress on it (about 20% of the project lmao)

https://i.imgur.com/t41DpUh.png



NB2 : Ofc i'll implement the convert img to map on this project later.

Dernière modification le 1573941000000
Nekomancer
« Censeur »
1575146340000
    • Nekomancer#6869
    • Profil
    • Derniers messages
    • Tribu
#19
  1
I do all the stuff but when i click "GO" i dont get my code.
Tactcat
« Citoyen »
1577302560000
    • Tactcat#0000
    • Profil
    • Derniers messages
    • Tribu
#20
  0
REALLY COOL SHIT
  • Forums
  • /
  • Transformice
  • /
  • Éditeur de cartes
  • /
  • [Tutorial] How convert a image to a map
1 / 2 › »
© Atelier801 2018

Equipe Conditions Générales d'Utilisation Politique de Confidentialité Contact

Version 1.27