Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (494)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  New Java3D Demos  (Read 4678 times)
0 Members and 1 Guest are viewing this topic.
Offline boid

Senior Newbie




I love YaBB 1G - SP1!


« Posted 2002-12-11 07:33:44 »

From the java3d-interest list:

Yaarq - Java3D Unleashed

http://swjscmail1.java.sun.com/cgi-bin/wa?A2=ind0212&L=java3d-interest&F=&S=&P=9681

Chess Board

http://swjscmail1.java.sun.com/cgi-bin/wa?A2=ind0212&L=java3d-interest&F=&S=&P=4904
Offline Herkules

Senior Member




Friendly fire isn't friendly!


« Reply #1 - Posted 2002-12-11 09:39:31 »

Looks nice (well, for Java...)

But - constant framerate?

Our system works basically like yours, but WakeupOnElapsedFrames(0) will never deliver constant framerates. Even the Sleep(1) doesn't help. Maybe Sleep(20)? But I'm not sure wether it's a good idea to Sleep() during a Behavior callback.

We headed for WakeupOnElapsedTime(30) and achieved quite smooth results. Additionally, judging from what I see in the demo, this would keep the CPU nearly idle.

Where does the bumpmapping get visible?

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline cknoll

Junior Member




Flame On!


« Reply #2 - Posted 2002-12-11 11:11:48 »

Hey,
 Tried it out with the OGL version of j3d, and, well, no offense to the demo workers, or anything, but it looks kinda like Quake 1 level graphics (it reminded me of descent on my old 486 days), with decent lense flares.  The frame rate was smoothe i was getting constant 60fps, but based on how the ship looked and such, it just seemed very blocky, like not alot of polygons were invovled.  Would be nice if the scene had more curves to their shapes....I also saw no hints of reflections or bumpmapping.  It's a good first start, the models used just need to have a bit more detail to them.  Not that I could do any better, I'm just saying....

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

Senior Member




Friendly fire isn't friendly!


« Reply #3 - Posted 2002-12-11 11:21:23 »

Framerate being high does not mean also that it's constant! Even if the averaged number doesn't vary. But small pauses from time to time (e.g. due to GC cylcles) make any animation unsmooth. Thats very typical for Java games and you can observe it in this demo very clearly.

Quake1: those days you couldn't have fullscreen alpha polys - nowadays you can Smiley

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline pepe

Junior Member




Nothing unreal exists


« Reply #4 - Posted 2002-12-11 11:26:26 »

did the test, the framerate looked quite constant, but with so few polygons, i would not expect less.  Nevertheless, i think java3d has problems with radeon9000 cards. could not get any lighting. will have to test again with old demos to see if it goes better than this.

Home page: http://frederic.barachant.com
------------------------------------------------------
GoSub: java2D gamechmark http://frederic.barachant.com/GoSub/GoSub.jnlp
Offline cknoll

Junior Member




Flame On!


« Reply #5 - Posted 2002-12-11 11:32:39 »

Herk: Yeah, there were definitely noticible GC pauses, maybe j3d wasn't designed for animation, rather designed for clean OO-friendly scene modeling.  Anyways, someone high up needs to put some serious work into eliminating garbage production (it seems).  Here's a question about J3D  comming from someone who knows absolutely nothing about the API: when you create scenes and go through the culling process, etc, are temporary objects created and destroyed, or is it mostly doing set-oriented operations such as removing vertexes from the 'visible set' when it culls (but the vertexes themselves are not duplicated or deleted)?  When you change a camera angle, is a new camera vector created or an existing one modified?  When you do a scene rotation using a certain matrix, is the product of the matrix and scene generating new vertexes or modifying existing ones?

-Chris
Offline Captain-Goatse

Junior Member




I suck at teh 2D. XBOX IS BIG LOL!111


« Reply #6 - Posted 2002-12-11 11:35:44 »

I didn't test the first one, but the chess board had problems with clipping since the chessboard didn't clipped and the screen was filled with whacky outlines of the chessboard when it moved. Otherwise nice.
Offline Herkules

Senior Member




Friendly fire isn't friendly!


« Reply #7 - Posted 2002-12-11 11:58:10 »

cknoll: I assume that Java3D actually does create objects while it is evaluating/sorting/rendering the scenegraph and I also think that this is absolutely ok. It's definitely hard to have a complex OO system of arbitrary size getting along with static/preallocated memory. And it would require even more memory.

Captain-Goatse: seems the Background object is missing or misconfigured.

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline cknoll

Junior Member




Flame On!


« Reply #8 - Posted 2002-12-11 11:58:39 »

I tried the chess one, the effects were nice, still small frame delays tho.  Also, Captian, if you let the demo run for a little while, you'll see this "Jose" logo fly through, when that happens, the clipping region is widened and you don't get that smearing effect fromt he board rotating (it takes about 45 secs for the logo to fly through) once that logo comes in, no more smear and the demo runs pretty well...I like the reflection effects and the lighting, and the marble looks very nice too...and the pieces are not blocky looking at all, very nice curves.

-Chris
Offline cknoll

Junior Member




Flame On!


« Reply #9 - Posted 2002-12-11 12:15:20 »

Herk: Yeah, i'm not saying they shoudln't be allocating memory, just being more paranoid about how it's being used from frame to frame.  I'm the first one to say "get it workin right, then get it workin fast" but they need to start puting considerible effort into optimizations (again, I'm just a outside observer punk giving his opinion).  Based on what Prince says about certain things he has seen, I don't htink my observation is too far off.

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

Junior Member




Rats...


« Reply #10 - Posted 2002-12-11 15:27:19 »

I've tried with 1.4.1-fcs and 1.4.1_01 with Java3d and neither of these demos run for me. The java3d demos works fine with both JVMs.
They just hang and do nothing when I run them from the command line.

When I run the chess demo from the website I get errors like this:

Java VM version: 1.4.1_01
Java VM vendor:  Sun Microsystems Inc.
KJAS: Error java.lang.NoClassDefFoundError: de/jose/Application during applet initialization
java.lang.NoClassDefFoundError: de/jose/Application
     at de.jose.o.a(Unknown Source)
     at de.jose.FlyBy.a(Unknown Source)
     at de.jose.FlyBy.init(Unknown Source)
     at org.kde.kjas.server.KJASAppletStub$2.run(KJASAppletStub.java:198)
     at java.lang.Thread.run(Thread.java:536)

Has anyone been able to make this work under Linux?
Thanks.

Offline Conzar

Junior Member




There is nothing common about common sense


« Reply #11 - Posted 2002-12-11 18:49:45 »

I have tried the space demo.  I'm impressed with the intro and it looks like a pretty cool interface.

However, I have 2 things to suggest.  First, when you do the fullscreen exclusive mode, check to make sure thats available for the platform - I'm usuing linux and when I click on the hardware button - I get a bunch of exceptions halting the program - it should fail nicely telling me its not avaible.
2nd, I don't get sound.  This might be because I'm running linux but I haven't looked at your code to tell.  

Good job over all though Smiley

Ubuntu
Offline Breakfast

Senior Member




for great justice!


« Reply #12 - Posted 2002-12-12 13:07:24 »

Just took a look at the yaarq one and it was quite impressive- a bit chunky windowed ( using the D3D java3d on a brand new P4 with an ATI rage pro 128- dismal card, but I don't use 3d stuff much for work) and crashed altogether in j3d.dll when I tried fullscreen. Good to see some proper lens flares and the like, though.
Offline adamp

Senior Newbie




-x-x-x-


« Reply #13 - Posted 2002-12-16 11:30:47 »

I just downloaded your demo and started it.
Hardware Fullscreen doesn't work correctly.
I can hear the music but nothing was rendered.
The other modes run, but I get only ~1FPS in fullscreen
and ~3FPS in windowed mode.

Your program tells me "1.1.0, missing, missing, failed[1]" (splash screen at startup).
I use Java SDK 1.4.1_01 and Java3D 1.3 under Win XP.
I've got a Athlon 1.4GHz, 256MB RAM, GForce 2.

Since I'm new to Java3D I'm quite impressed. Haven't seen something similar yet!
But do I have some configuration-problem, or why is it running sooo slow?

Greetings, Adam.
Offline abies

Senior Member





« Reply #14 - Posted 2002-12-19 12:53:54 »

Quote
Herk: Yeah, there were definitely noticible GC pauses, maybe j3d wasn't designed for animation, rather designed for clean OO-friendly scene modeling.  Anyways, someone high up needs to put some serious work into eliminating garbage production (it seems).

Java3d itself produces almost no garbage if used correctly. With non-so-trivial app I was able to cut it down to 2 objects allocated each frame inside java3d, both very small.

Quote

Here's a question about J3D  comming from someone who knows absolutely nothing about the API: when you create scenes and go through the culling process, etc, are temporary objects created and destroyed, or is it mostly doing set-oriented operations such as removing vertexes from the 'visible set' when it culls (but the vertexes themselves are not duplicated or deleted)?

There is no object creation involved. In java3d, culling works on object-granularity, not on vertex/triangle.

Quote

When you change a camera angle, is a new camera vector created or an existing one modified?  When you do a scene rotation using a certain matrix, is the product of the matrix and scene generating new vertexes or modifying existing ones?


Inside java3d, all of these objects are reused, so there is no allocation in library.

Artur Biesiadowski
Offline winkman

Senior Newbie




Java games !


« Reply #15 - Posted 2002-12-19 18:33:47 »

Hello all

Wolfgang Kienreich the author of Yaarq asked me to post this statements for him as he recently failed to get an account on java-gaming.org

original message:

Comments on your comments from the developer of Yaarq

First, let me thank you for your interest and let me apologize for not
earlier getting into this discussion, I am not a member of the forums on
java-gaming.org but that will soon change.

Regarding graphics, let me state that I had to do all the textures and
models for the demo on my own. While I appreciate critical review of my
artistical talent, I'm afraid I cannot spend days and months designing
sophisticated  models and textures, so please do not judge the technical
side of Yaarq by model or texture quality. By the way, feel free to insert
new models into the demo, Yaarq is not simply an application but an engine
which easily accepts new media and behavior.

Then, for the hardware or driver problems some of you experienced: I have
tested Yaarq on a PIII with a GeForce2MX card, on a PIII with a GeForce4 TI
4200 card and on a Laptop PVI with a GeForce4 Go. I do not have ATI cards
avaiable (we try to avoid them due to their notoriously unstable drivers)
for testing and anyway, in a high-level lib like Java3D, I'm afraid I cannot
do a thing about driver problems.

Finally, for the framerate stabilisation: I do not pretend I have invented
the best and only method of doing things here. In a trial and error process,
I eliminated several approaches, from setMinFrameCycleTime to Behaviours,
and was left with the method implemented in Yaarq. The stalls occuring
during the first few seconds of the demo are normal, it takes time for the
3D framework to "warm up". No stalls should occure (at least they didn't
show up in my testings) once the demo has run for some time. Again, there is
nothing one can do about that, you can feel the warm-up effect even in
professional productions like Unreal Tournament.

Garbage collection stalls should not occure: I have spent some time in
designing the particel effects (which are the only parts of yaarq "creating"
lots of objects) to employ pooling techniques to avoid constant object
creation and destruction.

For more information on Java gaming performance, you will probably enjoy the
following paper ...

http://www.rolemaker.dk/articles/evaljava/Evaluating%20Java%20for%20Game%20D
evelopment.pdf

... I found it competently written and of great use in designing Yaarq.

Thank you again for your interest in Yaarq, feel free to mail me in private
under nonlinear@aon.at or at work under wkien@know-center.at (again from
January 9th).

Wolfgang Kienreich

====================================================================
Wolfgang Kienreich
Knowledge Retrieval / Knowledge Visualization
Know-Center www.know-center.at
Inffeldgasse 16c, 8010 Graz, Austria
email : wkien@know-center.at
phone : +43 316 820918 647
fax   : +43 316 873 5688
====================================================================
Offline Grom

Junior Member




Rats...


« Reply #16 - Posted 2002-12-19 21:53:27 »

yaarq, and the chess demo work under Linux. The music works too.
It must have been me...

Anyway, great job! The chess and yaarq demos were both smooth as silk at about 50fps. With yaarq I was getting 50fps at 1600x1200 with a GeForce 2 in simulated full screen!

Note: I couldn't tell the difference between simulated full screen and real full screen. Good job.

FYI: With a GeForce2 all of the yaarq features were found. With a TNT2 the dot3 bump mapping wasn't there and the textures were black. With a 2D ATI using Mesa I received 0fps and a black screen LOL. (to be expected)

The chess demo only briefly shows the white pieces once and awhile - the rest of the time both sides are black. Really nice reflections.
Offline Nonlinear Solutions

Junior Newbie




Romantic sunset? Nice gradient paint!


« Reply #17 - Posted 2002-12-20 10:24:03 »

Hi all,

I finally managed to get myself an account here, so I will be able to answer to questions regarding the Yaarq demo directly.

One important thing I forgot to mention in my answer to your comments: Yaarq is not yet finished, please contribute! In my original mail to the J3D interest group I explained in detail that I do not have time to do all the design and programming work necessary to fill the second part of the demo. Thats why you just get a plain dumb flyer and an empty sky to fly around. Try inserting objects, other flyers, clouds, whatever ... and count on my support when doing so.

Best regards

Wolfgang

PS: Thanks to the guy who posted my first answer!
Offline winkman

Senior Newbie




Java games !


« Reply #18 - Posted 2002-12-21 16:58:06 »

Hey Nonlinear !

Why did You break up Yaart's model's into different parts (big ship consists of  7 ? )  obj files ?

Does this bring any practical benefit ?

regards
Martin

Offline Nonlinear Solutions

Junior Newbie




Romantic sunset? Nice gradient paint!


« Reply #19 - Posted 2002-12-22 09:08:18 »

I broke the models into one obj file per texture because (a) I encountered problems when loading multitexture obj files (texture coordinates got messed up) and (b) because I needed support for my additional texturing options like light/shadow map, environmental map and bump map, each of which requires its own additional special settings.

If someone starts working with the Yaarq engine, about the first thing to do is to write a little (xml-based?) model file format which takes this things into account, and some importers for lws, 3ds etc.

Cheers

Wolfgang
Offline gcollin

Senior Newbie




Java games rock!


« Reply #20 - Posted 2002-12-26 12:16:43 »

The links are outdatted...

Too bad:


GĂ©rard Angry
Offline winkman

Senior Newbie




Java games !


« Reply #21 - Posted 2002-12-27 22:37:16 »

Hello gccollin

the original yaarq - URL:
http://www.sbox.tugraz.at/home/w/wkien/yaarq.zip
seem to be not reachable at the moment, looks like a server problem and i think this will be adressed soon (after new year?)

the other one:
http://www.rolemaker.dk/articles/evaljava/Evaluating%20Java%20for%20Game%20D

should be:
http://www.rolemaker.dk/articles/evaljava

instead and the documents there are indeed worth to read :-)

hope that helps
winkman




Offline Nonlinear Solutions

Junior Newbie




Romantic sunset? Nice gradient paint!


« Reply #22 - Posted 2002-12-28 10:13:14 »

Hi there,

I just realized that the university webspace I put my Yaarq demo on is currently ureachable. I cannot fix this, and I do not know when it will be fixed by the responsible admin.

However, I have just ordered some webspace (finally, I have enough of all that trouble with free servers) and I will put Yaarq there, and post the new link here, as soon as it is activated. In the meantime, please mail me and I'll send you the Yaarq archive via email.

Cheers

Wolfgang

PS: Thanks for correcting the link to the java gaming paper!
Offline Nonlinear Solutions

Junior Newbie




Romantic sunset? Nice gradient paint!


« Reply #23 - Posted 2002-12-29 12:58:15 »

Hi,

the Yaarq demo is online again. Please download from

http://www.ascendancy.at/download/yaarq.zip

Thanks for your patience

Wolfgang
Pages: [1]
  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.

Dwinin (21 views)
2014-09-12 09:08:26

Norakomi (55 views)
2014-09-10 13:57:51

TehJavaDev (65 views)
2014-09-10 06:39:09

Tekkerue (32 views)
2014-09-09 02:24:56

mitcheeb (54 views)
2014-09-08 06:06:29

BurntPizza (38 views)
2014-09-07 01:13:42

Longarmx (24 views)
2014-09-07 01:12:14

Longarmx (30 views)
2014-09-07 01:11:22

Longarmx (28 views)
2014-09-07 01:10:19

mitcheeb (36 views)
2014-09-04 23:08:59
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

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

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!