New Quake 3 Loader

Coming tonight ;D

http://www.realityflux.com/abba/newQuake3Dloader.jpg

Good speed improvement over the last version.
Organized in a package.
Loads TGA, BMP, JPG, PNG, and GIF textures.

Will post the jar tonight :slight_smile:

Thought you mean for bsp hehe… however md3 is much more important for me right now :slight_smile:

Loads TGA, BMP, JPG, PNG, and GIF textures.

That’s much more than Q3 can do.

GJ ;D

Hit ‘S’ key once to stop the animation, and one other to resume.
Notice the huge performance boost that turning animations off yields :o
Animation off

http://www.realityflux.com/abba/newXith3DQ3WA.jpg

Animation on

http://www.realityflux.com/abba/newXith3DQ3A.jpg

Here’s the latest build packed in a zip file which also includes a md3 model (SuperSonic) along with a simple test.

You should put the .jar in your class path, for example on my machine it is stored in jre/lib/ext/ .
I also made a lot of enhancements to my framework :slight_smile:
Enjoy

Ported to Java3D
Here’s a couple of screenshots that once again hightlight Xith3D supremacy performance wise.

With Animation

http://www.realityflux.com/abba/java3DA.jpg

Without Animation

http://www.realityflux.com/abba/java3DWA.jpg

PS: Gimmie my working BackGround color pass pleaaaaaaaase boohoo :sad panda: :’(

downloading now :slight_smile:

background node support would be very nice indeed. The pure black backgrounds look a lot more crisp.

Do you plan to add your loader to the xith-tk? (no need to use cvs - just plonk the zip’s in the file sharing page).

Will.

edit: And it’s nice to see Xith3D performance beat Java3D by a factor of 2 :smiley:

[quote]PS: Gimmie my working BackGround color pass pleaaaaaaaase boohoo :sad panda:
[/quote]
Please Dude don’t cry! I’ve just committed Background Color support for you! :smiley:

OK, you can use it just as normal Background Color in Java3D. Note that activation bounds for background node are still not supported.

[quote]background node support would be very nice indeed. The pure black backgrounds look a lot more crisp.
[/quote]
Another colors already possible - check Xith3DBackgroundColorTest. Hit SPACE to change bg colors.

Yuri

OMG we got background color yay.jpg, kitten.jpg ;D
Thanks man, now I can code straight in Xith3D and port over to J3D instead of the other way around :P.
Hey William, can you tell me again how to commit my code?
Also I would like to know if it’s better to have the loader declared as com.xith3d.loaders.MD3Loader instead of net.jcd.xith3d.loaders.MD3Loader :slight_smile:
Talk to you in a bit

[quote]OMG we got background color yay.jpg, kitten.jpg ;D
Thanks man, now I can code straight in Xith3D and port over to J3D instead of the other way around :P.
Hey William, can you tell me again how to commit my code?
Also I would like to know if it’s better to have the loader declared as com.xith3d.loaders.MD3Loader instead of net.jcd.xith3d.loaders.MD3Loader :slight_smile:
Talk to you in a bit
[/quote]
To put your code into the project, you first need to join java.net and then apply for dev status on the xith-tk project page (http://xith-tk.dev.java.net/)

This allows you access to the file sharing area so you can release builds.

To get your code into CVS - you’ll need to sign and fax that agreement off to Sun. I’ve got some instructions here: http://xith.org/tutes/GettingStarted/html/bleeding_edge_source.html#SECTION000123000000000000000

Then you need to “import” your code into CVS (check the cvs docs home page: http://cvshome.org).

As for naming - a decision was made to reserve “com.xith3d.” only for the official branch. For xith-tk you are welcome to use any package name you like and we recommend the “org.xith3d.” one.

I plan to add some more links to the xith-tk project from xith.org so that people who go there will first see the download links for the Xith3d library and then all the useful tools people have created.

Thanks ;D

Will.

@William: Ok, I’ll see what I can do :slight_smile:

The package name is now declared as org.xith3d.loaders.MD3Loader;

Quick tutorial on how to use it:
First we declare our loader MD3Loader loader = new MD3Loader();
Then we attempt to load our model which is composed of 3 parts: upper, lower and head mesh.

loader.LoadModel(FileDirectory, ModelName);

In the example that comes with the zip file, my model name is “supersonic” and is stored into a sub-directory named “supersonic” as well.
In order to successfully load the model to your scene, it is very important that your files obey the following naming convention:

ModelName_lower.md3
ModelName_upper.md3
ModelName_head.md3

ModelName_lower.skin
ModelName_upper.skin
ModelName_head.skin

ModelName_animation.cfg

If we have a weapon model that we intend to load as well, all you have to do is:
loader.LoadWeapon(“WeaponDirectory”, “weaponName”);

You don’t have to worry about nasty exceptions since I manage them within the loader file.
Now that we loaded our model, and assigned a weapon to it we call

BranchGroup scene = loader.getScene();
Where scene is the compiled BG holding your model.

PS: Hey William, if you downloaded the loader, could you try running it with a colored background?
Mine crashes to the desktop after running for few seconds :’(

[quote]PS: Hey William, if you downloaded the loader, could you try running it with a colored background?
Mine crashes to the desktop after running for few seconds
[/quote]
Was a bug. Update Xith3D from CVS before testing - already fixed.

Yuri

You rock ;D
Things look a whole lot better with a black background :stuck_out_tongue:

:smiley: Cool piece of work man.
tomcat