The .obj loader is already using buffering to read your file. I
think the delay isn't in the file loading, it's in the parsing.
You might also try turning off the stripifier (there's an option
for this).
The source for the .obj loader is shipped with the SDK. The
file ObjectFile.java contains this code:
// 0=Input file assumed good
// 1=Input file checked for inconsistencies
// 2=path names
// 4=flags
// 8=Timing Info
// 16=Tokens
// 32=Token details (use with 16)
// 64=limits of model coordinates
private static final int DEBUG = 1;
If you can, change DEBUG to 9 (8 | 1) and recompile you will be
able to see where the time is spent.
-Paul
> Date: Tue, 3 Oct 2000 21:14:14 GMT
> From: david Xia <[EMAIL PROTECTED]>
> Subject: [JAVA3D] big file load problem in Java3D
> To: [EMAIL PROTECTED]
>
> I use OBJ loader class to load big myfile.obj(over 2Mb), it takes long
> time for SUN machine to run the program, later I will load even larger obj
> file, I wonder if there is any way to speed up the running process, using
> cache? or something else? How to do that?
>
>
> Thanks a lot.
>
> david
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
>
> ===========================================================================
> 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".