True modifiable terrain
True modifiable terrain
This is a part of the game I'm currently working on, but its a big part, so i will make it a separate project : )
Goal is to have terrain that can be modified in all directions, not just lowered or raised like most games have.
It will also feature smooth terrain and different layers, like after digging in the dirt for a while you will hit a rock layer like irl.
That can of course also be mined, but using a pickaxe instead of a shovel.
Features so far:
-Diggable terrain in all directions.
-Using PolyVox to keep track of the voxels that terrain is based on.
-Triplanar texturing for textures and basic ambient and diffuse lightning.
-Texture atlas is implemented but not used atm.
-Can load heightmaps and transform into terrain, save terrain to heightmap, save/load to binary format.
-Bump mapping.
Needs to be done:
-Somehow get voxel material to shader so different textures can be rendered using texture atlas, like dirt, grass and stone.
-Fix some selection bugs.
-A lot of optimizations is needed when rebuilding the mesh, currently the whole mesh is recalculated and redrawn every time.
Screenshots : D
Cube of rock:
Statue cut out from the rock:
Now with bump map:
Goal is to have terrain that can be modified in all directions, not just lowered or raised like most games have.
It will also feature smooth terrain and different layers, like after digging in the dirt for a while you will hit a rock layer like irl.
That can of course also be mined, but using a pickaxe instead of a shovel.
Features so far:
-Diggable terrain in all directions.
-Using PolyVox to keep track of the voxels that terrain is based on.
-Triplanar texturing for textures and basic ambient and diffuse lightning.
-Texture atlas is implemented but not used atm.
-Can load heightmaps and transform into terrain, save terrain to heightmap, save/load to binary format.
-Bump mapping.
Needs to be done:
-Somehow get voxel material to shader so different textures can be rendered using texture atlas, like dirt, grass and stone.
-Fix some selection bugs.
-A lot of optimizations is needed when rebuilding the mesh, currently the whole mesh is recalculated and redrawn every time.
Screenshots : D
Cube of rock:
Statue cut out from the rock:
Now with bump map:
Last edited by Virror on Mon Nov 07, 2011 9:31 pm, edited 3 times in total.
Re: True modifiable terrain
Looks nice. Maybe you could post a demo of it? I'd like to see it in motion.
Working on game: Marrbles (Currently stopped).
Re: True modifiable terrain
As soon as i have managed to fix the bugs related to selection i can upload a small demo.
Currently you can only "dig" in one corner of the cube, the other half cant be selected by the ray tracer for some reason...
Edit: Added bump map, might need a bit of a tweaking though, but its late and im going to bed : )
Currently you can only "dig" in one corner of the cube, the other half cant be selected by the ray tracer for some reason...
Edit: Added bump map, might need a bit of a tweaking though, but its late and im going to bed : )
Re: True modifiable terrain
Looks nice indeed, will keep track of your project.
Re: True modifiable terrain
more more!
-
- Posts: 1010
- Joined: Mon Oct 24, 2011 10:03 pm
- Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d
Re: True modifiable terrain
Nice!
Anyhow, is it possible to have 'infinite' terrain (you can go as far as you like, never hitting an end, you can dig as deep as you want, never ever hitting a 'bottom' and lastly, build as high as you want, the sky isn't a limit
Anyhow, is it possible to have 'infinite' terrain (you can go as far as you like, never hitting an end, you can dig as deep as you want, never ever hitting a 'bottom' and lastly, build as high as you want, the sky isn't a limit
"this is not the bottleneck you are looking for"
Re: True modifiable terrain
Absolutely, I have that in a project right now. Not a Minecraft clone and no digging, but still an unlimited terrain.
The keyword is synthesizable/procedural.
The keyword is synthesizable/procedural.
Re: True modifiable terrain
As hendu said, its possible, the large volume for PolyVox is designed to handle unlimited terrain size : )
Im thinking of doing a big round planet instead for my game, but i have not decided yet, just made some basic tests.
Making a good LOD is a bit trickier when having this kind of terrain though, anyone have a nice article on that somewhere? : p
Im thinking of doing a big round planet instead for my game, but i have not decided yet, just made some basic tests.
Making a good LOD is a bit trickier when having this kind of terrain though, anyone have a nice article on that somewhere? : p
Re: True modifiable terrain
Be careful with that wordVirror wrote:... PolyVox is designed to handle unlimited terrain size : ) ...
Working on game: Marrbles (Currently stopped).
-
- Posts: 1215
- Joined: Tue Jan 09, 2007 7:03 pm
- Location: Leuven, Belgium
Re: True modifiable terrain
QFTserengeor wrote:Be careful with that wordVirror wrote:... PolyVox is designed to handle unlimited terrain size : ) ...
There's no such thing as unlimited when it comes to these kinds of things
Re: True modifiable terrain
Yeah, yeah, unlimited until you run out of harddrive space then ; )
I know there is no such things as unlimited, but its close enough to unlimited since you could probably make it big enough so its impossible to get to the end.
I know there is no such things as unlimited, but its close enough to unlimited since you could probably make it big enough so its impossible to get to the end.
Re: True modifiable terrain
Posting a small test screen i made:
Re: True modifiable terrain
Given enough time, nothing is unlimited, the only thing that makes it appear unlimited is our limited perception.
Looking great the terrain! Maybe you can now even make a planet and do some sort of meteor impact.
Looking great the terrain! Maybe you can now even make a planet and do some sort of meteor impact.
-
- Posts: 1215
- Joined: Tue Jan 09, 2007 7:03 pm
- Location: Leuven, Belgium
Re: True modifiable terrain
Last time I checked my hdd size, working memory size and cpu speed were still rather limitedACE247 wrote:Given enough time, nothing is unlimited, the only thing that makes it appear unlimited is our limited perception.
Looking great the terrain! Maybe you can now even make a planet and do some sort of meteor impact.
Re: True modifiable terrain
Wait gotta rephrase that... Nah, it makes no sense!
Infinity is incredibly long... especially towards the end! LOL (Makes just as much sense!)
So your hard drive isn't very big? I have a 2TB and I just don't have the time to figure out why its allways so full!
Gone off-topic again...
On-topic: Heightmap limits? Could one wack in a Radar Heightmap of mars? (200k+) (Obviously with some serious culling)
I am kind-off into some system whereby I can render High resolution planetary terrain data, currently though i can only do flat projected terrain(Which is rubbish because people then think I think the world is flat...)
Infinity is incredibly long... especially towards the end! LOL (Makes just as much sense!)
So your hard drive isn't very big? I have a 2TB and I just don't have the time to figure out why its allways so full!
Gone off-topic again...
On-topic: Heightmap limits? Could one wack in a Radar Heightmap of mars? (200k+) (Obviously with some serious culling)
I am kind-off into some system whereby I can render High resolution planetary terrain data, currently though i can only do flat projected terrain(Which is rubbish because people then think I think the world is flat...)