Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (577)
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 ... 6
  ignore  |  Print  
  The JWS thread *Xith3D demos only*  (Read 30910 times)
0 Members and 1 Guest are viewing this topic.
Offline Java Cool Dude

Senior Duke




Java forever


« Posted 2003-12-10 03:38:43 »

Hmm I thought about making this thread to show some Xith3d demos of mine and have the chance to look at your work too ^_^:
Basic Framework


Keys: Escape
Source
Zip File Source


Particles Generator *PS: Use 100 particles for best looking fire, magma etc*


Keys: Escape
Source

Nehe's Cel-Shading Tutorial


Keys: Space, 1,2, Up, Down
Source
Zip File Source

Cloth Simulation:


Keys: 1 2 3 4, space and w
Source
Zip File Source

Received help setting up the springs from Paul at http://paulsprojects.net/

Flag Simulation:


Keys: space and w
Source
Zip File Source

Water Simulation:


Keys: space to stop the swimmer, w for wire mode, R for random rippling.
Mouse: left button to rotate, middle to zoom and right to translate.
Source
Zip File Source

PerPixel Lighting (with primitive distance attenuation  :-/ ):


Keys: space to stop the light, T to cycle through the textures, L for lightmap, N for normal map, B for base map, D for default, A for distance attenuation, V for TBN components display.
Mouse: left button to rotate, middle to zoom and right to translate.
Source
Zip File Source

Nehe's Cel-Shading Tutorial (Vertex Shaders Accelerated )


Keys: Space, 1,2, Up, Down
Source
Zip File Source

PerPixel Lighting (Vertex Shaders Accelerated ):


Keys: space to stop the light, T to cycle through the textures, L for lightmap, N for normal map, B for base map, D for default, V for TBN components display.
Mouse: left button to rotate, middle to zoom and right to translate.
Source
Zip File Source

Quake III model loader and animator:


Mouse: left click to control the model lower part, right to control the upper.
Keys: W for wire mode, S to stop the animation, left and right to change the rotation speed/direction, up and down to zoom in/out
Source

Texture CubeMap (yay):


Mouse: left drag for rotation.
Keys: S to switch NORMAL_MAP and REFLECTION_MAP
Source
Zip File Source

CubeMap Reflection (Fragment/Vertex shaders accelerated):


Mouse: left drag for rotation.
Keys: Escape to exit
Source
Zip File Source

Cubic Environment bump mapping (Fragment/Vertex shaders accelerated):


Mouse: left drag for rotation.
Keys: Escape to exit
Source
Zip File Source

Cubic Water Reflection


Keys: Escape to quit, A,S,D,Q,W,E, up, down, left, right, page up, page down to navigate in the scene.
L for wire mode, R for random rippling, and Space to stop the swimmer.
Mouse: Move cursor to look around.

Source
Zip File Source


Will often post NEW demos.
Offline Jens

Senior Duke




Java for games!


« Reply #1 - Posted 2003-12-10 05:50:01 »

Under Linux you can't currently set a display mode, that's why the demos don't work in fullscreen. I didn't look at your source, but you can use device.isDisplayChangeSupported() to ask if you can set the display mode. If I don't use fullscreen all the demos work.  Cheesy

Xith3D Getting Started Guide (PDF,HTML,Source)
Offline Java Cool Dude

Senior Duke




Java forever


« Reply #2 - Posted 2003-12-10 06:21:52 »

Fixed
1  
2  
    fScreen.setEnabled(GraphicsEnvironment.getLocalGraphicsEnvironment().
                       getDefaultScreenDevice().isFullScreenSupported());
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #3 - Posted 2003-12-10 08:53:10 »

very impressive - works great for me.

Want me to list your demos on the http://xith.org/demo/ site?

Cheers,

Will.

Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #4 - Posted 2003-12-10 23:39:58 »

OS X 10.3.1

Trying windowed mode locks up your display manager (see other thread)

Full screen switched the display then locked up...
console message:
2003-12-10 21:37:16.216 java[1728] *** +[ThreadUtilities updateModels:]: selector not recognized
2003-12-10 21:37:16.217 java[1728] *** NSThread: ignoring exception 'NSInvalidArgumentException' (reason '*** +[ThreadUtilities updateModels:]: selector not recognized') that raised during delayed perform of target 0x72670e0c and selector 'updateModels:'

Offline Java Cool Dude

Senior Duke




Java forever


« Reply #5 - Posted 2003-12-11 01:11:27 »

Hmmm from now on I shall post the source so that you guys can figure what the f is going on Tongue
Offline Java Cool Dude

Senior Duke




Java forever


« Reply #6 - Posted 2003-12-11 01:12:00 »

Quote
very impressive - works great for me.

Want me to list your demos on the http://xith.org/demo/ site?

Cheers,

Will.

That would kick ass Tongue
/me back making new demos
Offline Java Cool Dude

Senior Duke




Java forever


« Reply #7 - Posted 2003-12-11 01:45:36 »

Hey William wasn't it you who wrote a little program to highlight java keywords into a html document?
I might need that to set up the JCD tutorials Grin
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #8 - Posted 2003-12-11 02:56:03 »

Quote
Hey William wasn't it you who wrote a little program to highlight java keywords into a html document?
I might need that to set up the JCD tutorials Grin


guilty as charged Cheesy  http://showsrc.sourceforge.net/

I find it useful caus I can just dump my source into a directory on the server and they are nicely indexed and formatted Smiley


Offline Java Cool Dude

Senior Duke




Java forever


« Reply #9 - Posted 2003-12-11 06:15:19 »

That's one heck of a tool, man  Cool
Check the first post for the demos' source code
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #10 - Posted 2003-12-11 23:14:42 »

Glad you like it Grin

I've added your demo's to xith.org (linking this thread as your official "library" site (ie where they can get the source and binaries).  

Check out http://xith.org/demo/  If you want to write a small paragraph of text please post it or email it to me and I'll put it up.

Cheers,

Will.

Offline Java Cool Dude

Senior Duke




Java forever


« Reply #11 - Posted 2003-12-15 02:07:13 »


Having a f**** hard time trying to make it work with JWS Roll Eyes
Offline shochu

Junior Duke




Java games rock!


« Reply #12 - Posted 2003-12-15 02:35:12 »

JavaCoolDude,
   In your particle demo, how come the first wave of particles is always a halo shape and then the settings seem to kick in?
Offline Java Cool Dude

Senior Duke




Java forever


« Reply #13 - Posted 2003-12-15 02:43:22 »

Because I only run warmUp() when a presetting is selected such as fire, magma etc...
I figured the basic settings ain't important till you set up one, save it or load it...
Offline shochu

Junior Duke




Java games rock!


« Reply #14 - Posted 2003-12-15 03:09:33 »

WHere exactly is this warmUp() method??  SOrry to be a bother ... I'm just studying your code cause I want to learn how particle systems work hehe. It's really cool by the way.  THanks for making so many great demos available. ~shochu
Offline Java Cool Dude

Senior Duke




Java forever


« Reply #15 - Posted 2003-12-15 07:21:42 »

Look into ParticlesManager.
Now that I think about it, I might as well take a good chunck outta that code and replace it by a faster and better stuff Tongue
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #16 - Posted 2003-12-16 04:22:29 »

nice Smiley

Quote
The lighting was disabled on purpose since in its current implementation, it doesn't work with JWS.


Is this something specific to your application?  There are a few JWS demos which use lighting.

Will.

Offline Java Cool Dude

Senior Duke




Java forever


« Reply #17 - Posted 2003-12-16 08:15:04 »

Arghhhhhhhhhhhhhh
/me pulls hair and runs around making all kind of sounds
All I had to do is add the following line to my .jnlp file to have lighting to work the way it should
<jar href="lib/log4j.jar"/>
Man what a great day to commit suicide Cry
Offline Java Cool Dude

Senior Duke




Java forever


« Reply #18 - Posted 2003-12-16 08:20:55 »

First post updated with ClothSimulation demo, check it out.
PS: From now on I shall often modify the first post with new additions
Edit: Regarding the cloth simulation, do you guys want to have a control panel including sliders to control factors such as the wind, gravity, elasticity of the springs, size and mass of the cloth?
Offline Java Cool Dude

Senior Duke




Java forever


« Reply #19 - Posted 2003-12-16 09:58:25 »

Modified the update loops a bit in particlesManager and it is now possible to generate the EXACT same effect on all machines regardless of the frame rate.
Also the performance when generating smoke, water and magma has increased by almost 30%.
^_^
Nighty night, I have soooooooooooo many new projects to work on (Flag effect and not the shitty one depending on sin or cos, physics demos, and water rippling) stay tuned Tongue
PS: Hey William man can you link my demos on xith.org as well as their sample images straight to the webspace you gave me?
The reason behind this request is that I update my demos frequently and it's a burden to ask you to upload the new changes again and again Embarrassed
Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #20 - Posted 2003-12-17 02:17:52 »

None of this works on the Mac Sad

Offline Java Cool Dude

Senior Duke




Java forever


« Reply #21 - Posted 2003-12-17 02:23:15 »

/me Heman b**** slaps the mac Tongue
What error do you get man?
Notice that I put a link to the source next every demo, so you might as well take a look and figure the bug out for us Smiley
Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #22 - Posted 2003-12-17 03:04:26 »

It switches to full screen mode then locks up...  I did manage to dig this out of the console logs:

2003-12-17 00:57:47.356 java[3435] *** +[ThreadUtilities updateModels:]: selector not recognized
2003-12-17 00:57:47.357 java[3435] *** NSThread: ignoring exception 'NSInvalidArgumentException' (reason '*** +[ThreadUtilities updateModels:]: selector not recognized') that raised during delayed perform of target 0x72670e0c and selector 'updateModels:'


Windowed mode fails with:

Error: empty view at "src/native/jogl/MacOSXWindowSystemInterface.m:createContext:24"

Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #23 - Posted 2003-12-17 03:22:52 »

Quote
PS: Hey William man can you link my demos on xith.org as well as their sample images straight to the webspace you gave me?


The jnlp files are linked currently - I'll change it so the images are linked too Smiley

And I'll add your new demo.

I like the idea of the control panel Grin

Cheers,

Will.

Offline Java Cool Dude

Senior Duke




Java forever


« Reply #24 - Posted 2003-12-18 09:21:54 »

Updated with a new demo Smiley
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #25 - Posted 2003-12-18 10:09:12 »

http://xith.org/demo/JavaCoolDude.php updated.

Nice demo - doesn't run very fast on this machine but Sad - what frame rates are you seeing?

Cheers,

Will.

Offline Java Cool Dude

Senior Duke




Java forever


« Reply #26 - Posted 2003-12-18 10:41:03 »

Quote
http://xith.org/demo/JavaCoolDude.php updated.

Nice demo - doesn't run very fast on this machine but Sad - what frame rates are you seeing?

Cheers,

Will.


I can make it run twice as fast, but.... the lighting will look a bit worse...
/me back to coding my next demo Wink
Offline Jens

Senior Duke




Java for games!


« Reply #27 - Posted 2003-12-18 10:51:01 »

(US) Americans really have to put their flag everywhere.  Wink

Xith3D Getting Started Guide (PDF,HTML,Source)
Offline Java Cool Dude

Senior Duke




Java forever


« Reply #28 - Posted 2003-12-18 11:13:16 »

Quote
(US) Americans really have to put their flag everywhere.  Wink

I take it you're not one of us Americans Tongue.
Smiley

Edit: The demo now runs 50% faster Smiley
Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #29 - Posted 2003-12-18 11:58:59 »

Quote
Edit: The demo now runs 50% faster Smiley



It still fails at the same speed on the Mac  Tongue  Wink

In windowed mode it always just bails.   In full screen mode I always get an empty white screen.

The odd thing is that other Xith 3D programs work - Martian Madness for instance.

Pages: [1] 2 3 ... 6
  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.

Longarmx (49 views)
2014-10-17 03:59:02

Norakomi (38 views)
2014-10-16 15:22:06

Norakomi (31 views)
2014-10-16 15:20:20

lcass (34 views)
2014-10-15 16:18:58

TehJavaDev (65 views)
2014-10-14 00:39:48

TehJavaDev (65 views)
2014-10-14 00:35:47

TehJavaDev (55 views)
2014-10-14 00:32:37

BurntPizza (72 views)
2014-10-11 23:24:42

BurntPizza (43 views)
2014-10-11 23:10:45

BurntPizza (84 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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
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!