Wow, 25000 polys that are individually pickable. That's a lot for a
user to sift through. But it is easy to think of examples where you
would need to do that. For example, a terrain editor with a 158x158
grid, which doesn't sound that big, but 158^2 comes near your 25k poly
count.
Well, I have little experience with the Geometry-by-reference stuff in
Java3D, but to me it sounds like all the objects should share the same
Shape3D (and thus appearance) until a particular poly is singled out.
Then you could remove it from the "-by-reference" list, and give it its
own Shape3D. Probably some difficult array management associated with
this, but its the age-old "memory consumption vs processor consumption"
balance.
-Lee
J. Lee Dixon
SAIC - Celebration, FL
407-566-1438
[EMAIL PROTECTED] AOL: LeeOrlando
-----Original Message-----
From: Dvorak, Daniel J. [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 02, 2000 8:36 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] how to reduce memory requirement?
I'm drawing 25000 polygons that have to be individually pickable and
color-able, and I need a line border around each polygon. I use
GeometryInfo to create the shapes from my vertex data. Making each
polygon
it's own Shape3D node takes about 150 Mb of memory. Packing all the
Geometry objects (one for each polygon) into one Shape3D reduces my
memory
requirement to around 115 Mb. The memory useage was much smaller when I
only used one GeometryInfo for all the polygons, but then I couldn't
pick
polygons individually or change individual colors.
Does this memory useage sound excessive?
How can I reduce it even more while still being able to pick and color
individual polygons?
Daniel Dvorak
========================================================================
===
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".