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 (406)
games submitted by our members
Games in WIP (292)
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 2693 times)
0 Members and 1 Guest are viewing this topic.
Offline orogamo

Senior Member


Medals: 5
Projects: 1



« 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?
Online matheus23

JGO Wizard


Medals: 72
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
?

Take a look at my development Blog: http://matheusdev.tumblr.com
Also look at my RPG Ruins of Revenge
Games published by our own members! Check 'em out!
Play the free demo of Revenge of the Titans!
Offline orogamo

Senior Member


Medals: 5
Projects: 1



« 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

Senior Member


Medals: 5
Projects: 1



« 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

Senior Member


Medals: 5
Projects: 1



« 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

JGO Knight


Medals: 14
Projects: 5


iDream


« 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();
Offline Danny02

JGO Knight


Medals: 36



« 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

Senior Member


Medals: 5
Projects: 1



« 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)
Online matheus23

JGO Wizard


Medals: 72
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

Take a look at my development Blog: http://matheusdev.tumblr.com
Also look at my RPG Ruins of Revenge
Games published by our own members! Check 'em out!
Try the Free Demo of Titan Attacks
Offline Jimmt
« Reply #10 - Posted 2012-10-12 04:18:25 »

Works great, colors on wireframe look awesome Grin
Offline Vladiedoo

Senior Member


Medals: 11



« 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

Senior Member


Medals: 5
Projects: 1



« 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

Senior Member


Medals: 5
Projects: 1



« 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

Senior Member


Medals: 5
Projects: 1



« 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

Senior Member


Medals: 5
Projects: 1



« 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

Senior Member


Medals: 5
Projects: 1



« 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

Senior Member


Medals: 5
Projects: 1



« 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

Senior Member


Medals: 5
Projects: 1



« 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.

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 (67 views)
2013-05-17 21:29:12

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

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

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

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

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

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

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

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

UnluckyDevil (179 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.144 seconds with 20 queries.