Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (405)
games submitted by our members
Games in WIP (289)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Tips for making underground caves, buildings?  (Read 457 times)
0 Members and 1 Guest are viewing this topic.
Offline roseslayer

Senior Newbie





« Posted 2013-02-02 19:34:29 »

Hello all!

I'm currently developing a voxel-based 2D game. I'm using int random for generating the world but for generating smooth caves I think that random amount of blocks -> air isn't the best option so I'm not asking any source code or whatever (because I am trying to learn) but what might be the best option for generating smooth caves or random buildings. I hope it will be quickle responded because tonight I have alot of time making the generating code. I'm currently making the world by Tiles/Blocks that are 13pixels in height as in width. The best and smoothest option is always the best!

-Roseslayer
Online Danny02

JGO Knight


Medals: 36



« Reply #1 - Posted 2013-02-02 19:38:14 »

at first^^ you can't have Voxels in only two dimensions, you can have Arxels if you want.  Cool

coming back to your question, you are probably looking for noise functions. Google is ofcourse your friend, but there are many threads already on this forum on this topic.
search for: noise, perlin
Offline roseslayer

Senior Newbie





« Reply #2 - Posted 2013-02-02 19:42:12 »

Oke I will search for them, thanks alot mate!
I just love Voxels as a word I guess. but whatever

-RoseSlayer
Games published by our own members! Check 'em out!
Play the free demo of Revenge of the Titans!
Offline sproingie
« Reply #3 - Posted 2013-02-02 20:29:43 »

"Voxel" is an abbreviation for "volumetric pixel".  What's an "arxel"?
Online Danny02

JGO Knight


Medals: 36



« Reply #4 - Posted 2013-02-02 21:37:57 »

VOlume X ELement
ARea X ELement Wink

ps: just made it up, but if it becomes famous you heard it from me first Cheesy
Offline HeroesGraveDev

JGO Wizard


Medals: 63
Projects: 8


Muahahahahahaha...


« Reply #5 - Posted 2013-02-02 21:41:35 »

A 2D voxel is a pixel.

Offline sproingie
« Reply #6 - Posted 2013-02-02 23:19:47 »

If your "pixels" are themselves textured, we usually call those "tiles".
Offline Best Username Ever

Junior Member





« Reply #7 - Posted 2013-02-02 23:23:51 »

Search the following:

"Random cave generation"
"Procedurally generated cave"
"Random room generation"
"Procedurally generated rooms"
Pages: [1]
  ignore  |  Print  
 
 

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (60 views)
2013-05-17 21:29:12

alaslipknot (69 views)
2013-05-16 21:24:48

gouessej (99 views)
2013-05-16 00:53:38

gouessej (96 views)
2013-05-16 00:17:58

theagentd (107 views)
2013-05-15 15:01:13

theagentd (98 views)
2013-05-15 15:00:54

StreetDoggy (144 views)
2013-05-14 15:56:26

kutucuk (166 views)
2013-05-12 17:10:36

kutucuk (165 views)
2013-05-12 15:36:09

UnluckyDevil (175 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.095 seconds with 21 queries.