[TOOL]Sproxel Minetest Nodebox exporter updated [TOOL]

Post Reply
User avatar
aldobr
Member
Posts: 316
Joined: Sun Nov 25, 2012 05:46

[TOOL]Sproxel Minetest Nodebox exporter updated [TOOL]

by aldobr » Post

This mod allows generating init.lua files of nodeboxes automatically using the sproxel 3d editor

http://sproxel.blogspot.com.br/

The texture generation is working correctly now, the plugin generates six ppm files that should be converted to png in order to work with the game (I use irfanview on windows).

place the python script on the plugins folder of sproxel : https://www.dropbox.com/s/526kb9oqm193m ... _export.py

open sproxel, edit your file and export it, select "Minetest nodebox file (*.*)" as export format and provide a name and a place to export. the name will be ued to create a directory where to write the init.lua file to. That same name is used as modname, while your node will receive a yournode name (making <directory>:yournode the fully qualified name of the node ingame).

Sproxel view:
Image

Save as:
Image
(Do not append a file extension, the name here is used as a directory name and as mod name).

Ingame:
Image

TODO: Optimize nodebox by joining adjacent blocks (i need a good algorithm for this).
Last edited by aldobr on Tue Jan 14, 2014 01:49, edited 1 time in total.

User avatar
rubenwardy
Moderator
Posts: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

by rubenwardy » Post

Nice.

This should probably be in related project, though.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
Neuromancer
Member
Posts: 964
Joined: Tue Jun 12, 2012 22:28
GitHub: Neuromancer56

by Neuromancer » Post

This seems promising in that it is easy to save and load your models. However, it seems like while with ruben's tool I can create a model with just 3 large nodeboxes, using sproxel I would need to have nodeboxes split into many smaller boxes. For example if I start with a 16x16x16 grid, I would not be able to join these nodeboxes into a simpler nodebox even if several small boxes made up one large nodebox.

for example a 2x2x2 nodebox could not be combined into a single nodebox, but instead would be represented as 8 smaller nodeboxes. Where with ruben's tool, I just make a large box by dragging the edges because I don't need to break the nodebox into a grid. Is my thinking correct on this?

User avatar
Wuzzy
Member
Posts: 4804
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

by Wuzzy » Post

Sadly without GNU/Linux support, so it’s nothing for me. :-(

User avatar
aldobr
Member
Posts: 316
Joined: Sun Nov 25, 2012 05:46

by aldobr » Post

@Neuromancer

yes, but this is a "true" voxel editor, each "block" is a 3d pixel, a voxel.

If/when the thing work correctly, the texture is created right from the voxels by projecting the voxels on a plane corresponding to each texture, so instead of creating seven separate art elements (nodeboxes plus each six textures) you do everything in just one go.

@wuzzy are you sure sproxel is windows only ?

it is qt based and uses python as scripting language... this looks like something very much linux friendly...

I need help figuring out sproxel coordinate system and mapping it into minetest coords
Last edited by aldobr on Sun Oct 06, 2013 00:06, edited 1 time in total.

User avatar
aldobr
Member
Posts: 316
Joined: Sun Nov 25, 2012 05:46

by aldobr » Post

Example of what can be done with sproxel :

http://www.youtube.com/watch?v=4TVIB6CxnPQ

User avatar
aldobr
Member
Posts: 316
Joined: Sun Nov 25, 2012 05:46

by aldobr » Post

Made the texture generation "work". But theres a lot of artifacts when voxels eclipse each other in relation to the box sides. I believe this is a problem with minetest renderer...

User avatar
aldobr
Member
Posts: 316
Joined: Sun Nov 25, 2012 05:46

by aldobr » Post

Why is no one interested in this tool ?

jin_xi
Member
Posts: 165
Joined: Mon Jul 02, 2012 18:19

by jin_xi » Post

lol

twoelk
Member
Posts: 1482
Joined: Fri Apr 19, 2013 16:19
GitHub: twoelk
IRC: twoelk
In-game: twoelk
Location: northern Germany

by twoelk » Post

aldobr wrote:Why is no one interested in this tool ?
not true :-)

have built some blocks with it.
Minetest Logo Display Block as example:
Model in Sproxel
result ingame

Problems:
  • had to convert some of the textures to work
  • had to adjust the mapping of the textures as they were all over the place
  • the resulting structur was mirrored or flipped or whatever so had to tweek that
sadly I never got around to document (or fully understand) what I did, so I never posted comments :-(

....but when Rubenwardy asked for suggestions for his NodeBox Editor I did name the Sproxel format as import possability (see discussion on IRC, scroll up and down a little to se the full context and his remarks)

Kodiologist
Member
Posts: 13
Joined: Fri Dec 27, 2013 18:06
Contact:

by Kodiologist » Post

Wuzzy wrote:Sadly without GNU/Linux support, so it’s nothing for me. :-(
Although their Google Code site has no LInux binaries, they have instructions for building on Linux.

User avatar
Esteban
Member
Posts: 873
Joined: Sun Sep 08, 2013 13:26
In-game: Esteban
Contact:

Re: [TOOL]Sproxel Minetest Nodebox exporter updated [TOOL]

by Esteban » Post

Please, does anyone have a copy of the python script, the link seems broken.
Scan avatar or click here to read a Message of Hope (PDF)

twoelk
Member
Posts: 1482
Joined: Fri Apr 19, 2013 16:19
GitHub: twoelk
IRC: twoelk
In-game: twoelk
Location: northern Germany

Re: [TOOL]Sproxel Minetest Nodebox exporter updated [TOOL]

by twoelk » Post

This one seems to be the last one I downloaded :
mtnodebox_export.zip
(1.65 KiB) Downloaded 147 times

User avatar
Esteban
Member
Posts: 873
Joined: Sun Sep 08, 2013 13:26
In-game: Esteban
Contact:

Re: [TOOL]Sproxel Minetest Nodebox exporter updated [TOOL]

by Esteban » Post

twoelk wrote:This one seems to be the last one I downloaded :
mtnodebox_export.zip
Thanks!
Scan avatar or click here to read a Message of Hope (PDF)

tbillion
Member
Posts: 190
Joined: Wed Apr 03, 2013 16:07
Location: 38381, US, TN, Toone
Contact:

Re:

by tbillion » Post

Wuzzy wrote:Sadly without GNU/Linux support, so it’s nothing for me. :-(
VirtualBox is your friend :) that how i run all my windows junk, I keep my little pet Windoze XP in a nice little box where his viruses and problems will not affect my good day :)

tbillion
Member
Posts: 190
Joined: Wed Apr 03, 2013 16:07
Location: 38381, US, TN, Toone
Contact:

Re: [TOOL]Sproxel Minetest Nodebox exporter updated [TOOL]

by tbillion » Post

does anyone still have this plug in?

Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 11 guests