wredzab Posted July 6, 2020 Share Posted July 6, 2020 (edited) Hey, all! I wrote a tool which imports pixel art into the world editor. Download: PixelArt_Importer.exe How to use it: Download PixelArt_Importer.exe Save your art as "input.png" and place it in the same folder as the .exe file Run the .exe It will create an "output.world" file and show you the number of colors and objects used. Press Enter to finish. In the world editor go to File > Merge from file and select the "output.world" file. The art will be inserted around the (0,0,0) position, with the width of 1m. To manipulate it in the editor, make sure to change "Pivot" to "Center" How it works: The script opens a png file and splits it into separate colors. It then merges neighboring pixels of the same color into rectangles. That way it uses as little objects as possible, regardless of the image size (eg. if the image is just one 1000x1000px rectangle, it will generate only one cube). Then it saves them as cubes in the output.world file. I wrote it in Python, using PIL. I'm attaching the source code. Feel free to use and modify it. Source code: PixelArt Importer.py Program: PixelArt_Importer.exe Edited July 12, 2020 by wredzab added download link at the bottom GottaGo, JenC, ☙𝔼𝕩❧ and 1 other 3 1 Link to comment Share on other sites More sharing options...
Rodin Posted July 17, 2020 Share Posted July 17, 2020 (edited) I can do what I wan't it is not working for me! Edited July 17, 2020 by Rodin Link to comment Share on other sites More sharing options...
wredzab Posted July 17, 2020 Author Share Posted July 17, 2020 What happens when you run it? What program did you make the picture with? Link to comment Share on other sites More sharing options...
Diana Prince Posted July 20, 2020 Share Posted July 20, 2020 @Rodin I use this pixel importer tool:https://3dxmodz.com/index.php?/topic/107-download-3dxworldpicture-world-format/ Link to comment Share on other sites More sharing options...
Rodin Posted July 20, 2020 Share Posted July 20, 2020 @wredzab I use Krita! @Diana Prince Thanks ! I have used/tryed this a long time ago! Link to comment Share on other sites More sharing options...
wredzab Posted July 20, 2020 Author Share Posted July 20, 2020 (edited) @Rodin Could you send me the project (.kra) file? I'll try to figure out why it isn't working. Thanks ^^ Edited July 20, 2020 by wredzab Link to comment Share on other sites More sharing options...
CallistaAlora Posted March 19, 2022 Share Posted March 19, 2022 this just keeps closing not working Link to comment Share on other sites More sharing options...
xTinas Posted March 20, 2022 Share Posted March 20, 2022 es öffnet sich kurz danach schließt sich das programm das wars tolles programm benutz lieber das von Tamarax das geht wenigstens Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now