swpalmer
|
 |
«
Reply #60 - Posted
2003-07-22 14:14:17 » |
|
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.
|
|
|
|
Markus_Persson
|
 |
«
Reply #61 - Posted
2003-07-22 14: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.
|
|
|
|
Markus_Persson
|
 |
«
Reply #62 - Posted
2003-07-22 14:19:23 » |
|
/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"  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. 
|
|
|
|
Games published by our own members! Check 'em out!
|
|
AndersDahlberg
|
 |
«
Reply #63 - Posted
2003-07-22 14:24:38 » |
|
Hehe  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  EDIT: no success 
|
|
|
|
|
Markus_Persson
|
 |
«
Reply #64 - Posted
2003-07-22 14: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. =/
|
|
|
|
Markus_Persson
|
 |
«
Reply #65 - Posted
2003-07-22 14:43:19 » |
|
ok, it System.out what thread is going in there in the first place now, and I pushed some random code around.
|
|
|
|
AndersDahlberg
|
 |
«
Reply #66 - Posted
2003-07-22 15: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) EDIT: I'm starting to believe my machine is in the twilight zone or something 
|
|
|
|
|
jbanes
|
 |
«
Reply #67 - Posted
2003-07-22 16:23:47 » |
|
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?
|
|
|
|
Markus_Persson
|
 |
«
Reply #68 - Posted
2003-07-22 16: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. 
|
|
|
|
Markus_Persson
|
 |
«
Reply #69 - Posted
2003-07-22 16:51:25 » |
|
There, it won't start without OpenGL 1.4 now.
|
|
|
|
Games published by our own members! Check 'em out!
|
|
Markus_Persson
|
 |
«
Reply #70 - Posted
2003-07-23 00: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.
|
|
|
|
jbanes
|
 |
«
Reply #71 - Posted
2003-07-23 03:35:00 » |
|
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.
|
|
|
|
Markus_Persson
|
 |
«
Reply #72 - Posted
2003-07-23 10: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".
|
|
|
|
mbw
Guest
|
 |
«
Reply #73 - Posted
2003-07-23 10:38:28 » |
|
That rocks !!!! mouselook would be great, to watch the nightly sky  Greets !
|
|
|
|
|
Markus_Persson
|
 |
«
Reply #74 - Posted
2003-07-23 10:43:59 » |
|
Yeah, as soon as the entire team gets back from vacations and so next week, we're going to sit down and discuss the client ui. The way it works now, with having to focus the canvas to move, and the "messages"-frame to chat and so is just not working. Btw, you can look up and down with home and end on the numpap. 
|
|
|
|
AndersDahlberg
|
 |
«
Reply #75 - Posted
2003-07-23 14:56:12 » |
|
hehe: 1 2 3 4 5 6 7 8 9 10 11
| Java Web Start 1.4.2 Konsol, startades Wed Jul 23 16:52:16 CEST 2003 Java 2 Runtime Environment: Version 1.4.2 av Sun Microsystems Inc. Loggar till filen: /home/anders/log.txt net.java.games.jogl.GLException: Error making context current at net.java.games.jogl.impl.x11.X11GLContext.makeCurrent(X11GLContext.java:141) at net.java.games.jogl.impl.x11.X11OnscreenGLContext.makeCurrent(X11OnscreenGLContext.java:111) at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:162) at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:196) at net.java.games.jogl.GLCanvas.display(GLCanvas.java:91) at net.java.games.jogl.Animator$1.run(Animator.java:104) at java.lang.Thread.run(Unknown Source) |
Now I don't get a NPE, just the above stack-trace and a black window. Looks more and more like a jogl bug? EDIT: a black window with a message box 
|
|
|
|
|
Markus_Persson
|
 |
«
Reply #76 - Posted
2003-07-23 18:01:38 » |
|
Yeah, I cleaned up most errors caused by other errors and so..
And, yeah, it does seem more and more like a jogl "bug". =/
|
|
|
|
EgonOlsen
|
 |
«
Reply #77 - Posted
2003-07-24 22:31:43 » |
|
There, it won't start without OpenGL 1.4 now. Great! It doesn't work anymore on my system. I've the latest drivers for my ATI Radeon9700pro installed (Catalyst 3.6) but it keeps telling me that i have OpenGL1.3.3842 and that i need 1.4. Anything else i can do?
|
|
|
|
Philly
Senior Newbie 
Java3D is cool!!!
|
 |
«
Reply #78 - Posted
2003-07-24 22:39:02 » |
|
One of the last times I tired it, it downloaded OpenGL 1.4 for me
|
|
|
|
|
Markus_Persson
|
 |
«
Reply #79 - Posted
2003-07-24 22:44:25 » |
|
Yeah, wait for ATI to get their act together.  Seriously, I added a "skip OpenGL version check" option, to let people who "almost" have opengl 1.4 to still play.  That option will most likely be removed towards release.
|
|
|
|
EgonOlsen
|
 |
«
Reply #80 - Posted
2003-07-24 22:58:09 » |
|
Yeah, wait for ATI to get their act together.  Seriously, I added a "skip OpenGL version check" option, to let people who "almost" have opengl 1.4 to still play.  That option will most likely be removed towards release. Thanx, it works fine now (after disabling the check) and runs @ 30-40fps with everything maxed. Just make the version check a choice-dialog, where it's telling me that i should not continue, but i may do so anyway. I hate it, when applications are telling me what i should have and do and not giving me the option to say: "I really don't care...continue!"
|
|
|
|
Markus_Persson
|
 |
«
Reply #81 - Posted
2003-07-24 23:03:01 » |
|
Good suggestion! When I remove the checkbox in the options, that's what I'll do.
|
|
|
|
gregorypierce
|
 |
«
Reply #82 - Posted
2003-07-29 02:13:55 » |
|
Get the OSX version working. That is all 
|
http://www.gregorypierce.comShe builds, she builds oh man When she links, she links I go crazy Cause she looks like good code but she's really a hack I think I'll run upstairs and grab a snack!
|
|
|
Markus_Persson
|
 |
«
Reply #83 - Posted
2003-07-29 08:37:57 » |
|
sure, if I find someone insane enough to run osx. 
|
|
|
|
kevglass
|
 |
«
Reply #84 - Posted
2003-07-29 08:40:09 » |
|
And that has the developer preview of 10.3  What are the chances of people paying for upgrades to the later version anyway? Kev
|
|
|
|
Markus_Persson
|
 |
«
Reply #85 - Posted
2003-07-29 09:54:36 » |
|
I just realized the .jnlp for Wurm doesn't even support osx yet. I'll have to look around for some examples.
|
|
|
|
Mojomonkey
|
 |
«
Reply #86 - Posted
2003-07-29 12:17:12 » |
|
And that has the developer preview of 10.3  What are the chances of people paying for upgrades to the later version anyway? Kev Chances are pretty good. Same as who upgrades from win98 to win2k to winXP etc. This are not just minor os patches, these are major upgrades. Apple just chose to keep the 10 as the release number. Secondly, Jaguar (10.2) was the same (reported) price as panther (10.3) and now it's required for a lot of programs. I'd say a majority of users have upgraded now.
|
Don't send a man to do a monkey's work.
|
|
|
kevglass
|
 |
«
Reply #87 - Posted
2003-07-29 12:30:38 » |
|
Is this really true? If so, you've put a bunch of my fears to rest.
Thanks Monkey,
Kev
|
|
|
|
swpalmer
|
 |
«
Reply #88 - Posted
2003-07-29 15:25:28 » |
|
I keep reading in Mac World from whiners that write in saying they like the Classic OS 9 environment.. clueless dolts! I know that 10.2 is required for a lot of things and was apparently quite a significant upgrade. I think the cost is $99 US to upgrade.. not too much considering what you get. But the Apple users seem to be very finicky if you ask me. They are split over the whole OS X/Classic thing.. I suspect most of them see the huge leaps forward that is OS X.. it is just a vocal minority that get upset over such silly things as the trash can icon moving to the dock. Unfortunately the Mac market is still small enough that it hardly matter if they upgraded to 10.3 or not.. they will still represent a tiny percentage of your users  .. I think a lot more people would be running OS X if Macs were a bit cheaper. But after 'switching' I can definitely say "you get what you pay for".. even though the graphics performance in Java 1.4 on Mac needs a good dose of optimizations. Anyway I know that I will be upgrading to Panther when it becomes available, sometime this fall - September is what I've heard.
|
|
|
|
AndersDahlberg
|
 |
«
Reply #89 - Posted
2003-07-29 22:12:21 » |
|
Yay, your game runs ok on my home computer (I've been on a long vacation  ! Almost spooky walking around the forrest - the trees look angry (noticed the "evil" faces they have if you view them from a certain angle?  10+ fps when all maxed out and walking in heavy forrest - otherwise ~20-30 fps (even higher when swimming  running at 1024x768 because it looks like when it tries to change display mode it selects a very high refresh rate (150hz) which my monitor can't handle. 900mhz athlon geforce 2mx win2k + java 1.4.2
|
|
|
|
|
|