Shape generator

MarkTraceur
Member
 
Posts: 103
Joined: Sat Dec 03, 2011 05:41

Shape generator

by MarkTraceur » Thu Oct 04, 2012 08:15

How many times has this happened to you?

I want to build a sphere. OOPS IT TURNED OUT AS A CUBE.


We live in uncertain, cuboid times. Sometimes, that's just the way it is. For everything else, there's my new shape generator!

The example instance will allow you to generate some shapes right away, but really, I've only begun to add shapes. I intend to add tori and parabolas within a few days, and may decide to add other shapes based on feedback.

You can also (look at|fork|submit patches for) the source code, most of which is on the hosted version but more of which can be found at the git repository (the repo links appear to be broken right now, but you can easily download snapshots).

Thanks for your feedback in advance, and happy hacking (in minetest and on the code).
Mods: https://gitorious.org/marktraceur-minetest-mods
IRC: marktraceur on freenode
 

cornernote
Member
 
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Thu Oct 04, 2012 08:47

torus would be cool

if you can make the shape you should add it to worldedit, and i'll add it to the gui.

i would also like to use any new shapes in deploy nodes.
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Thu Oct 04, 2012 08:49

Nice work. :)

[edit] Hmm, generating a circle with radius 256 kinda glitches. :P
Last edited by Calinou on Thu Oct 04, 2012 08:50, edited 1 time in total.
 

Sokomine
Member
 
Posts: 2980
Joined: Sun Sep 09, 2012 17:31

by Sokomine » Thu Oct 04, 2012 13:09

Has the area the circle is supposed to end up in already been generated? That's something I do have considerable truble with with my imports. If the area isn't loaded completely, cavegen cuts in and griefs buildings.
A list of my mods can be found here.
 

MarkTraceur
Member
 
Posts: 103
Joined: Sat Dec 03, 2011 05:41

by MarkTraceur » Thu Oct 04, 2012 14:44

cornernote: I intended this for planning purposes, not "make the shape for you" purposes--my code is GPL, so if the WorldEdit author wants to add the formula, very little is stopping them.

Calinou: I will see if I can't speed things up a bit....the problem is in generating huge numbers of jQuery objects, and I'm just not sure I can avoid that. But not to worry, it's all on your computer, so really the only limit is your memory size and your processing speed :)

Sokomine: This software doesn't actually build the shape for you, just shows you the plan. If you are looking for something to do the work for you, you'll want WorldEdit, and if cornernote and/or the other authors port these formulae in, you should be in the clear!
Mods: https://gitorious.org/marktraceur-minetest-mods
IRC: marktraceur on freenode
 

MarkTraceur
Member
 
Posts: 103
Joined: Sat Dec 03, 2011 05:41

by MarkTraceur » Fri Oct 05, 2012 06:32

New version: Now has a torus, but only with one minor diameter (the size field is currently used for total diameter of the widest plane of the torus). Also, free JS should now be marked as such--but I'm willing to change it if I failed this.
Mods: https://gitorious.org/marktraceur-minetest-mods
IRC: marktraceur on freenode
 

MarkTraceur
Member
 
Posts: 103
Joined: Sat Dec 03, 2011 05:41

by MarkTraceur » Fri Oct 05, 2012 06:47

Note that the git repository still won't clone if you use the HTTP link, and the SSH link is only for me.

I'm working on it!
Mods: https://gitorious.org/marktraceur-minetest-mods
IRC: marktraceur on freenode
 


Return to Minetest General

Who is online

Users browsing this forum: No registered users and 16 guests

cron