Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (530)
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  
  [Open Source]Terrain Generator - Development Halted  (Read 4997 times)
0 Members and 1 Guest are viewing this topic.
Offline orogamo
« Posted 2012-10-09 15:25:24 »

This is the last update  Cry Emo Cranky Stare it had to be done
Download[Src and Jar]
Screenshots
This is totally free (as in "take it and run like hell out of the store spilling all of your beer"  persecutioncomplex)
Generates smooth terrain with Simplex Noise...
Usage:
+, - = adjust world size
w, a, s, d = move around
space, shift = move up and down
q = Toggle Wireframe/Solid+Textured
e = Toggle RenderDistance on/off
r = Reseed the map
z = Toggle between River- and Normal-mode
mouse = look around

Offline Best Username Ever

Junior Member





« Reply #1 - Posted 2012-10-09 17:15:22 »

Someone else will inevitably say it: post some screenshots.
Any special features or is it just meant to be example code?
Offline matheus23

JGO Kernel


Medals: 106
Projects: 3


You think about my Avatar right now!


« Reply #2 - Posted 2012-10-09 17:16:10 »

Someone else will inevitably say it: post some screenshots.
Any special features or is it just meant to be example code?
+1

EDIT: It shows me "Couldn't find appropriate Screen Resolution" or something like that... Maybe deliver a non-fullscreen version
?

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline orogamo
« Reply #3 - Posted 2012-10-09 17:39:08 »

This is Example code and aren't supposed to work out of the box for everyone.
The resolution is 800x600x32 so that might be why you can't open the app.
I updated the binary to probably fix the problem...
Offline orogamo
« Reply #4 - Posted 2012-10-10 09:58:14 »

Fixed "Unable to find appropriate display mode." and "Unable to determine display modes."
Stupid bud, almost to easy... Angry
I wasn't checking for fullscreen when i tried to set display modes, it tried to find fullscreen displaymodes instead of just setting the window size...  Roll Eyes
Offline orogamo
« Reply #5 - Posted 2012-10-10 13:23:48 »

Added Height Coloring(red = above "sealevel", blackish = "sealevel" and blue = below "sealevel")
Added wireframe/solid rendering toggle...
Offline Varkas
« Reply #6 - Posted 2012-10-10 15:57:48 »

Perlin noise is nice for landscapes, but to become more real, you might want to consider to simulate some erosion effects on the generated heightfields.

E.g. fill some of the depressions with sediments, give the smaller hills more rounded tops ... maybe consider rivers cutting into the generated landscape, creating sharp valleys and canyons.

if (error) throw new Brick(); // Blog (german): http://gedankenweber.wordpress.com
Offline Danny02
« Reply #7 - Posted 2012-10-10 16:16:43 »

hi, nice stuff

I have some code lying around to generate normal + ambient occlusion maps from a height profile, I also did an generator to download NASA satellite data and generate a terrain mesh from it. Take a look, perhaps u can use some of it and create a Terrain creation app for all to use Smiley
https://github.com/Danny02/WanderrouteJS
Offline orogamo
« Reply #8 - Posted 2012-10-11 08:09:40 »

Perlin noise is nice for landscapes, but to become more real, you might want to consider to simulate some erosion effects on the generated heightfields.

E.g. fill some of the depressions with sediments, give the smaller hills more rounded tops ... maybe consider rivers cutting into the generated landscape, creating sharp valleys and canyons.

This was just a little project while i had nothing to do at work for about 2-3hours,
 so it's not such a big deal to add lots of features to it. (I'm not gonna use it anyways, but it was cool to play around with Tongue)
Offline matheus23

JGO Kernel


Medals: 106
Projects: 3


You think about my Avatar right now!


« Reply #9 - Posted 2012-10-11 16:35:58 »

Fixed "Unable to find appropriate display mode." and "Unable to determine display modes."
Stupid bud, almost to easy... Angry
I wasn't checking for fullscreen when i tried to set display modes, it tried to find fullscreen displaymodes instead of just setting the window size...  Roll Eyes
Works, wonderful Smiley

Works perfectly (had to give him lwjgl linux natives... but works now).
The noise looks pretty good (not like my SimplexNoise one Grin ) and it looks like you have implemented a mid-displacement algorithm, is that true? Also, could you please say me how fast it is generating? It looks like it's slow with higher world sizes, but i think, thats only because of the rendering...

EDIT: Oh wait... sources

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Jimmt
« League of Dukes »

JGO Kernel


Medals: 128
Projects: 4
Exp: 3 years



« Reply #10 - Posted 2012-10-12 04:18:25 »

Works great, colors on wireframe look awesome Grin
Offline Vladiedoo
« Reply #11 - Posted 2012-10-12 07:26:35 »

I have the source code properly running on my Eclipse. As someone who has only a basic understanding of OpenGL would it be a good learning experience to examine the code and try to make it render a sphere instead of a plane?

Amazing work by the way, I'm still dumbfound at how you completed this all in 2-3 hours.
Offline orogamo
« Reply #12 - Posted 2012-10-12 08:35:51 »

Fixed "Unable to find appropriate display mode." and "Unable to determine display modes."
Stupid bud, almost to easy... Angry
I wasn't checking for fullscreen when i tried to set display modes, it tried to find fullscreen displaymodes instead of just setting the window size...  Roll Eyes
Works, wonderful Smiley

Works perfectly (had to give him LWJGL Linux natives... but works now).
The noise looks pretty good (not like my Simplex Noise one Grin ) and it looks like you have implemented a mid-displacement algorithm, is that true? Also, could you please say me how fast it is generating? It looks like it's slow with higher world sizes, but i think, that's only because of the rendering...

EDIT: Oh wait... sources

First of all, the terrain is generated realtime(you see it get generated in front of you)
If by mid-placement you mean center of map, then YES...
It takes the map size and divides it by two and set camera coordinates accordingly.
Offline orogamo
« Reply #13 - Posted 2012-10-12 08:52:37 »

I have the source code properly running on my Eclipse. As someone who has only a basic understanding of OpenGL would it be a good learning experience to examine the code and try to make it render a sphere instead of a plane?

Amazing work by the way, I'm still dumbfound at how you completed this all in 2-3 hours.

I used the libnoise for java, and it has a Sphere generator, so go for it...
I made this in 2-3 hours because i did not need to make the Perlin-Noise/Map Generator from scratch...
Plus the first "working copy" was made in 2-3 hours, then came the bugs...
Offline orogamo
« Reply #14 - Posted 2012-10-12 08:59:22 »

Tried some simplex noise Tongue




I'll update the bin+src with these features:
Perlin and Simplex toggle
Bug fixes and some code addage
Linux and Mac Natives Cheesy
the end...
Offline orogamo
« Reply #15 - Posted 2012-10-12 11:56:33 »

Screenshots of the unreleased generator
I've added a new smoothing feature
This is the original terrain:


and here is the smoothed one:


Also another one:


I've even added a screenshot function to it Cheesy
Offline orogamo
« Reply #16 - Posted 2012-10-12 15:51:52 »

Created an  album at imgur.com
Will be uploading images there as i go...
Offline Best Username Ever

Junior Member





« Reply #17 - Posted 2012-10-13 18:19:50 »

It's hard to tell what the smoothing does because there is no side by side comparison. Stare
Offline orogamo
« Reply #18 - Posted 2012-10-15 08:22:12 »

It's hard to tell what the smoothing does because there is no side by side comparison. Stare

I call it "Smoothing", but what actually happens is:
invert the deep sea areas, and the whole map then gets lowered...
So this will create a River look. I have also done this with simplex:
Offline orogamo
« Reply #19 - Posted 2012-10-17 13:02:07 »

The last ever big update have been made...
I will still fix bugs if there are any...

Changelog:
Textures - Looks nice
Bug/Performance Fixes
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

Riven (4 views)
2014-07-23 21:16:32

Riven (6 views)
2014-07-23 21:07:15

Riven (6 views)
2014-07-23 20:56:16

ctomni231 (40 views)
2014-07-18 06:55:21

Zero Volt (36 views)
2014-07-17 23:47:54

danieldean (30 views)
2014-07-17 23:41:23

MustardPeter (32 views)
2014-07-16 23:30:00

Cero (47 views)
2014-07-16 00:42:17

Riven (48 views)
2014-07-14 18:02:53

OpenGLShaders (38 views)
2014-07-14 16:23:47
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
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!