http://pgts2002.eti.pg.gda.pl/~abies/j3d/nwnsrc.zip
http://pgts2002.eti.pg.gda.pl/~abies/j3d/nwn.jar

It loads geometry and textures. No animation support (but it is silently
ignored), not emitter/particle support (it crashes with parse exception).

You will need to download original NWN loader - models downloaded from
net are not enough, because chrome1.tga is needed for reflective metal
effect (even if it is not used in particular model).

It is also probable that a lot of user-created (or user-hacked) models
will not load, because I've implemented quite strict parser - closing
tags have to match opening tags etc.

You can run nwn.jar as runnable jar giving path to .mdl file. For best
effect check out Bugbear.mdl - armor looks quite nice.

Later I'll add named shapes and animation - but I don't think it will be
possible to expose animation through normal j3d Loader.

If you feel hacky, there are some tricks which you can try with simple
recompile. For example by increasing scale in DummyGeomNode you can
explode body parts to see shapes separately. By changing
createAllTG(getBaseUrl(),false);
to
createAllTG(getBaseUrl(),true);
in NWNLoader you will get wireframe instead of textured body.

There was also a possibility to show normals as lines, but I don't think
it work currently (if somebody is interested take a look at
http://pgts2002.eti.pg.gda.pl/~abies/j3d/view1.JPG) - if anybody would
need this functionality, I can add it.

ObjLoad is hacked demo from sun, so I don't think this package is fully
legal at the moment - so please do not pass it further until I will
create own base class. Rest of code is public domain.

Artur

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to