Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (542)
Games in Android Showcase (133)
games submitted by our members
Games in WIP (604)
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 5 ... 15
  ignore  |  Print  
  Wurm Online  (Read 101466 times)
0 Members and 1 Guest are viewing this topic.
Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #60 - Posted 2003-07-22 12:14:17 »

Quote
I'd need to z-sort everything each frame, and there can be up to a thousand trees and a thousand "grasspatches" in view at the same time..

That's 4000 multiplications and 2000 sqrts.  :-/


I'm not sure exactly what is happening in this case.. but wonder if for sorting purposes you can compare distance squared instead of distance.. thus avoiding a square root calculation.

Offline Markus_Persson

JGO Wizard


Medals: 16
Projects: 19


Mojang Specifications


« Reply #61 - Posted 2003-07-22 12:17:42 »

Ah, yes, of course. Doh.


My fps drops from ~45 to ~30 when I'm sorting the grass and rendering it blended. And it doesn't really look that good.

Play Minecraft!
Offline Markus_Persson

JGO Wizard


Medals: 16
Projects: 19


Mojang Specifications


« Reply #62 - Posted 2003-07-22 12:19:23 »

Quote
/me is jealous of all others being able to see this beautiful world

Maybe I should pray to "Nick" so that he fixes the linux bug by some of his "godly powers" Grin


The other linux user who used to get the same error as you claims it works for him.. I'm not sure if he's just bluffing to get away from bugtesting for me, or if he's telling the truth. Wink

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

Junior Devvie





« Reply #63 - Posted 2003-07-22 12:24:38 »

Hehe  Grin

Well, it's exactly the same bug as the first time - just that it worked in version ?0.13?. Very strange -
if you could ask him what version of java he's using and what driver (ati card maybe?)

I've got 1.4.2 and nvidia's latest (geforce2 mx) - could that be something?

i.e.
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
Java Web Start 1.4.2 Konsol, startades Tue Jul 22 15:54:03 CEST 2003
Java 2 Runtime Environment: Version 1.4.2 av Sun Microsystems Inc.
Loggar till filen: /home/anders/log.txt
Startup
Startupped
java.lang.reflect.InvocationTargetException
        at java.awt.EventQueue.invokeAndWait(Unknown Source)
        at javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
        at com.wurmonline.client.WurmClient.clientTick(WurmClient.java:243)
        at com.wurmonline.client.WurmClient.run(WurmClient.java:191)
        at com.wurmonline.client.WurmClient$4.run(WurmClient.java:299)
Caused by: net.java.games.jogl.GLException: Error making context current
        at net.java.games.jogl.impl.x11.X11GLContext.makeCurrent(X11GLContext.java:138)
        at net.java.games.jogl.impl.x11.X11OnscreenGLContext.makeCurrent(X11OnscreenGLContext.java:108)
        at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:156)
        at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:179)
        at net.java.games.jogl.GLCanvas.display(GLCanvas.java:84)
        at com.wurmonline.client.WurmClient$3.run(WurmClient.java:247)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Linux
java.lang.NullPointerException
        at com.wurmonline.client.gui.WorldView.gameTick(WorldView.java:557)
        at com.wurmonline.client.WurmClient.gameTick(WurmClient.java:234)
        at com.wurmonline.client.WurmClient.run(WurmClient.java:215)
        at com.wurmonline.client.WurmClient$4.run(WurmClient.java:299)
[anders@mlundburken anders]$


Could it be that it's using an old, cached, version of jogl?

I'll try removing all javaws cache I can find and try again Sad

EDIT: no success Sad
Offline Markus_Persson

JGO Wizard


Medals: 16
Projects: 19


Mojang Specifications


« Reply #64 - Posted 2003-07-22 12:31:14 »

The "solution" to the problem last time was to force the awt dispatch thread to do all opengl rendering.
Doing that also fixed an occational crash that happened when I was moving a JWindow while the opengl window was repainting.

I'll add some random sanity checking. =/

Play Minecraft!
Offline Markus_Persson

JGO Wizard


Medals: 16
Projects: 19


Mojang Specifications


« Reply #65 - Posted 2003-07-22 12:43:19 »

ok, it System.out what thread is going in there in the first place now, and I pushed some random code around.

Play Minecraft!
Offline AndersDahlberg

Junior Devvie





« Reply #66 - Posted 2003-07-22 13:06:13 »

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
Java Web Start 1.4.2 Konsol, startades Tue Jul 22 17:02:01 CEST 2003
Java 2 Runtime Environment: Version 1.4.2 av Sun Microsystems Inc.
Loggar till filen: /home/anders/log.txt
java.lang.reflect.InvocationTargetException
        at java.awt.EventQueue.invokeAndWait(Unknown Source)
        at javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
        at com.wurmonline.client.WurmClient.clientTick(WurmClient.java:258)
        at com.wurmonline.client.WurmClient.run(WurmClient.java:206)
        at com.wurmonline.client.WurmClient$5.run(WurmClient.java:314)
Caused by: net.java.games.jogl.GLException: Error making context current
        at net.java.games.jogl.impl.x11.X11GLContext.makeCurrent(X11GLContext.java:138)
        at net.java.games.jogl.impl.x11.X11OnscreenGLContext.makeCurrent(X11OnscreenGLContext.java:108)
        at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:156)
        at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:179)
        at net.java.games.jogl.GLCanvas.display(GLCanvas.java:84)
        at com.wurmonline.client.WurmClient$4.run(WurmClient.java:262)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Linux
java.lang.NullPointerException
        at com.wurmonline.client.gui.WorldView.gameTick(WorldView.java:557)
        at com.wurmonline.client.WurmClient.gameTick(WurmClient.java:249)
        at com.wurmonline.client.WurmClient.run(WurmClient.java:230)
        at com.wurmonline.client.WurmClient$5.run(WurmClient.java:314)
[anders@mlundburken anders]$


Strangely familiar! (and, yes, I downloaded and played, ehrm, tried to play, the new version) Grin

EDIT: I'm starting to believe my machine is in the twilight zone or something Smiley
Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #67 - Posted 2003-07-22 14:23:47 »

Quote
For me it connects to the server, the screen goes blood red, and the error messages state "GL: Invalid Enumerant (1280)".


This same thing happens on my ATI mobility. The only difference is that the screen actually shows normally instead of blood red. I get 1 fps and the "GL: Invalid Enumerant (1280)" error over and over.

Are you using a pixel shader or some other later GL/NVidia feature?

Java Game Console Project
Last Journal Entry: 12/17/04
Offline Markus_Persson

JGO Wizard


Medals: 16
Projects: 19


Mojang Specifications


« Reply #68 - Posted 2003-07-22 14:28:06 »

Another person who got that "GL: Invalid Enumerant (1280)" (he was running an  ATi card) thing fixed it by updrading his drivers.

Wurm needs OpenGL 1.4.

I think I'll add a check on startup. Wink

Play Minecraft!
Offline Markus_Persson

JGO Wizard


Medals: 16
Projects: 19


Mojang Specifications


« Reply #69 - Posted 2003-07-22 14:51:25 »

There, it won't start without OpenGL 1.4 now.

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

JGO Wizard


Medals: 16
Projects: 19


Mojang Specifications


« Reply #70 - Posted 2003-07-22 22:58:40 »

AndersDahlberg: Mind trying again? I just made some heavy rewrites.

I'm now using the Animator, like you're supposed to, and I upgraded to the latest version of Jogl.

Play Minecraft!
Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #71 - Posted 2003-07-23 01:35:00 »

Quote
There, it won't start without OpenGL 1.4 now.


What did you do? It works now. Although the grass can slow it down quite a bit at times. The highest FPS I got was 51, and the lowest was 14. This was in a 800x600 window on my NVidia.

Java Game Console Project
Last Journal Entry: 12/17/04
Offline Markus_Persson

JGO Wizard


Medals: 16
Projects: 19


Mojang Specifications


« Reply #72 - Posted 2003-07-23 08:22:26 »

Nothing specific, really.. A minor code overhaul, where I fixed most of the things I was telling myself I'd fix "sometime later, it's not important".

Play Minecraft!
8: Undefined index: online
File: /home/jgo/public_html/Themes/default/Display.template.php (main sub template - eval?)
Line: 161