[TOOL]Sproxel Minetest Nodebox exporter updated [TOOL]

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

[TOOL]Sproxel Minetest Nodebox exporter updated [TOOL]

by aldobr » Mon Sep 02, 2013 04:33

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/526kb9oqm193ma3/mtnodebox_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: 5796
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Thu Sep 05, 2013 13:44

Nice.

This should probably be in related project, though.
 

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

by Neuromancer » Thu Oct 03, 2013 03:44

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: 3560
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

by Wuzzy » Thu Oct 03, 2013 15:11

Sadly without GNU/Linux support, so it’s nothing for me. :-(
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

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

by aldobr » Sat Oct 05, 2013 23:59

@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
 

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

by aldobr » Tue Jan 14, 2014 01:48

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
 

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

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

by twoelk » Thu Jan 16, 2014 13:01

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

by Kodiologist » Fri Jan 17, 2014 01:08

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
Location: Somewhere in the Caribbean...
GitHub: Esteban-
IRC: Esteban
In-game: Esteban

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

by Esteban » Mon Sep 22, 2014 19:11

Please, does anyone have a copy of the python script, the link seems broken.
 

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

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

by twoelk » Tue Sep 23, 2014 12:30

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

User avatar
Esteban
Member
 
Posts: 873
Joined: Sun Sep 08, 2013 13:26
Location: Somewhere in the Caribbean...
GitHub: Esteban-
IRC: Esteban
In-game: Esteban

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

by Esteban » Tue Sep 23, 2014 12:31

twoelk wrote:This one seems to be the last one I downloaded :
mtnodebox_export.zip

Thanks!
 

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

Re:

by tbillion » Sun Dec 06, 2015 19:50

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: 189
Joined: Wed Apr 03, 2013 16:07
Location: 38381, US, TN, Toone
 


Return to Modding Discussion



Who is online

Users browsing this forum: Bing [Bot] and 6 guests