Hello

> I am a new programmer in J3D. Actually I am busy trying to use file loaders
> I have some 3D studio image files and I would like to use them in J3D
> animation.

"animation" may be a problem, but first things first:

copied from the doc of the Starfire-3ds-Loader from John Wright (works
perfectly for me)

Usage:
// setup a file name "fileName"
Scene theScene = null;
try {
        Loader3DS loader = new Loader3DS();
        // optional options to be used
        // loader.setLogging(true); // turns on writing a log file
        // loader.setDetail(7); // sets level of detail of report log
        // loader.setTextureLightingOn(); // turns on texture modulate mode
        // loader.setTexturePath("D:\MyTextures");
        // optional alternate path to find texture files
        // loader.noTextures(); // turns off loading of textures
        theScene = loader.load(fileName);
}
catch(FileNotFoundException fnf) {
        // Couldn't find the file you requested - deal with it!
}
// Use the scene as per Sun's documentation of SceneBase

BranchGroup shapeinfile = theScene.getSceneGroup();

You may want to fiddle with the textures to get mipmapping. Stripifing the
geometry for extra performance after the loading is also possible.

(Can someone please integrate these optimisations as options into the loader ?
I have got the code ready to use.... )

cu
Gilson Laurent

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