Since you keep all the data in two float arrays, wouldn't it be better to
have it in a binary file ? Your class will have a constructor with the
argument the name of the file containing the data. Reading from a binary
file *is* the fastest, faster even than the loading of such a huge class.
Besides that, you can use nio buffers on it. And of course, the class size
will remain in decent limits.

Cheers, Florin

-----Ursprüngliche Nachricht-----
Von: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED] Auftrag von Serge Bernier
Gesendet: Mittwoch, 4. August 2004 16:13
An: [EMAIL PROTECTED]
Betreff: [JAVA3D] Another question!!


Hi all,

yes I got another question for you guys. Im on fire!!!!

Im currently trying to write java class containing the coordinates point and
texcoord point of a parsed vrml file. Im doing the following:

1-I reader the vrml files (representing a 3ds key frame) and I make a mesh
animation in java3D with all the key frames.
2-After that, I want to write all the info in java class. All the key frame
is
separated in java class containing one key frame of the animation. I expect
the
load time to be shorter when I will load the java class(not shure on this
one).

The attribute scope of the class have two float array for the coord point
and
texcoord point looking like that:

float[] coordPoint    = {5.4f,38.9f,....,37.3f};
float[] texCoordPoint = {5.4f,38.9f,....,37.3f};

The problem i when Im compiling the class I get a "code too large" error,
because the two array contain a very large amount of data. Is there a way to
avoid this error????

Thanks
Serge

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

Reply via email to