Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
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 11294 times)
0 Members and 1 Guest are viewing this topic.
Offline AppleSauce
« Reply #60 - Posted 2014-06-21 22:01:49 »

This is really cool! Is there any limit in the generated world?
Offline Longarmx
« Reply #61 - Posted 2014-06-21 22:06:09 »

This is really cool! Is there any limit in the generated world?

Technically, yes. I think that it is about 2 billion tiles in any direction though, so for all intents and purposes, no.

Edit: Well, if you're curious, here's what it does if you stand at 231-1...


Offline BurntPizza
« Reply #62 - Posted 2014-06-21 22:08:22 »

You'll likely run out of hard drive space before that too I'd imagine.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Longarmx
« Reply #63 - Posted 2014-06-21 22:14:47 »

You'll likely run out of hard drive space before that too I'd imagine.

Actually, I don't save the chunks, so you're always generating them as you move around  Emo I know, one more thing on the todo list.

Offline NegativeZero

JGO Knight


Medals: 30
Projects: 2
Exp: 3 years


Zero but not.


« Reply #64 - Posted 2014-06-21 22:27:47 »

You'll likely run out of hard drive space before that too I'd imagine.

Actually, I don't save the chunks, so you're always generating them as you move around  Emo I know, one more thing on the todo list.

If you're not going to modifying the chunks at all, it may be best to not save them at all, instead just save the seed. Procedural generation has allowed a lot of gamedevs to do some really cool stuff in this way, for example The Elder Scrolls II: Daggerfall had one seed which generated the world which was twice the size of Great Britain and a population of 750,000 spread across 15,000 towns. People often confuse procedural generation with random generation, but you've got the chance here to use procedural generation to create yourself a world.
Offline Coldstream24
« Reply #65 - Posted 2014-06-22 02:43:19 »

I'd love to try this out but I'm getting this exception when I launch it:

Using Java Version: 1.7.0_55
Exception in thread "main" java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)
   at java.lang.Runtime.loadLibrary0(Runtime.java:849)
   at java.lang.System.loadLibrary(System.java:1088)
   at org.lwjgl.Sys$1.run(Sys.java:73)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
   at org.lwjgl.Sys.loadLibrary(Sys.java:95)
   at org.lwjgl.Sys.<clinit>(Sys.java:112)
   at org.lwjgl.opengl.Display.<clinit>(Display.java:135)
   at com.base.engine.Window.createWindow(Window.java:17)
   at com.longarmx.smplx.Main.main(Main.java:322)
   ... 5 more

Using the start.sh file with Terminal I get this:
Error: Unable to access jarfile 3DWorld.jar

Yes, I am that same incredibly famous Internet musician.
Offline Slyth2727
« Reply #66 - Posted 2014-06-22 03:10:21 »

*snip*
Using the start.sh file with Terminal I get this:
Error: Unable to access jarfile 3DWorld.jar

Get the LWJGL natives for your system and run it with this argument "-Djava.library.path='yourNativesFolder'"

Was I before Chuang Tzu who dreamt about being a butterfly, or am I now a butterfly who dreams about being Chuang Tzu?
Offline Longarmx
« Reply #67 - Posted 2014-06-22 03:13:00 »

You should start it with the provided start.sh. It will link the natives for you. I don't know why it can't access the jar file though. What system are you on?

Here's the startup script for those who know anything about this:

Quote
java -Djava.library.path="natives/" -jar 3DWorld.jar

It runs for me on windows, with the exact same code in a .bat file. I'll look around for a solution.

Offline Coldstream24
« Reply #68 - Posted 2014-06-22 03:15:39 »

OK, it's because I wasn't starting Terminal from the right folder. It launches but crashes straight away and prints this:

Using Java Version: 1.7.0_25
Using OpenGL Version: 2.1 INTEL-8.26.34
ERROR: 0:1: '' :  version '330' is not supported
ERROR: 0:3: 'layout' : syntax error syntax error

Yes, I am that same incredibly famous Internet musician.
Offline Longarmx
« Reply #69 - Posted 2014-06-22 03:18:41 »

Sorry, you must have opengl version 3.3 or newer to run. That's weird, it should have recognized that and told you. I might be able to scrape together a 2.1 version if you really want it  Smiley

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Coldstream24
« Reply #70 - Posted 2014-06-22 03:19:25 »

Nah, don't worry about it. It does seem a bit dodgy though, but it could be my drivers.

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

JGO Coder


Medals: 32
Exp: 3 years


White-bearded OGL wizard


« Reply #71 - Posted 2014-06-22 04:07:24 »

Nah, don't worry about it. It does seem a bit dodgy though, but it could be my drivers.
Mesa 10 is out for quite some time now on linux, if you care enough to update your Mesa driver you should be able to try this out.

About your game/app: I didn't give this a whirl yet but it does seem really nice, I will definitely try this out when I have the chance. Smiley

My Blog | Jumpbutton Studio - INOP Programmer
Can't stress enough: Don't start game development until you haven't got the basics of programming down! Pointing
Offline Coldstream24
« Reply #72 - Posted 2014-06-22 04:15:15 »

Ah, I should have mentioned that I'm on OS X.

Yes, I am that same incredibly famous Internet musician.
Offline Longarmx
« Reply #73 - Posted 2014-06-23 19:45:46 »

Update 0.0.5.1 is here!

[Latest Update]
  • Game Launcher!!!
  • Separate logs for each run
  • Debug is hidden by default. Toggle with F1
  • Bug Fix: Grass no longer clumps on chunk borders
  • Bug Fix: Now properly checks opengl version and doesn't run if lower than 3.3
  • Bug Fix: Console now closes after game is started

Let the crashes commence...



Download is in the op  Smiley

Edit: Whoops! Forgot to mention that I might change the name to Orbis.

Offline orange451

JGO Coder


Medals: 11
Projects: 2
Exp: 4 years


Your face. Your ass. What's the difference?


« Reply #74 - Posted 2014-06-23 20:35:54 »

My computer forgot how to run java from a batch file...
This is fun.

Working on a nice FPS in lwjgl Smiley http://i.imgur.com/q4uFqBS.png
Feel free to message me if you're interested!
Offline Slyth2727
« Reply #75 - Posted 2014-06-23 22:40:30 »

Mesa 10 is out for quite some time now on linux, if you care enough to update your Mesa driver you should be able to try this out.

About your game/app: I didn't give this a whirl yet but it does seem really nice, I will definitely try this out when I have the chance. Smiley

I wouldn't look into Mesa drivers... At least for me, they've not had good performance.

Was I before Chuang Tzu who dreamt about being a butterfly, or am I now a butterfly who dreams about being Chuang Tzu?
Offline orange451

JGO Coder


Medals: 11
Projects: 2
Exp: 4 years


Your face. Your ass. What's the difference?


« Reply #76 - Posted 2014-06-24 04:00:13 »

When I run the batch as-is, nothing happens.
When I change "start javaw" to "java" this happens:
Quote
C:\Users\Andrew Hamilton\Desktop\3D World>cd data

C:\Users\Andrew Hamilton\Desktop\3D World\data>java -Djava.library.path="natives
/" -jar 3DOrbisLauncher.jar
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoa
der.java:58)
Caused by: java.lang.RuntimeException: Application launch error
        at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:122)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.UnsatisfiedLinkError: com.sun.glass.ui.win.WinApplication._
invokeLater(Ljava/lang/Runnable;)V
        at com.sun.glass.ui.win.WinApplication._invokeLater(Native Method)
        at com.sun.glass.ui.Application.invokeLater(Application.java:338)
        at com.sun.javafx.tk.quantum.QuantumToolkit.defer(QuantumToolkit.java:62
0)
        at com.sun.javafx.application.PlatformImpl.runLater(PlatformImpl.java:17
3)
        at com.sun.javafx.application.PlatformImpl.runAndWait(PlatformImpl.java:
212)
        at com.sun.javafx.application.PlatformImpl.tkExit(PlatformImpl.java:320)

        at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherIm
pl.java:421)
        at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:
47)
        at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:115)
        ... 1 more

my previous comment about java not working has been fixed. Java seems to be working for all other applications at the moment.


[edit]
After changing the batch file to run 3Dworld.jar as opposed to your launcher, it opens up just fine Smiley

I get 49 fps; which is quite odd as there really isn't anything that intensive going on.

Working on a nice FPS in lwjgl Smiley http://i.imgur.com/q4uFqBS.png
Feel free to message me if you're interested!
Offline Longarmx
« Reply #77 - Posted 2014-06-24 04:25:51 »

Thank you for your feedback.

Could I get your Java version?

About the performance...apparently Display.sync() doesn't like being called in more than one thread. I fixed the issue and now get a solid 60 fps. This will be included in the next update.

Offline Coldstream24
« Reply #78 - Posted 2014-06-24 08:55:50 »

That would make sense, I guess… if Display.sync() makes the render loop wait then lots of calls to this happening concurrently would add up. I was able to launch it under Windows (which makes my issue seemingly OS X-specific) and only get 14FPS. As well as this, the skybox image did not load.

Are you planning on looking into more visual enhancements like anisotropic filtering and anti-aliasing at all in the future?

Yes, I am that same incredibly famous Internet musician.
Offline Longarmx
« Reply #79 - Posted 2014-06-24 14:17:59 »

Thank you for your thoughts.

Could you send me your log? I'm pretty sure I know what happened but I just need to make sure.

I really want to implement antialiasing soon, especially for the grass.


Offline Coldstream24
« Reply #80 - Posted 2014-06-25 09:55:57 »

Here's the log...

Using Java Version: 1.8.0_05
Using OpenGL Version: 4.2.0 - Build 10.18.10.3496
Loading Texture: spritesheet.png
Loading Texture: arista.png
Loading Texture: Above_the_Sea.png

On antialiasing though: I'd suggest having a toggle, because (at least for me) FPS take a huge hit when antialiasing is enabled. I know these are early days yet, but what do you plan for this? Some kind of survival game, maybe?

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

Senior Newbie


Medals: 3
Exp: 2 years



« Reply #81 - Posted 2014-06-25 22:01:03 »

Trying to start via the .bat on Win7 64bit, keep getting this error:

Using Java Version: 1.7.0_55
Exception in thread "main" java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
   at java.lang.ClassLoader.loadLibrary(Unknown Source)
   at java.lang.Runtime.loadLibrary0(Unknown Source)
   at java.lang.System.loadLibrary(Unknown Source)
   at org.lwjgl.Sys$1.run(Sys.java:73)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
   at org.lwjgl.Sys.loadLibrary(Sys.java:95)
   at org.lwjgl.Sys.<clinit>(Sys.java:112)
   at org.lwjgl.opengl.Display.<clinit>(Display.java:135)
   at com.base.engine.Window.createWindow(Window.java:20)
   at com.longarmx.smplx.Main.main(Main.java:295)
   ... 5 more
Offline Longarmx
« Reply #82 - Posted 2014-06-25 22:05:45 »

Have you downloaded the newest version? You must have the wrong .bat if it is trying to start the actual application. The .bat should instead launch the 3DOrbisLauncher.jar. If you have the launcher in the data folder, then change your .bat file to this, otherwise, redownload:

Quote
cd data
start javaw -Djava.library.path="natives/" -jar 3DOrbisLauncher.jar

Coldstream24: Thank you for your feedback.

This bug should be fixed in the next version.

Offline bogieman987
« Reply #83 - Posted 2014-06-25 22:17:17 »

Wow this is cool.

Came across a few bugs though.

Left shift for slow walk, makes me go down slowly when in fly mode.
Zooming in causes the skybox to no longer render.
And there's inconsistency with the generation when you change the settings and generate more mesh.
(For the last one, perhaps having some kind of gradient system, so it changes slowly until it reaches the new values.)

But other than than, awesome work Cheesy

Offline Longarmx
« Reply #84 - Posted 2014-06-25 22:23:40 »

Thanks for trying it!

Left shift for slow walk, makes me go down slowly when in fly mode.

This is intended  Smiley L_SHIFT makes you do down when flying.  Thanks for pointing this out though, because I should change the slow key to something else, or disable it while flying. I should also add this feature to the list of controls.

Zooming in causes the skybox to no longer render.

Thanks for this. This issue is fixed now and will be in the next update. The reason I was changing the far plane when rendering, so it was getting culled.

And there's inconsistency with the generation when you change the settings and generate more mesh.

Thanks for this. It should be fixed in the next update.

Once again, thank you for your feedback  Cheesy

Online LiquidNitrogen
« Reply #85 - Posted 2014-06-25 22:26:42 »

I couldnt get this to work on windows, it just ends up doing nothing, but still having the javaw process running in the background.

Offline Longarmx
« Reply #86 - Posted 2014-06-25 22:28:35 »

Could you change the .bat file to say
java
instead of
start javaw
to get the error message?  Smiley

What java version do you have?

Online LiquidNitrogen
« Reply #87 - Posted 2014-06-25 22:34:13 »

sorry about this but i couldnt find the copy and paste thing in command today lol:
https://www.dropbox.com/s/tlplwrqxafo6in5/3dworlderror.png

ill see if i can update my drivers i guess, but thats still not a very good way for the program to react to the problem.

Offline Longarmx
« Reply #88 - Posted 2014-06-25 22:39:34 »

This is something that JavaFX output. If you don't want to go through the hassle of updating, you can just run the 3DWorld.jar directly by changing the .bat file. (Just switch 3DOrbisLauncher.jar with 3DWorld.jar)

Online LiquidNitrogen
« Reply #89 - Posted 2014-06-25 22:44:42 »

ok tried that but dont get any errors or anything, just an empty black window pops up and dissappears again, no process hanging around in the background. let me know if you want me to try something else or need more info.

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.

Longarmx (45 views)
2014-10-17 03:59:02

Norakomi (35 views)
2014-10-16 15:22:06

Norakomi (27 views)
2014-10-16 15:20:20

lcass (31 views)
2014-10-15 16:18:58

TehJavaDev (61 views)
2014-10-14 00:39:48

TehJavaDev (61 views)
2014-10-14 00:35:47

TehJavaDev (51 views)
2014-10-14 00:32:37

BurntPizza (67 views)
2014-10-11 23:24:42

BurntPizza (39 views)
2014-10-11 23:10:45

BurntPizza (81 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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
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!