Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (553)
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 Quake 3 Loader  (Read 1856 times)
0 Members and 1 Guest are viewing this topic.
Offline Java Cool Dude

Senior Member




Java forever


« Posted 2003-12-06 20:31:41 »

Coming tonight Grin


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

Will post the jar tonight Smiley
Offline oNyx

JGO Coder


Medals: 2


pixels! :x


« Reply #1 - Posted 2003-12-06 22:20:27 »

Thought you mean for bsp hehe... however md3 is much more important for me right now Smiley

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

That's much more than Q3 can do.

GJ Grin

弾幕 ☆ @mahonnaiseblog
Offline Java Cool Dude

Senior Member




Java forever


« Reply #2 - Posted 2003-12-07 05:37:26 »

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


Animation on


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 Smiley
Enjoy


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

Senior Member




Java forever


« Reply #3 - Posted 2003-12-07 07:50:50 »

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

With Animation


Without Animation


PS: Gimmie my working BackGround color pass pleaaaaaaaase boohoo :sad panda: Cry
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #4 - Posted 2003-12-07 10:16:59 »

downloading now Smiley

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 Cheesy

Offline Yuri Vl. Gushchin

Senior Member




Speak Java!


« Reply #5 - Posted 2003-12-07 10:30:45 »

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


Please Dude don't cry! I've just committed Background Color support for you!  Cheesy

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.


Another colors already possible - check Xith3DBackgroundColorTest. Hit SPACE to change bg colors.

Yuri

Yuri Vl. Gushchin
JProof Group
Offline Java Cool Dude

Senior Member




Java forever


« Reply #6 - Posted 2003-12-07 13:34:45 »

OMG we got background color yay.jpg, kitten.jpg Grin
Thanks man, now I can code straight in Xith3D and port over to J3D instead of the other way around Tongue.
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 Smiley
Talk to you in a bit
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #7 - Posted 2003-12-07 20:56:18 »

Quote
OMG we got background color yay.jpg, kitten.jpg Grin
Thanks man, now I can code straight in Xith3D and port over to J3D instead of the other way around Tongue.
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 Smiley
Talk to you in a bit


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  Grin

Will.

Offline Java Cool Dude

Senior Member




Java forever


« Reply #8 - Posted 2003-12-07 22:22:35 »

@William: Ok, I'll see what I can do Smiley

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 Cry
Offline Yuri Vl. Gushchin

Senior Member




Speak Java!


« Reply #9 - Posted 2003-12-08 05:10:08 »

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


Was a bug. Update Xith3D from CVS before testing - already fixed.

Yuri

Yuri Vl. Gushchin
JProof Group
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Java Cool Dude

Senior Member




Java forever


« Reply #10 - Posted 2003-12-08 05:19:40 »

You rock Grin
Things look a whole lot better with a black background Tongue
Offline tomcat

Senior Newbie




Java games rock!


« Reply #11 - Posted 2003-12-08 12:39:15 »

Cheesy Cool piece of work man.
tomcat
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.

TehJavaDev (15 views)
2014-08-28 18:26:30

CopyableCougar4 (25 views)
2014-08-22 19:31:30

atombrot (38 views)
2014-08-19 09:29:53

Tekkerue (33 views)
2014-08-16 06:45:27

Tekkerue (32 views)
2014-08-16 06:22:17

Tekkerue (20 views)
2014-08-16 06:20:21

Tekkerue (29 views)
2014-08-16 06:12:11

Rayexar (66 views)
2014-08-11 02:49:23

BurntPizza (42 views)
2014-08-09 21:09:32

BurntPizza (34 views)
2014-08-08 02:01:56
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!