Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (109)
games submitted by our members
Games in WIP (536)
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
  ignore  |  Print  
  3D Demo Applet  (Read 8887 times)
0 Members and 1 Guest are viewing this topic.
Offline DzzD
« Posted 2006-01-17 01:05:47 »

Hi,

I just made a very huggly 3D demo with 3DzzD , at least models are not really looking good (I made all scene modeling my self).

I remove collision because for now they are made brut force and are a bit slow.

Control: mouse+keyboard arrows

Control is a bit difficult (try to keep mouse cursor at the center of the applet )

Any body can give me some benchmark ? bug reports ?

http://dzzd.net/demo/3DzzDAP1.201/

Thanks,

Bruno

Ps: I am currently writting documentations for 3DzzD, first alpha release will be soon available.

Offline nva225

Junior Member





« Reply #1 - Posted 2006-01-17 05:42:13 »

10-15 fps, ti-4200, 850 mhz processor.

No significant bugs that I could see, except on occasion this little white dot would float around the top line of my draw window. Seemed to occur when I was in a building and looking forward or slightly up.
Offline DzzD
« Reply #2 - Posted 2006-01-17 08:33:39 »

thanks for reply,

I think that it is more a html prolem (wich I dont care)

Can you tell me your PC OR MAC OS,JVM ?  That will enable me to build a compatibility summary and to fix bugs.

thanks,

Bruno

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

Junior Member




Beyond mind, there is an awareness...


« Reply #3 - Posted 2006-01-17 10:18:32 »

Around 15 FPS on slower machine here. Win XP, Radeon 8500, 2Ghz.
A bit dark when I look around, maybe you are using some extensions that my Radeon 8500 don't support?

Offline DzzD
« Reply #4 - Posted 2006-01-17 10:33:06 »

Around 15 FPS on slower machine here. Win XP, Radeon 8500, 2Ghz.

? wow it is slow ! I get about 40 i/s on my AMD 1.6GHz with sun JVM(1.5) GC X800 and around 20 with MSJVM(1.1) dont understand why it is so slow on your computer  Huh.


A bit dark when I look around, maybe you are using some extensions that my Radeon 8500 don't support?

I only use drawImage an have test it with radeon 7500 on 1.6GHz SUN JVM(1.5) +30i/s

I am not sure but I think I do a regression in last version (especially on smoothing groups and vertex normal) and i think that light is maybe not well calculated now I have to fix this bug.

anyway thanks for feedback!

Bruno

Offline hvor2

Junior Member




Beyond mind, there is an awareness...


« Reply #5 - Posted 2006-01-17 10:51:17 »

? wow it is slow ! I get about 40 i/s on my AMD 1.6GHz with sun JVM(1.5) GC X800 and around 20 with MSJVM(1.1) dont understand why it is so slow on your computer  Huh.
Bruno, it is not surprise, you have X800, which is great card compared to 8500 (not X850 !).
But anyway, I made a mistake, in laptop here is Radeon 7500, not 8500, so small frame rate is explained better...

Offline DzzD
« Reply #6 - Posted 2006-01-17 11:12:05 »

? wow it is slow ! I get about 40 i/s on my AMD 1.6GHz with sun JVM(1.5) GC X800 and around 20 with MSJVM(1.1) dont understand why it is so slow on your computer  Huh.
Bruno, it is not surprise, you have X800, which is great card compared to 8500 (not X850 !).
But anyway, I made a mistake, in laptop here is Radeon 7500, not 8500, so small frame rate is explained better...

Really I must consider that 15 fps on a 2Ghz is a bug,because as I said earlier, I test this demo with my hold CG (Radeon 7500) and I got more than 30 fps with my 1.6Ghz (In fact video card do not make big difference for full software), Do you have any other application using cpu running in the same time? please say yes ;-) I am worried to get a so slow frame rate on a 2Ghz  Sad

Could you please give me you full config:JVM,CPU,MEMORY...?

Bruno

Offline hvor2

Junior Member




Beyond mind, there is an awareness...


« Reply #7 - Posted 2006-01-17 12:58:30 »

Bruno, I have 2Ghz mobile Intel pentium, 1.5 GB RAM, java 1.4 and Radeon 8500.
I turned off my appcilation developer studio and lotus notes, it seems that it helped (I didn't expect them to be cpu eaters). So now fps is 27 - 33, which is as you would expect.
And at first I even didn't realise that I could move around with arrrow keys, silly me! Skybox is looking nice, movement is a little pain, it would be great to constrain look up / down of your camera and to walk instead of fly. Anyway, nice looking.

Offline DzzD
« Reply #8 - Posted 2006-01-17 19:49:17 »

Great, thanks for your time and feedbacks.

I got another feedback in an other forum P4 3.2 geforce ti4200 128 mo : 45-70 fps

Anyother people could bench especially on MAC and linux OS?

Bruno


Offline f.l.x

Senior Member


Projects: 3


there is no place like 127.0.0.1


« Reply #9 - Posted 2006-01-17 20:18:49 »

 Undecided

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
Exception in thread "Image Fetcher 3" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Thread-13" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Thread-18" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Thread-15" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Thread-17" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Thread-10" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Thread-16" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Thread-11" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Thread-8" java.lang.NullPointerException
   at DzzD.m.a(Unknown Source)
   at DzzD.m.run(Unknown Source)
   at java.lang.Thread.run(Thread.java:595)
java.lang.NoSuchMethodError
   at java.lang.Thread.destroy(Thread.java:870)
   at DzzD.m.b(Unknown Source)
   at DzzD.DzzDApplet.destroy(Unknown Source)
   at sun.applet.AppletPanel.run(AppletPanel.java:497)
   at java.lang.Thread.run(Thread.java:595)


amd athlon@1.3ghz, 512m, geforce fx5500, ubuntu linux, jdk1.5.0_05

Litterarum radices amaras, fructus dulces
http://flx.proyectoanonimo.com
figth spam!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline DzzD
« Reply #10 - Posted 2006-01-17 20:39:42 »

 Cry can not do anything for that, it is due to you plugin parameter : for windows->system->properties->java->add parameter -Xmx256m to java parameter if you use sun JVM for microsoft JVM you should not have this problem.

Or, maybe you have enought memory but have launched another applet before? , it seem that JVM is not shutdown when you do not close all browser windows after viewing applet so if you call an applet before you open that demo ant last applet do not clean properly memory it may explain that crash ?

thanks for feedbacks.

EDIT: sorry I just see that you use linux, I dont know where you can increase memory for java on linux  Sad If you know please tell me.

Bruno

Offline f.l.x

Senior Member


Projects: 3


there is no place like 127.0.0.1


« Reply #11 - Posted 2006-01-18 00:36:22 »

AFAIK to specify vm arguments for an applet is on the java web start control panel (weird isn't it? ) edit -> preferences -> java -> applet runtime (or something likely). There you can choose wich jre do you want to use for applets and specify vm arguments. I'll try it tomorrow, i need some sleep now  Grin

Litterarum radices amaras, fructus dulces
http://flx.proyectoanonimo.com
figth spam!
Offline nva225

Junior Member





« Reply #12 - Posted 2006-01-18 01:33:04 »

As you asked, I'm running the 1.5.0_06 JRE. I suppose my slow framerate is being attributed to my processor speed? I don't really know why that would make sense, but you said someone got 45-70 fps on a 3 ghz with a ti-4200 (my card), so what else is there?

EDIT: Thought I should mention as a comparison... on the Ascendancy Demo at http://www.java-gaming.org/forums/index.php?topic=11418.0 I get 50-60 fps, standing back looking at everything with the flashlight turned on. Renders with perfect quality as well.
Offline DzzD
« Reply #13 - Posted 2006-01-18 09:46:17 »

AFAIK to specify vm arguments for an applet is on the java web start control panel (weird isn't it? ) edit -> preferences -> java -> applet runtime (or something likely). There you can choose wich jre do you want to use for applets and specify vm arguments. I'll try it tomorrow, i need some sleep now  Grin

Thanks I will put this information in the documentation.

Does it true on most linux bundle? redhat, fedora,suze,etc...?

Bruno

Offline DzzD
« Reply #14 - Posted 2006-01-18 09:56:26 »

As you asked, I'm running the 1.5.0_06 JRE. I suppose my slow framerate is being attributed to my processor speed? I don't really know why that would make sense, but you said someone got 45-70 fps on a 3 ghz with a ti-4200 (my card), so what else is there?

It is absolutely true that processor make the difference because as I already mentioned 3DzzD is a full software engine and do not use opengl or any hardware acceleration. As you can see It is running embedded into a web page wthout asking user to install anything or to accept a signed stuff. It is also compatible with all JVM version >=1.1 , this also include microsoft JVM.

EDIT: Thought I should mention as a comparison... on the Ascendancy Demo at http://www.java-gaming.org/forums/index.php?topic=11418.0 I get 50-60 fps,....

Yes it is easily understandable because this demo engine use 3D hardware, using a more powerful videocard with that sample will give you a very hight framerate.

...standing back looking at everything with the flashlight turned on. Renders with perfect quality as well....

Note that 3DzzD use a real dynamic phong shading per pixel  Smiley, It is not viewable with that demo because  the light do not move, I will try de put another demo to show this feature.

Thanks for your feedback

Bruno

Offline nva225

Junior Member





« Reply #15 - Posted 2006-01-19 19:11:49 »

Oh wow, I guess I didn't catch onto the fact that it was full software. In that case you're doing pretty good Smiley

And this phong shader thing... would be interesting to see that changing dynamically. If you have some kinda lighting system in addition to those models all running on software that's fairly impressive.

But, all the same, have you ever considered adapting that engine to say.. jogl for applets? Not saying you should, but have you?
Offline DzzD
« Reply #16 - Posted 2006-01-20 01:18:20 »

Thanks,

It is not only software it is also compatible with Java 1.1 and microsoft JVM  Wink.

Yes there are some hold demos online showing phong lighting effect:

http://dzzd.net/demo/face/
http://dzzd.net/?page=DzzDOnlineDemos&action=Ouvrir
http://dzzd.net/demo/landscape/

Note that hey are using an older engine wich is much slower and bugged

For now, I dont want do add 3d hardware support, May be, I will add it when java opengl binding will be more mature.

It may be interesting because 3DzzD include a full scene graph and many advanced function to interact with 3d scene, it also include a small but efficient physic engine, but note the main goal of 3DzzD is to provide a simple and powerful API to produce small Web 3D games or demos embedded into web page (also comercial product presentation) with a maximum compatibility ,for now Java 1.1 is the best way.

Bruno

Offline JoC

Junior Member




I love YaBB 1G - SP1!


« Reply #17 - Posted 2006-01-20 07:45:20 »

This is what it looks like on Mac G5 Java 1.5
Offline DzzD
« Reply #18 - Posted 2006-01-20 08:15:33 »

Texture are not finished loading, you have to wait that all "loading ..." have diseaper even if it show 100%, can you try again  and  wait a bit more and tel me if it works please?

Bruno

Offline JoC

Junior Member




I love YaBB 1G - SP1!


« Reply #19 - Posted 2006-01-20 09:31:50 »

After 5mins it looks like this and I cant move around at all.
Offline DzzD
« Reply #20 - Posted 2006-01-20 11:36:30 »

After 5mins it looks like this and I cant move around at all.


Ok, thanks, same problem as before (on linux) I think it is  "OutOfMemory" can you look at your JVM console and tel me please if I am right?

I will try to optimize memory  next time.

Bruno

Offline JoC

Junior Member




I love YaBB 1G - SP1!


« Reply #21 - Posted 2006-01-20 12:10:12 »

Quote
Exception in thread "Thread-17" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Thread-18" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Image Fetcher 0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-1" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-1" java.lang.OutOfMemoryError: Java heap space
Offline DzzD
« Reply #22 - Posted 2006-01-21 17:58:40 »

a new demo, I add the CLOD terrain engine.


it use a lot of memory: please add -Xmx256m to your java plugin if it is no running

see it in action at http://dzzd.net/demo/3DzzDAP1.202/

Bruno

Offline f.l.x

Senior Member


Projects: 3


there is no place like 127.0.0.1


« Reply #23 - Posted 2006-01-21 18:38:05 »

looks great, but i only get 10-15 fps Sad

Litterarum radices amaras, fructus dulces
http://flx.proyectoanonimo.com
figth spam!
Offline DzzD
« Reply #24 - Posted 2006-01-21 18:42:00 »

I forgot to mention that you may not look at sky for too long time because then the CLOD engine get lost and produce too many faces and so applet can become very slow.

Bruno

Offline nva225

Junior Member





« Reply #25 - Posted 2006-01-22 02:34:33 »

Framerate is about the same on that demo, looks pretty good.

However, your program seems to have trouble with catching and responding to keyboard and mouse events quickly. I can only guess this is because of the high processor demand, and the keyboard thread is getting pushed back. I generally have a one second respond time when hitting keys, and the mouse will, between intervals of working normally, suddenly lock up and hold one direction for a couple of seconds.

Has anyone else noticed this? And if you have/haven't, what's your processor speed? I'm thinking this might occur mostly with lower speeds, i.e. my 850 mhz one.
Offline DzzD
« Reply #26 - Posted 2006-01-23 13:26:38 »

I made some  modifications on last demo for memory problem : reduce texture size

It should now run without memory increase of java plugin an so works also with microsoft JVM.

I also remove the robot wich was not a good looking mesh

http://dzzd.net/demo/3DzzDAP1.202/

Bruno

Offline JoC

Junior Member




I love YaBB 1G - SP1!


« Reply #27 - Posted 2006-01-23 14:47:27 »

Still out of memory here, but I see more than before.
1  
2  
3  
working..finished
Exception in thread "AWT-EventQueue-1" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Thread-47" java.lang.OutOfMemoryError: Java heap space
Offline DzzD
« Reply #28 - Posted 2006-01-23 16:13:15 »

Damn!

I will correct that soon

Thanks,
Bruno

Offline g666

Junior Member





« Reply #29 - Posted 2006-01-23 20:15:41 »

Works for me now (16-17fps on 2ghp4). Looks very nice.

desperately seeking sanity
Pages: [1] 2
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

CogWheelz (18 views)
2014-07-30 21:08:39

Riven (26 views)
2014-07-29 18:09:19

Riven (15 views)
2014-07-29 18:08:52

Dwinin (13 views)
2014-07-29 10:59:34

E.R. Fleming (34 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (43 views)
2014-07-24 01:59:36

Riven (44 views)
2014-07-23 21:16:32

Riven (30 views)
2014-07-23 21:07:15

Riven (31 views)
2014-07-23 20:56:16
List of Learning Resources
by SilverTiger
2014-07-31 18:29:50

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

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

HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54
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!