Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (579)
games submitted by our members
Games in WIP (500)
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
  ignore  |  Print  
  Mini 3D FPS in an Applet Update 9  (Read 17689 times)
0 Members and 1 Guest are viewing this topic.
Offline gouessej

« In padded room »



TUER


« Reply #30 - Posted 2008-09-19 11:39:27 »

I'm going to test it at home. I spoke about your engine recently to the author of JavaGL and TESSERACT, I advised him to use your engine because he is writing a 3D software engine for applets :s I'm impatient to see the improvement in the controls Smiley

Offline Juriy

Junior Member





« Reply #31 - Posted 2008-09-19 20:00:12 »

I've ran out of memory :-((
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
Exception in thread "Thread-18" java.lang.OutOfMemoryError: Java heap space
   at net.dzzd.core.an.d(Unknown Source)
   at net.dzzd.core.an.a(Unknown Source)
   at net.dzzd.core.an.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Exception in thread "Thread-19" java.lang.OutOfMemoryError: Java heap space
   at net.dzzd.core.w.buildMipMap(Unknown Source)
   at net.dzzd.core.w.build(Unknown Source)
   at net.dzzd.core.an.build(Unknown Source)
   at net.dzzd.core.an.a(Unknown Source)
   at net.dzzd.core.an.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Exception in thread "Thread-17" java.lang.OutOfMemoryError: Java heap space
   at net.dzzd.core.w.buildMipMap(Unknown Source)
   at net.dzzd.core.w.build(Unknown Source)
   at net.dzzd.core.an.build(Unknown Source)
   at net.dzzd.core.an.a(Unknown Source)
   at net.dzzd.core.an.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

http://voituk.kiev.ua - java tutorials, tips and tricks (Russian)
Offline DzzD
« Reply #32 - Posted 2008-09-19 23:38:55 »

Quote
java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
   at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
   at sun.awt.Win32GraphicsConfig.createAcceleratedImage(Unknown Source)
   at sun.awt.windows.WComponentPeer.createImage(Unknown Source)
   at java.awt.Component.createImage(Unknown Source)
   at FPSSample.startOnce(FPSSample.java:219)
   at FPSSample.start(FPSSample.java:208)
   at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

hum seems that this is this line :

1  
this.bgi=this.createImage(this.getWidth(),this.getHeight());


It means that the start method of the applet has been called before applet has been sized, this is strange, I am not sur that it is a normal case in the applet life cycle ?? I will try to cach such case




Quote
I'm going to test it at home. I spoke about your engine recently to the author of JavaGL and TESSERACT, I advised him to use your engine because he is writing a 3D software engine for applets :s I'm impatient to see the improvement in the controls

thanks, I am still working to improve the control and the 3DzzD API , this sample is a piece of the current work I am doing to implement lightmapping , in this one there is only the light map, in next one I will add diffuse texture.

NB: I have realised that a cupple of people think that 3DzzD work with GC and is not software even if it is compatible with Java 1.1 as TESSERACT author who dont want to trust that 3DzzD is software .... that's finally pretty cool Wink




Quote
Exception in thread "Thread-18" java.lang.OutOfMemoryError: Java heap space
   at net.dzzd.core.an.d(Unknown Source)
   at net.dzzd.core.an.a(Unknown Source)
   at net.dzzd.core.an.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Exception in thread "Thread-19" java.lang.OutOfMemoryError: Java heap space
   at net.dzzd.core.w.buildMipMap(Unknown Source)
   at net.dzzd.core.w.build(Unknown Source)
   at net.dzzd.core.an.build(Unknown Source)
   at net.dzzd.core.an.a(Unknown Source)
   at net.dzzd.core.an.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Exception in thread "Thread-17" java.lang.OutOfMemoryError: Java heap space
   at net.dzzd.core.w.buildMipMap(Unknown Source)
   at net.dzzd.core.w.build(Unknown Source)
   at net.dzzd.core.an.build(Unknown Source)
   at net.dzzd.core.an.a(Unknown Source)
   at net.dzzd.core.an.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
I think it should be ok now, I have reduce a texture from 2048 to 1024, and it seems that it should now work on standard JVM memory setting


thanks all for feed back, it help a lot

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

« In padded room »



TUER


« Reply #33 - Posted 2008-09-20 09:41:09 »

NB: I have realised that a cupple of people think that 3DzzD work with GC and is not software even if it is compatible with Java 1.1 as TESSERACT author who dont want to trust that 3DzzD is software .... that's finally pretty cool Wink
I told him to look at your source code, he didn't answer about this point. I explained to him that he was not alone to write such kind of engine, I explained to him that there were already some technologies to write 3D games on mobile phones (M3G 1.0, JOGL-ES, Mascot Capsule) and he denied the obvious. The problem is that he was trying to convince people that there is no light cross-platform technology to write FPS on PC and mobile phone in Java. He denied these accusations. However, if some newbies read that, they could believe he said the truth and then they could begin reinventing the wheel... It would be fine if you could come to the forum of "Games Creators Network" at least to defend your own engine :
http://forum.games-creators.org/showthread.php?p=59488
If people believe that your engine works in hardware rendering when it works in software rendering, it means that you have made an excellent job Smiley

I have tested your latest update. It is very good, maybe a bit too dark. It is playable. I haven't reproduced the problem I had with the previous update

Offline DzzD
« Reply #34 - Posted 2008-10-10 01:07:23 »

Update 5

About the API :
- full review of collision engine, there was a bug on face edge collision, should be ok now

About the FPS : (only few updates...)
- try the idea of Markus_Persson about a mouse dead zone
- and as Ben has suggested, added some more particles for impacts.

and that hugly sources code is available



http://demo.dzzd.net/FPSSample5/

http://demo.dzzd.net/FPSSample5/sources.zip (no JOGL libraies inside for smaller size)


I guess it's possible to get used to it. I'd like a "dead zone" in the middle though, where the view is totally still. Like, for example, as long as the mouse is within a 32 pixel radius of the center of the screen.

I have added a dead zone of 50px, your feedbacks on this one are welcome

Quote
If you were planning to develop it further, I would say that a few more damage particles would be nice
yup

Offline EgonOlsen
« Reply #35 - Posted 2008-10-10 08:07:44 »

It's MUCH better with the dead zone IMHO. It's actually playable now, after you get used to it. Before that change, i felt like a drunk staggering around in the level. But what am i supposed to do? I saw one enemy right at the beginning, but it seemed to be stuck in the ground or something and i wasn't able to kill it... Huh

Offline zammbi

JGO Coder


Medals: 4



« Reply #36 - Posted 2008-10-10 08:52:10 »

Unable to run it on my windows xp computer
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  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
57  
58  
59  
60  
61  
62  
63  
64  
65  
66  
67  
68  
69  
70  
71  
72  
73  
74  
75  
76  
77  
78  
79  
80  
81  
82  
83  
84  
85  
86  
87  
88  
89  
90  
91  
92  
93  
94  
95  
96  
97  
98  
99  
100  
101  
102  
103  
104  
105  
106  
107  
108  
109  
110  
111  
112  
113  
114  
115  
116  
117  
118  
119  
120  
121  
122  
123  
124  
125  
126  
127  
128  
129  
130  
131  
132  
133  
134  
java.lang.InternalError: couldn't create component peer
   at sun.awt.windows.WComponentPeer.checkCreation(Unknown Source)
   at sun.awt.windows.WComponentPeer.<init>(Unknown Source)
   at sun.awt.windows.WCanvasPeer.<init>(Unknown Source)
   at sun.awt.windows.WPanelPeer.<init>(Unknown Source)
   at sun.awt.windows.WWindowPeer.<init>(Unknown Source)
   at sun.awt.windows.WDialogPeer.<init>(Unknown Source)
   at sun.awt.windows.WToolkit.createDialog(Unknown Source)
   at java.awt.Dialog.addNotify(Unknown Source)
   at java.awt.Window.pack(Unknown Source)
   at com.sun.deploy.ui.DialogTemplate.setMultiButtonErrorContent(Unknown Source)
   at com.sun.deploy.ui.UIFactory$4.execute(Unknown Source)
   at sun.plugin.util.PluginSysUtil$SysExecutionThread.run(Unknown Source)
java.lang.reflect.InvocationTargetException
   at java.awt.EventQueue.invokeAndWait(Unknown Source)
   at javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
   at com.sun.deploy.ui.DialogTemplate.setVisible(Unknown Source)
   at com.sun.deploy.ui.UIFactory$4.execute(Unknown Source)
   at sun.plugin.util.PluginSysUtil$SysExecutionThread.run(Unknown Source)
Caused by: java.lang.InternalError: couldn'
t create component peer
   at sun.awt.windows.WComponentPeer.checkCreation(Unknown Source)
   at sun.awt.windows.WComponentPeer.<init>(Unknown Source)
   at sun.awt.windows.WCanvasPeer.<init>(Unknown Source)
   at sun.awt.windows.WPanelPeer.<init>(Unknown Source)
   at sun.awt.windows.WWindowPeer.<init>(Unknown Source)
   at sun.awt.windows.WDialogPeer.<init>(Unknown Source)
   at sun.awt.windows.WToolkit.createDialog(Unknown Source)
   at java.awt.Dialog.addNotify(Unknown Source)
   at java.awt.Window.pack(Unknown Source)
   at com.sun.deploy.ui.DialogTemplate$10.run(Unknown Source)
   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForFilter(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)
basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@171ba90
network: Cache entry not found [url: http://demo.dzzd.net/FPSSample5/net/dzzd/access/IScene3DRenderCallBack.class, version: null]
network: Connecting http://demo.dzzd.net/FPSSample5/net/dzzd/access/IScene3DRenderCallBack.class with proxy=DIRECT
network: Connecting http://demo.dzzd.net:80/ with proxy=DIRECT
com.sun.deploy.net.cookie.CookieUnavailableException: No registered plugin for applet ID 1
   at sun.plugin2.main.client.MessagePassingExecutionContext.doCookieOp(Unknown Source)
   at sun.plugin2.main.client.MessagePassingExecutionContext.getCookie(Unknown Source)
   at sun.plugin2.main.client.PluginCookieSelector.getCookieFromBrowser(Unknown Source)
   at com.sun.deploy.net.cookie.DeployCookieSelector.getCookieInfo(Unknown Source)
   at com.sun.deploy.net.cookie.DeployCookieSelector.get(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.setCookieHeader(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.writeRequests(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
   at java.net.HttpURLConnection.getResponseCode(Unknown Source)
   at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
   at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
   at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClassInternal(Unknown Source)
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(Unknown Source)
   at java.security.SecureClassLoader.defineClass(Unknown Source)
   at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
   at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
   at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
basic: error: net/dzzd/access/IScene3DRenderCallBack.
java.lang.NoClassDefFoundError: net/dzzd/access/IScene3DRenderCallBack
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(Unknown Source)
   at java.security.SecureClassLoader.defineClass(Unknown Source)
   at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
   at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
   at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: net.dzzd.access.IScene3DRenderCallBack
   at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClassInternal(Unknown Source)
   ... 10 more
Caused by: java.io.IOException: open HTTP connection failed:http://demo.dzzd.net/FPSSample5/net/dzzd/access/IScene3DRenderCallBack.class
  at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
   at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
   at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   ... 14 more
Exception: java.lang.NoClassDefFoundError: net/dzzd/access/IScene3DRenderCallBack
Ignored exception: java.lang.NoClassDefFoundError: net/dzzd/access/IScene3DRenderCallBack
java.lang.InternalError: couldn't create component peer
   at sun.awt.windows.WComponentPeer.checkCreation(Unknown Source)
   at sun.awt.windows.WComponentPeer.<init>(Unknown Source)
   at sun.awt.windows.WCanvasPeer.<init>(Unknown Source)
   at sun.awt.windows.WPanelPeer.<init>(Unknown Source)
   at sun.awt.windows.WWindowPeer.<init>(Unknown Source)
   at sun.awt.windows.WDialogPeer.<init>(Unknown Source)
   at sun.awt.windows.WToolkit.createDialog(Unknown Source)
   at java.awt.Dialog.addNotify(Unknown Source)
   at java.awt.Window.pack(Unknown Source)
   at com.sun.deploy.ui.DialogTemplate.setErrorContent(Unknown Source)
   at com.sun.deploy.ui.UIFactory$3.execute(Unknown Source)
   at sun.plugin.util.PluginSysUtil$SysExecutionThread.run(Unknown Source)
java.lang.reflect.InvocationTargetException
   at java.awt.EventQueue.invokeAndWait(Unknown Source)
   at javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
   at com.sun.deploy.ui.DialogTemplate.setVisible(Unknown Source)
   at com.sun.deploy.ui.UIFactory$3.execute(Unknown Source)
   at sun.plugin.util.PluginSysUtil$SysExecutionThread.run(Unknown Source)
Caused by: java.lang.InternalError: couldn'
t create component peer
   at sun.awt.windows.WComponentPeer.checkCreation(Unknown Source)
   at sun.awt.windows.WComponentPeer.<init>(Unknown Source)
   at sun.awt.windows.WCanvasPeer.<init>(Unknown Source)
   at sun.awt.windows.WPanelPeer.<init>(Unknown Source)
   at sun.awt.windows.WWindowPeer.<init>(Unknown Source)
   at sun.awt.windows.WDialogPeer.<init>(Unknown Source)
   at sun.awt.windows.WToolkit.createDialog(Unknown Source)
   at java.awt.Dialog.addNotify(Unknown Source)
   at java.awt.Window.pack(Unknown Source)
   at com.sun.deploy.ui.DialogTemplate$10.run(Unknown Source)
   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForFilter(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)


Edit: After a few tries it ran.

Current project - Rename and Sort
Offline gouessej

« In padded room »



TUER


« Reply #37 - Posted 2008-10-10 12:02:49 »

I find it more playable now but it is not like the other FPS, it is strange, I don't know how to explain it.

Offline Wildern

Junior Member





« Reply #38 - Posted 2008-10-10 15:48:20 »

Looks great!
What I find a little disconcerting between this and a traditional FPS is that the targeting reticle moves around the screen rather than staying fixed in the center.  Since the mouse is controlling where you look and where you aim, the center of the screen should always be where I am looking and I should always be aiming where I am looking.
The "drunk" feeling comes from the disconnect between and absolute mouse move for aiming and a relative mouse move for looking.
Offline gouessej

« In padded room »



TUER


« Reply #39 - Posted 2008-10-10 16:33:31 »

What I find a little disconcerting between this and a traditional FPS is that the targeting reticle moves around the screen rather than staying fixed in the center.  Since the mouse is controlling where you look and where you aim, the center of the screen should always be where I am looking and I should always be aiming where I am looking.
The "drunk" feeling comes from the disconnect between and absolute mouse move for aiming and a relative mouse move for looking.
You have found the good words to explain to the author what I think, it is the same feeling.

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

Junior Member





« Reply #40 - Posted 2008-10-10 16:43:55 »

Yes I also agree with these comments about the unnatural controls.

I wouldn't be surprised if the cause is that you don't want to/ can't (Robot permissions) lock the mouse into the applet which is what would be required to have traditional FPS mouse control.

If implemented using Robot you would have to press a button to regain access of your mouse which might be a little annoying in a non-fullscreen web browser game.
Offline DzzD
« Reply #41 - Posted 2008-10-10 20:57:57 »

Quote
Unable to run it on my windows xp computer

I have absolutly no idea where that error come from  Sad, very strange stacktrace, does you JVM was already started, maybe by anther Applet ?

Quote
Yes I also agree with these comments about the unnatural controls.

I wouldn't be surprised if the cause is that you don't want to/ can't (Robot permissions) lock the mouse into the applet which is what would be required to have traditional FPS mouse control.

If implemented using Robot you would have to press a button to regain access of your mouse which might be a little annoying in a non-fullscreen web browser game.

You are right Robot requiere a signed applet and Java above 1.3, I will add it but only as an option (same as hardware rendering), I agree wth the fact that control is disturbing, maybe playing the "futur" game drunk will help Smiley

Quote
It's MUCH better with the dead zone IMHO. It's actually playable now, after you get used to it. Before that change, i felt like a drunk staggering around in the level. But what am i supposed to do? I saw one enemy right at the beginning, but it seemed to be stuck in the ground or something and i wasn't able to kill it...

not really supposed to do anything  Undecided, I wanted a feedback on the control stuff to see if I keep it like this, I will review the current code and make it more clean then I will add some enemy units, but dont really have a precise idea right now...

Offline DzzD
« Reply #42 - Posted 2008-10-11 16:50:56 »

just a notice:
while making some memory improvment , I found some strange issue on Sun JVM VS MS :
memory used now on MS JVM : 12Mo
memory used now on Java 1.6(07) : 39 Mo Shocked

any idea ??

EDIT: ok, sry I found Ms seems to report a wrong value....


Offline DzzD
« Reply #43 - Posted 2008-10-13 22:52:40 »

I find it more playable now but it is not like the other FPS, it is strange, I don't know how to explain it.

once again I have tried to improve player control, this is still different but after tuning and trying I found it become not so bad, but I have used it for so long that I  dont really know...

the dead zone has been reduced (40*40) and the transition from dead zone to moving zone is smoother.

http://demo.dzzd.net/FPSSample6/

NB: once started run away, there is a bot that will kill you only after some seconds if you dont move.

Offline EgonOlsen
« Reply #44 - Posted 2008-10-13 23:46:01 »

the dead zone has been reduced (40*40) and the transition from dead zone to moving zone is smoother.
I liked it more the way it was, because i don't like the smoothing. It feels sluggish again now... Cry

Offline DzzD
« Reply #45 - Posted 2008-11-04 02:22:55 »

ok, I finally found a name for this game : Spider Experiment

and here is the video preview :



Click the screenshot to launch the Video

hum does the name sounds ok ?


Offline DzzD
« Reply #46 - Posted 2008-11-20 23:47:59 »

Update 7:

code review
first enemy unit


NB: sry but spiders cannot be killed yet

http://demo.dzzd.net/FPSSample7/

Offline DzzD
« Reply #47 - Posted 2008-11-25 00:22:36 »

Update 8 :

if as me you are afraid by spiders and hate them, you will love this version Smiley

http://demo.dzzd.net/FPSSample8/

tips: a spider is only dead when it dont move anymore

Offline gouessej

« In padded room »



TUER


« Reply #48 - Posted 2008-11-25 21:37:59 »

Update 8 :

if as me you are afraid by spiders and hate them, you will love this version Smiley

http://demo.dzzd.net/FPSSample8/

tips: a spider is only dead when it dont move anymore
The display gets frozen when I start walking  Sad

Offline DzzD
« Reply #49 - Posted 2008-11-25 22:27:38 »

any console output ? browser is frosen ?? really strange can you give me anymore information ? it start fully software it should not froze anything Sad

Offline gouessej

« In padded room »



TUER


« Reply #50 - Posted 2008-11-26 11:25:02 »

any console output ? browser is frosen ?? really strange can you give me anymore information ? it start fully software it should not froze anything Sad
The walk sound loops continuously and the game doesn't respond. Nothing special in the console, no Java exception. I'm going to try again.

Offline gouessej

« In padded room »



TUER


« Reply #51 - Posted 2008-11-26 13:21:38 »

On a computer under Debian Etch with no sound, the bug is not reproducible.

Offline DzzD
« Reply #52 - Posted 2008-11-26 16:43:41 »

The walk sound loops continuously and the game doesn't respond. Nothing special in the console, no Java exception. I'm going to try again.

hum... maybe that : if you click outside the applet while you press a key to move (one of th arrows) it may cause such problem, isn'it that ?

Offline gouessej

« In padded room »



TUER


« Reply #53 - Posted 2008-11-26 19:07:39 »

hum... maybe that : if you click outside the applet while you press a key to move (one of th arrows) it may cause such problem, isn'it that ?
No sorry. I have just tested a few minutes ago. I can play with your game only if I don't move or it gets frozen.

Offline phu004

JGO Coder


Medals: 4
Projects: 9
Exp: 10 years


NoSuchPersonException


« Reply #54 - Posted 2008-11-26 19:17:27 »

Soild performance here, although switching between soft/hard mode seems a little bit slow(took me about ~7 secs and the applet went black).

I noticed the phong's specular hightlight  on your moving models, they look very nice. I also noticed when you switched to hardware mode,
the models become guround shaded. Does open gl not let you do phong's shading easily?
Offline DzzD
« Reply #55 - Posted 2008-11-26 19:42:51 »

Quote
No sorry. I have just tested a few minutes ago. I can play with your game only if I don't move or it gets frozen.
too bad... only if you dont press any key ? but you can move mouse ?

Quote
Soild performance here, although switching between soft/hard mode seems a little bit slow(took me about ~7 secs and the applet went black).
hardware switch requiere some native libraries download and is doing while the game is running so this is not surprising me, but if you switch back to soft (S) and then to hardware (H) it should be immediate or a lot faster

Quote
I noticed the phong's specular hightlight  on your moving models, they look very nice. I also noticed when you switched to hardware mode,
the models become guround shaded. Does open gl not let you do phong's shading easily?
not really rather I did not try to implement it yet (in software you got a lot more as phong, reflective map, normal) in hardware I only implement few thing as it was/is intended to be a fallback for now but will be improved in the futur, the opengl renderer is a very little class for now.

Offline DzzD
« Reply #56 - Posted 2008-11-27 01:25:39 »

Quote
Quote
No sorry. I have just tested a few minutes ago. I can play with your game only if I don't move or it gets frozen.
too bad... only if you dont press any key ? but you can move mouse ?

I have updated the API, not sure it will help but maybe you can give it another try ? it run fine here Sad it pass the Microsoft 1.1 JVM test !

API updated for this one => http://demo.dzzd.net/FPSSample8/ (it is also a little faster)

NB:
I liked it more the way it was, because i don't like the smoothing. It feels sluggish again now... Cry
Thijs is working on an extension to use the Robot class and than enable FPS control (same kind of extension than the jogl one)


Offline gouessej

« In padded room »



TUER


« Reply #57 - Posted 2008-11-27 11:52:51 »

too bad... only if you dont press any key ? but you can move mouse ?
I can only use the mouse to look around and to shoot, I can switch to hardware mode but I can't go forward or backward.

I have updated the API, not sure it will help but maybe you can give it another try ? it run fine here Sad it pass the Microsoft 1.1 JVM test !
API updated for this one => http://demo.dzzd.net/FPSSample8/ (it is also a little faster)
I will test it when I'm back home at it is reproducible only on my home computer.

Offline Hansdampf

Senior Member


Projects: 3


too offending?


« Reply #58 - Posted 2008-11-27 13:07:32 »

Not that average Joe would try to break the applet, but it seems to be very easy by reloading the page (outofmem, firefox, 1.6 update 10).
I think I managed to work around this in my own applet (yesterday! horay!) by:
- doing nothing in init()
- in start() I wait for the last thread (referenced by a static instance) to finish.


edit: forget what I wrote, my applet is still breakable (but it is difficult). shit.

lots of sillystupid games: http://www.emaggame.com
Offline DzzD
« Reply #59 - Posted 2008-11-27 13:51:05 »

Not that average Joe would try to break the applet, but it seems to be very easy by reloading the page (outofmem, firefox, 1.6 update 10).
I think I managed to work around this in my own applet (yesterday! horay!) by:
- doing nothing in init()
- in start() I wait for the last thread (referenced by a static instance) to finish.


edit: forget what I wrote, my applet is still breakable (but it is difficult). shit.
yup..  there is not any java plugin with a good applet life cycle ... I used to do the following in some Applet (this give good results but not perfect ):
in destroy :

this.getParent().remove(this); => resursivly
System.gc();

this do a better clean of your applet but nothing for the other applets loaded before

Pages: 1 [2] 3
  ignore  |  Print  
 
 

 
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!