The JWS thread *Xith3D demos only*

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

http://users.xith.org/JavaCoolDude/JWS/Xith3D/framework/xith3dlogo.jpg

Keys: Escape
Source
Zip File Source

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

http://users.xith.org/JavaCoolDude/JWS/Xith3D/particles/particlesicon.jpg

Keys: Escape
Source

Nehe’s Cel-Shading Tutorial

http://users.xith.org/JavaCoolDude/JWS/Xith3D/CelShading/celshadingicon.jpg

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

Cloth Simulation:

http://users.xith.org/JavaCoolDude/JWS/Xith3D/Cloth/clothsimulation.jpg

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:

http://users.xith.org/JavaCoolDude//JWS/Xith3D/Flag/flagsimulation.jpg

Keys: space and w
Source
Zip File Source

Water Simulation:

http://users.xith.org/JavaCoolDude//JWS/Xith3D/Water/watericon.jpg

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 :-/ ):

http://users.xith.org/JavaCoolDude//JWS/Xith3D/PPL/pplicon.jpg

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 )

http://users.xith.org/JavaCoolDude/JWS/Xith3D/CelShadingVS/celshadingicon.jpg

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

PerPixel Lighting (Vertex Shaders Accelerated ):

http://users.xith.org/JavaCoolDude/JWS/Xith3D/PPLVS/pplicon.jpg

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:

http://users.xith.org/JavaCoolDude/JWS/Xith3D/Quake3/quake3icon.jpg

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):

http://users.xith.org/JavaCoolDude/JWS/Xith3D/TextureCubeMap/texturecubemap.jpg

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

CubeMap Reflection (Fragment/Vertex shaders accelerated):

http://users.xith.org/JavaCoolDude/JWS/Xith3D/CubeMapReflection/reftexturecubemap.jpg

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

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

http://users.xith.org/JavaCoolDude/JWS/Xith3D/CEBumpMap/cebumpmap.jpg

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

Cubic Water Reflection

http://users.xith.org/JavaCoolDude/JWS/Xith3D/WaterCubeMap/watercubemap.jpg

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.

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. :smiley:

Fixed


    fScreen.setEnabled(GraphicsEnvironment.getLocalGraphicsEnvironment().
                       getDefaultScreenDevice().isFullScreenSupported());

very impressive - works great for me.

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

Cheers,

Will.

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:’

Hmmm from now on I shall post the source so that you guys can figure what the f is going on :stuck_out_tongue:

[quote]very impressive - works great for me.

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

Cheers,

Will.
[/quote]
That would kick ass :stuck_out_tongue:
/me back making new demos

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 ;D

[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 ;D
[/quote]
guilty as charged :smiley: 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 :slight_smile:

That’s one heck of a tool, man 8)
Check the first post for the demos’ source code

Glad you like it ;D

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.

http://www.users.xith.org/JavaCoolDude/JWS/Xith3D/Cloth/clothsimulation.jpg

Having a f**** hard time trying to make it work with JWS ::slight_smile:

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?

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…

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

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 :stuck_out_tongue:

nice :slight_smile:

[quote]The lighting was disabled on purpose since in its current implementation, it doesn’t work with JWS.
[/quote]
Is this something specific to your application? There are a few JWS demos which use lighting.

Will.

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

Man what a great day to commit suicide :’(

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?

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%.
:slight_smile:
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 :stuck_out_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 :-[