Modeling Spherical World in Voxels

shaneroach
Member
 
Posts: 141
Joined: Sat Apr 20, 2013 21:05

Modeling Spherical World in Voxels

by shaneroach » Wed May 22, 2013 03:00

Has anyone seen, heard, or thought of the issue of voxels as they would pertain to modeling spherical worlds? I assume the voxel would have to be a dodecahedron.

I'm not actively lobbying for this as a feature btw. I just think it is an intriguing idea and if anyone in the community has seen or heard anything about the concept. If this is the wrong forum section, my apologies, and please move it where it goes. =)
In order to change yourself, you must believe the change is possible and that there are rewards for making the change.
- Inspired by Hebrews 11:6
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

by paramat » Wed May 22, 2013 04:42

Dodecahedrons dont tile in 3D though as far as i know.
Related to this ... when i released moonlet mod Traxie21 asked if they could be more rounded, and i know how to generate in Minetest (with 3D perlin noise) a large roughly spherical world which has hills on it's surface, it's a quick and easy mod i might do for fun.
Last edited by paramat on Wed May 22, 2013 04:45, edited 1 time in total.
I rely on donations to help provide an income https://forum.minetest.net/viewtopic.php?f=3&t=14935
 

User avatar
12Me21
Member
 
Posts: 826
Joined: Tue Mar 05, 2013 00:36

by 12Me21 » Wed May 22, 2013 04:55

paramat wrote:Dodecahedrons dont tile in 3D though as far as i know.
Related to this ... when i released moonlet mod Traxie21 asked if they could be more rounded, and i know how to generate in Minetest (with 3D perlin noise) a large roughly spherical world which has hills on it's surface, it's a quick and easy mod i might do for fun.

Would it be possible for gravity to work correctly, though?
This is a signature virus. Add me to your signature so that I can multiply.
Don't ever save anything as a JPEG.
 

shaneroach
Member
 
Posts: 141
Joined: Sat Apr 20, 2013 21:05

by shaneroach » Wed May 22, 2013 04:57

paramat wrote:Dodecahedrons dont tile in 3D though as far as i know.
Related to this ... when i released moonlet mod Traxie21 asked if they could be more rounded, and i know how to generate in Minetest (with 3D perlin noise) a large roughly spherical world which has hills on it's surface, it's a quick and easy mod i might do for fun.


You're right. I guess the "truncated octohedron" is the way to go, assuming that can be shoehorned into the concept of voxels.

http://met.iisc.ernet.in/~lord/webfiles/clusters/andreini.pdf

Or how were you planning on doing it? I'd definitely be interested. Have any idea how you'd implement gravity? So there's still up and down...?
Last edited by shaneroach on Wed May 22, 2013 04:58, edited 1 time in total.
In order to change yourself, you must believe the change is possible and that there are rewards for making the change.
- Inspired by Hebrews 11:6
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

by paramat » Wed May 22, 2013 05:21

No the gravity can't change to be perpendicular to the surface :) i mean just something similar to my moonlets but spherical ... you'll see soon when i write the mod.
I rely on donations to help provide an income https://forum.minetest.net/viewtopic.php?f=3&t=14935
 

shaneroach
Member
 
Posts: 141
Joined: Sat Apr 20, 2013 21:05

by shaneroach » Wed May 22, 2013 13:02

paramat wrote:No the gravity can't change to be perpendicular to the surface :) i mean just something similar to my moonlets but spherical ... you'll see soon when i write the mod.


Coool.
In order to change yourself, you must believe the change is possible and that there are rewards for making the change.
- Inspired by Hebrews 11:6
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

by paramat » Wed May 22, 2013 20:46

Okay i wrote this during breakfast this morning. Fly and teleport to 8 1000 8 (top of the sphere) and a 1km lumpy spherical sandstone shell should generate, it may take a few minutes for the first chunks to appear, sorry the generation is slow, up to 1 minute per chunk, this is unavoidable when generating huge structures with LUA. I'm testing it now no images yet, i'm gonna walk to the equator and fall off ...
Last edited by paramat on Wed May 22, 2013 23:42, edited 1 time in total.
I rely on donations to help provide an income https://forum.minetest.net/viewtopic.php?f=3&t=14935
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

by paramat » Wed May 22, 2013 23:35

Okay don't bother with the first version, just a boring sandstone shell, here's the next with 3 layers: dirt, stone and unbreakable slith. Somehow using default stone triggers mapgen to spawn trees on it which is a very cool bug i hope they don't fix. It's still very shallow though just a few nodes.
Last edited by paramat on Wed Jul 17, 2013 02:39, edited 1 time in total.
I rely on donations to help provide an income https://forum.minetest.net/viewtopic.php?f=3&t=14935
 

shaneroach
Member
 
Posts: 141
Joined: Sat Apr 20, 2013 21:05

by shaneroach » Thu May 23, 2013 04:00

I guess I did it right. Just added it to mods and made a new world. I can't seem to jump off the edge. I just get blocked.

How are you getting those cool screen shots? Flying way far away or something?

This looks like it is basically a big, hollow hill though, not something like a planet that someone could circumnavigate, right?

paramat wrote:Image

^ The boring 1 km sandstone prototype, i walked to the equator and fell off.


Image

^ Looks like core mapgen added 1 or 2 nodes of dirt as well as trees.
In order to change yourself, you must believe the change is possible and that there are rewards for making the change.
- Inspired by Hebrews 11:6
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

by paramat » Thu May 23, 2013 08:56

Those screenshots are of partially generated spheres, they take a long time to generate, especially a 1km diameter one. If you generate the whole thing you do indeed get a complete hollow sphere with 3 shells of materials inside each other, it doesn't have to be hollow, that's just to speed up generation. Parameter SRAD is the sphere radius, CENX/Y/Z are the co-ordinates of the centre. A really big 16km diameter sphere would be centre co-ords 8 8000 8, radius = 8000.

Looks better with a fourth layer of dirt with grass like this:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
                local noise1off = noise1 + offset
                if noise1off >= 0 and noise1off < 0.05 then
                    env:add_node({x=x,y=y,z=z},{name="default:dirt_with_grass"})
                elseif noise1off >= 0.05 and noise1off < 0.1 then
                    env:add_node({x=x,y=y,z=z},{name="default:dirt"})
                elseif noise1off >= 0.1 and noise1off < 0.3 then
                    env:add_node({x=x,y=y,z=z},{name="default:stone"})
                elseif noise1off >= 0.3 and noise1off < 0.4 then
                    env:add_node({x=x,y=y,z=z},{name="spherelet:slith"})
                end
Last edited by paramat on Wed Jul 17, 2013 02:38, edited 1 time in total.
I rely on donations to help provide an income https://forum.minetest.net/viewtopic.php?f=3&t=14935
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Thu May 23, 2013 09:53

Nice. Maybe opu could put all your mods into one mod pack and see how generation goes.
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

by paramat » Sun May 26, 2013 01:46

Thanks. Thats a good idea since i have a balanced set of 5 now, 2 up with landup and meru, 2 down with chasm and fissure, and 1 surface river mod.
Last edited by paramat on Sat Jun 15, 2013 07:28, edited 1 time in total.
I rely on donations to help provide an income https://forum.minetest.net/viewtopic.php?f=3&t=14935
 

shaneroach
Member
 
Posts: 141
Joined: Sat Apr 20, 2013 21:05

by shaneroach » Sun May 26, 2013 01:53

I dunno how gravity is implemented in Minetest, but it seems to me that however down is defined, you could just alter it to be defined as toward whatever coordinate is the center of the sphere. Voxels as large in comparison to the character as they are in Minetest become problematic I suppose, and no doubt adding voxels in order to change the ratio enough so that "down" works in any sensible way with the graphics might be a resource hog, but the problem of gravity in and of itself shouldn't be such a big deal?

This is why I keep going back to thinking those truncated octahedrons are ideal. They sort of approximate a sphere themselves, and the multiple faces would allow for graphics that can alter when down shifts subtly from one face to the next as you move along while still maintaining a large sized voxel in relation to the character.
In order to change yourself, you must believe the change is possible and that there are rewards for making the change.
- Inspired by Hebrews 11:6
 

User avatar
nomohakon
Member
 
Posts: 207
Joined: Fri Aug 10, 2012 16:34
IRC: nomohakon
In-game: nomohakon

by nomohakon » Sun May 26, 2013 12:49

Planning to build Death Star?
"To learn who rules over you, simply find out who you are not allowed to criticize." - Voltaire
"Knowledge, like air, is vital to life. Like air, no one should be denied it." - Alan Moore, V for Vendetta
- - -
"To never die... and to conquer all, that is winning." ―Illyria
 

User avatar
Inocudom
Member
 
Posts: 2889
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Sun May 26, 2013 14:50

You are very good at what you do, paramat. Small moons like that have the potential to make the sky world a much more interesting place.
 

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

by mauvebic » Sun May 26, 2013 17:16

I know you couldn't screenshot an entire spherical map (30km diameter) but im still curious what the surface would look like :p
"Fuck the hat." - Paulie Gualtieri
 

shaneroach
Member
 
Posts: 141
Joined: Sat Apr 20, 2013 21:05

by shaneroach » Sun May 26, 2013 18:16

paramat wrote:

256m diameter and solid, filled with lava, generates surprisingly quick in 0.4.6, within 1 minute per chunk ... ha yes quick for my mods. Will release as a mod soon, perhaps add ores and fissure caves, a pool of water on top ...


I

>>>LOVE<<<

those screen shots.

Look at the SHADOW on the land beneath.

Oh that is just so cool.
Last edited by shaneroach on Sun May 26, 2013 18:17, edited 1 time in total.
In order to change yourself, you must believe the change is possible and that there are rewards for making the change.
- Inspired by Hebrews 11:6
 

tinoesroho
Member
 
Posts: 570
Joined: Fri Feb 17, 2012 21:55

by tinoesroho » Mon May 27, 2013 16:25

... fan-tas-tic! For some reason, I'm reminded of Super Mario Galaxy-
-"let's a-go!"
We are what we create.

I tinker and occasionally make (lousy) mods. Currently building an MMO subgame and updating mods. Pirate Party of Canada member. Sporadic author. 21 years old.

My github:
https://github.com/tinoesroho/
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

by paramat » Mon May 27, 2013 22:57

Caves and ores next then i'll release it then you can try out anything up to a 16 km radius.

That's no moon.
In the Minetest universe moons are cubic.
Last edited by paramat on Sat Jun 15, 2013 07:29, edited 1 time in total.
I rely on donations to help provide an income https://forum.minetest.net/viewtopic.php?f=3&t=14935
 

shaneroach
Member
 
Posts: 141
Joined: Sat Apr 20, 2013 21:05

by shaneroach » Tue May 28, 2013 00:14

Yeah, well... in the Minetest universe the habitable world is an infinite plane, the sky a firmament from whence the sun and moon spring fully formed over and over again, and the subterranean world an infinite mass extending ever downward into infinity.

Sooooo... may as well call floating spheres a moon. ;-P

I still think your mod is purdy though.
Last edited by shaneroach on Tue May 28, 2013 00:14, edited 1 time in total.
In order to change yourself, you must believe the change is possible and that there are rewards for making the change.
- Inspired by Hebrews 11:6
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

by paramat » Tue May 28, 2013 06:25

shaneroach wrote:This is why I keep going back to thinking those truncated octahedrons are ideal.

That would be a fresh and interesting voxel system, might have a crystalline character to it with all those facets. Seems to me it might be difficult to build vertical and horizontal structures that are always parallel or perpendicular to gravity ... but it would be possible with a world which is itself a truncated octahedron with 14 faces and only 14 different directions of gravity ... then the large scale structure matches the voxel shape.


Image
Last edited by paramat on Tue May 28, 2013 08:03, edited 1 time in total.
I rely on donations to help provide an income https://forum.minetest.net/viewtopic.php?f=3&t=14935
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

by paramat » Tue May 28, 2013 06:47

Just seen that 'patterns' non-cubic voxel sandbox game now has octahedron planetoids:


Image


http://www.youtube.com/watch?v=n4yX8AceeJA
Last edited by paramat on Tue May 28, 2013 07:59, edited 1 time in total.
I rely on donations to help provide an income https://forum.minetest.net/viewtopic.php?f=3&t=14935
 

shaneroach
Member
 
Posts: 141
Joined: Sat Apr 20, 2013 21:05

by shaneroach » Tue May 28, 2013 12:38

paramat wrote:
shaneroach wrote:This is why I keep going back to thinking those truncated octahedrons are ideal.

That would be a fresh and interesting voxel system, might have a crystalline character to it with all those facets. Seems to me it might be difficult to build vertical and horizontal structures that are always parallel or perpendicular to gravity ... but it would be possible with a world which is itself a truncated octahedron with 14 faces and only 14 different directions of gravity ... then the large scale structure matches the voxel shape.



Hmm... Gravity seams. That might be a pain.

I had never heard of "Patterns". Looks cool. Might have to find some vids on YouTube or something. Meh. Doesn't support linux.
Last edited by shaneroach on Tue May 28, 2013 13:00, edited 1 time in total.
In order to change yourself, you must believe the change is possible and that there are rewards for making the change.
- Inspired by Hebrews 11:6
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 3 guests

cron