John Wright wrote:

> why not use:
>   TextureLoader loader = new TextureLoader(filename, this);
>   textureAppearance.setTexture(loader.getTexture());
>
> Aren't you forcing each texture to be 1024x1024 (HUGE!!!)?

That alone would take up 8.3MB of RAM per texture (1024 x 1024 x4 bytes
per pixel x 4 copies stored in memory by the java runtime) - and that
doesn't include the extra copies that the texture loader makes when it
rescales the image. Any more than a couple and your poor VM will die.

--
Justin Couch                         http://www.vlc.com.au/~justin/
Freelance Java Consultant                  http://www.yumetech.com/
Author, Java 3D FAQ Maintainer                  http://www.j3d.org/
-------------------------------------------------------------------
"Humanism is dead. Animals think, feel; so do machines now.
Neither man nor woman is the measure of all things. Every organism
processes data according to its domain, its environment; you, with
all your brains, would be useless in a mouse's universe..."
                                              - Greg Bear, Slant
-------------------------------------------------------------------

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