Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (498)
Games in Android Showcase (115)
games submitted by our members
Games in WIP (562)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2] 3 4
  ignore  |  Print  
  3D Randomly Generated World  (Read 10482 times)
0 Members and 1 Guest are viewing this topic.
Offline Agro
« Reply #30 - Posted 2014-01-21 04:59:47 »

Look at that implosion Cheesy

Offline Zeke

Junior Member


Medals: 1



« Reply #31 - Posted 2014-01-21 20:28:47 »

Still works for me.

Question 1: Why not use Quaternions for camera? - or if you have, it is not working properly.

Question 2: Where is this going? Do you have an end game?

Also, super sonic can get me off the map fyi.
Online Longarmx
« Reply #32 - Posted 2014-01-22 02:36:48 »

@Agro Thanks Tongue

@Zeke Yeah, the camera is a bit fragile at the moment. I might look into it and redo the code. No end game at the moment as this just started off as a simple example for simplex noise. If you have any suggestions, I would love to hear them! I fixed the supersonic problem, but it won't be in the jar until the next release.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline HenBagel
« Reply #33 - Posted 2014-02-16 02:57:45 »

This is some really cool stuff! Cheesy
Online Longarmx
« Reply #34 - Posted 2014-02-16 04:25:59 »

Thanks HenBagel!

Sorry about no developments for a while. School is brutal now and the huge increase in homework has left me no time to work on anything. I plan on trying to make time in the near future to work on this project some more.

Offline ImTroyMiller
« Reply #35 - Posted 2014-05-10 08:37:45 »

Any new developments on this project?

Are you in college?
Online Longarmx
« Reply #36 - Posted 2014-05-10 15:53:04 »

Any new developments on this project?

I have a minor bug fix that I haven't uploaded yet, but nothing major. I hope to be able to start this up again very soon.

Are you in college?

Yes

Offline Gibbo3771
« Reply #37 - Posted 2014-05-10 17:25:37 »

You should get back to this when you have spare time, nice hill generation.

How flexible is it? Are you able to control the height easily? Never done this before, interesting to know how flexible a simple implementation of this is.

"This code works flawlessly first time and exactly how I wanted it"
Said no programmer ever
Online Longarmx
« Reply #38 - Posted 2014-05-10 18:27:48 »

You should get back to this when you have spare time, nice hill generation.

How flexible is it? Are you able to control the height easily? Never done this before, interesting to know how flexible a simple implementation of this is.

I am using simplex noise to generate.

I don't really know where I got this code from but it works perfectly.
SimplexNoise class
SimplexNoise_octave class

Using these classes, I can easily generate a series of points, which are later used to create a mesh.
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
// largestFeature is how often the max and min values are reached (I think)
int largestFeature = 100;
// persistence is how random the points are (while increasing the max and decreasing the min)
float persistence = 0.2f;

SimplexNoise noise = new SimplexNoise(largestFeature, persistence);

// This is used to just create larger features.
float multiplier = 20f;
// Used to move all the points higher or lower
float heightOffset = 0;

// Stores a 2D array of points using the simplex noise.
for(int i = 0; i < map.length; i++)
   for(int j = 0; j < map[0].length; j++)
      map[i][j] = new Vector3f(i + x, (float)noise.getNoise(i + x, j + z) * multiplier + heightOffset, j + z);

// Mesh generation goes here.


You can check out the source code on github to see how I implemented it. (under com.longarmx.smplx.world)

Online Longarmx
« Reply #39 - Posted 2014-05-16 03:38:21 »

Update V0.0.4 is HERE! (finally)

[Change Log]
- Fixed supersonic bug
- Added grass patches
- Added slow walking

Download is in the OP


Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kpars

JGO Wizard


Medals: 79
Projects: 4
Exp: 3 years


Extreme Typist.


« Reply #40 - Posted 2014-05-16 04:03:19 »

May I suggest adding some texture filtering? It doesn't really look like you're trying to go for pixel-art, so I figured it may help.

When looking down at the terrain, you can see the pixelation.

(Click the image for full resolution)


- Jev

Online Longarmx
« Reply #41 - Posted 2014-05-16 04:32:13 »

Yeah, you're right. This is also a problem with the text so I'm going to have to work on it.

Offline Coldstream24
« Reply #42 - Posted 2014-05-17 04:47:37 »

I've tried to download the latest version and run it on my Mac through Terminal. It launches the JVM and then quits without printing anything to console.

EDIT: I tried launching it a different way and it wrote a log:
Quote
Using Java Version: 1.7.0_25
OS: Mac
OpenGL version: 2.1 INTEL-8.26.31 not supported. Requires V:3.0

EDIT 2: According to Intel's website my chip (HD Graphics 5000) has OpenGL 4 support. Hope this helps.

Yes, I am that same incredibly famous Internet musician.
Online Longarmx
« Reply #43 - Posted 2014-05-23 00:10:04 »

Here's a little progress update to keep this project alive.

Grass is now a model, and as you can see, performance has decreased severely. I implemented a rough LOD which helps boost it a little bit, but I am still not happy with the grass. I am considering just using an image that always faces the player.



As always, suggestions and criticism are welcome!


@kpars Done! The game now supports all types of filtering. I am currently using GL_LINEAR for most things.

@Coldstream24 It seems that your graphics card does not want to use OpenGL V4 for some reason. I tried core profiling to 3.2 to try to force the version selection but it seems that glDrawElements gives an error?! I will investigate into this more.

Offline kpars

JGO Wizard


Medals: 79
Projects: 4
Exp: 3 years


Extreme Typist.


« Reply #44 - Posted 2014-05-23 01:13:31 »

I am considering just using an image that always faces the player.

Those are called billboarded sprites, and that's not too bad of an idea.

@kpars Done! The game now supports all types of filtering. I am currently using GL_LINEAR for most things.

Nice.

I also have a couple more questions:
First off, Do you plan to add mipmapping and a lighting engine in the future?
Second, What license is the source code under, did you put it on Git? I'd love to tinker around with this!

- Jev

Offline Mike

JGO Wizard


Medals: 81
Projects: 1
Exp: 6 years


Java guru wanabee


« Reply #45 - Posted 2014-05-23 06:27:56 »

Outerra has awesome looking grass that sways in the wind if you want some inspiration:
http://outerra.blogspot.cz/2012/05/procedural-grass-rendering.html

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline Coldstream24
« Reply #46 - Posted 2014-05-23 08:30:00 »

Quote
Grass is now a model, and as you can see, performance has decreased severely.
Could you only render grass when it's at a certain distance? Have it just fade in?

Yes, I am that same incredibly famous Internet musician.
Online Longarmx
« Reply #47 - Posted 2014-05-24 21:17:45 »

First off, Do you plan to add mipmapping and a lighting engine in the future?

Yes, Both are planned. There is already basic face lighting implemented, but I want to implement shadows.

Second, What license is the source code under, did you put it on Git? I'd love to tinker around with this!

The code is licensed under the Apache 2.0 license. I will soon add the license as a header to every file. The code is on Git, check my signature and feel free to mess around with it!

Outerra has awesome looking grass that sways in the wind if you want some inspiration:
http://outerra.blogspot.cz/2012/05/procedural-grass-rendering.html

Wow! That looks really cool. I'll have to learn how to use geometry shaders I guess  Cheesy

Could you only render grass when it's at a certain distance? Have it just fade in?

The grass is only rendered as a model to a certain distance, then it renders as a flat texture. The model itself is way too high a resolution for more than a couple of patches away, and is dropping the performance quite a bit as a result. Are you referring to fading in as like a fog? This is on the list of features to be implemented, I just need to do some research on it.

Offline kpars

JGO Wizard


Medals: 79
Projects: 4
Exp: 3 years


Extreme Typist.


« Reply #48 - Posted 2014-05-24 21:27:20 »

Are you using TheBennyBox's engine? That's what it looks like Wink

- Jev

Online Longarmx
« Reply #49 - Posted 2014-05-24 21:30:17 »

Are you using TheBennyBox's engine? That's what it looks like Wink

Yes, I am. It's an older version (before all the re-factoring) that I've modified to either expand functionality or increase usability.

Edit: There's a link in the README for anyone who wishes to use/view the most current version of the engine.

Offline Coldstream24
« Reply #50 - Posted 2014-05-25 05:28:24 »

Quote
Are you referring to fading in as like a fog?
Kind of… ever played Half-Life 2? More specifically, the sections on the airboat? I'm just remembering back to that how certain world objects (like grass) would just fade in when you got a certain distance away from them. I'm not talking fog as a whole, but that'd work too I guess.

Yes, I am that same incredibly famous Internet musician.
Online Longarmx
« Reply #51 - Posted 2014-05-25 05:37:02 »

I think I understand what you mean now. You're referring to like how the cubes fade in?


Offline opiop65

JGO Kernel


Medals: 154
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #52 - Posted 2014-05-25 16:33:40 »

Ooh Seed of Andromeda Smiley!

Very nice project you have going on here!

Offline ags1

JGO Ninja


Medals: 62
Projects: 3
Exp: 5 years


Make code not war!


« Reply #53 - Posted 2014-05-25 17:06:26 »

Inspired by The Fog - Survive, State of Fortune, Far Sky, and many others, I have created a 3d randomly generated world using simplex noise in a couple days.

Inspired by The Fog? That's a really nice thing to say, thanks! Your world is looking very good indeed :-)

Online Longarmx
« Reply #54 - Posted 2014-06-15 04:36:14 »

Thank you everyone!

I have been working on refactoring the code and optimizations. I have completely redone the game loop, as well as many other things with hope for multi-threading support very soon! The game no longer crashes and burns whenever it generates new terrain so I guess that's progress to better and more exciting things!

Edit: I completely forgot! I fixed the camera so that it doesn't glitch everywhere.

Online Longarmx
« Reply #55 - Posted 2014-06-21 15:40:55 »

[Version 0.0.5]!

In this update:
  • Grass fields
  • Dirt roads
  • Skybox
  • Multi-threading!

As always, download is in the OP  Smiley


Offline kpars

JGO Wizard


Medals: 79
Projects: 4
Exp: 3 years


Extreme Typist.


« Reply #56 - Posted 2014-06-21 16:50:41 »

Beautiful.

- Jev

Offline Coldstream24
« Reply #57 - Posted 2014-06-21 20:52:41 »

Wow, it's looking great now. What kind of computer are you running it on to be getting 54 FPS? Also, I'm interested to hear what plans you have for this in the future, I think it has quite a lot of potential.

Yes, I am that same incredibly famous Internet musician.
Offline NegativeZero

JGO Knight


Medals: 30
Projects: 2
Exp: 3 years


Zero but not.


« Reply #58 - Posted 2014-06-21 21:22:11 »

You will definitely want to check out this blog post by one of the guys who worked on Titan Quest.
It describes very nice looking texture blending, it is very cool.

OT: You're progressing very nicely ^.^
Online Longarmx
« Reply #59 - Posted 2014-06-21 21:55:08 »

Thanks for the feedback everyone!

Wow, it's looking great now. What kind of computer are you running it on to be getting 54 FPS? Also, I'm interested to hear what plans you have for this in the future, I think it has quite a lot of potential.

Thanks. I am running on an i7 3770 and GTX 660. If I can barely get this on my machine, then some serious optimizations are needed. I plan on implementing frustum culling as soon as I figure out a good method.  Smiley I am also planning to implement connected textures for things like the roads. Feel free to leave a suggestion on what I could add.

You will definitely want to check out this blog post by one of the guys who worked on Titan Quest.
It describes very nice looking texture blending, it is very cool.

OT: You're progressing very nicely ^.^

I assume that you are referring to the border between the road and grass? Thank you for the article, it's an interesting concept. I will probably add it if I'm not happy with the connected textures.


Pages: 1 [2] 3 4
  ignore  |  Print  
 
 

 

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

The first screenshot will be displayed as a thumbnail.

radar3301 (11 views)
2014-09-21 23:33:17

BurntPizza (28 views)
2014-09-21 02:42:18

BurntPizza (18 views)
2014-09-21 01:30:30

moogie (20 views)
2014-09-21 00:26:15

UprightPath (27 views)
2014-09-20 20:14:06

BurntPizza (29 views)
2014-09-19 03:14:18

Dwinin (46 views)
2014-09-12 09:08:26

Norakomi (74 views)
2014-09-10 13:57:51

TehJavaDev (102 views)
2014-09-10 06:39:09

Tekkerue (50 views)
2014-09-09 02:24:56
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!