Hi Robert,
to solve the Scene error you have to import the com.sun.j3d.loaders library.
And the other error meen that the program doesnt find your file. You must have
a wrong path in the loader.load() parameter. The load function take a absolute
or relative string path. The best way to load a file is the secify the full path
(absolute). Example:
Scene theScene = loader.load("C:/ProgramFiles/My3DModels/HCAL.3DS");
That sould do the trick.
Serge Bernier
Selon Robert Gomez-Reino <[EMAIL PROTECTED]>:
> Hi,
> I'm triying to load an object created with 3ds max (called HCAL.3DS) with the
> Jhon W. Loader.
> I tried the next code in an application, but the compiler cannot resolve two
> symbols : "Scene" and "FileNotFoundException" can anybody help me with this.
> Thanks,
> Boby
>
> import com.mnstarfire.loaders3d.Loader3DS;
> ..........
>
> 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(); // if you don't want to load textures
> Scene theScene = loader.load("HCAL.3DS");
> }
> catch(FileNotFoundException fnf) {
> // Couldn't find the file you requested - deal with it!
> }
>
>
>
>
> ===========================================================================
> 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".
>
===========================================================================
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".