No, I don't have 1 face for every shape.  
I have 1 shape--many geometryarrays(1 for each face)

> I think you started in the wrong direction. You want to say 
> that you have 1
> Shape3D for every *face* in the .obj file ? That's a terrible 
> overhead !

I agree.  YIKES!!

> Does it also happen that every Shape3D is below it's own 
> Transform3D in your
> data structure ? 

Yes.

> Nevertheless, there is something wrong with 
> your estimates.
> I just tryied to import the galleon model in my app and from 21.5 mb
> residual mem usage, it grow only to 32 mb. That's roughly 10 
> mb, close to
> your estimates. But I only have 1 shape + 1 geometry per .obj 
> group, that's
> 17 shapes.
> 

I only have 1 xform + 1 shape + * geometry per obj.

Well then my app is eating up that extra 10. 

What you are suggesting is to have 1 geometry?  Interesting.
But what happens when you want to dynamically modify 1 face on
the model? Or add or remove one? Do you regenerate the entire vertexbuffer?  
for the model? 

I did it this way so that modifications to a face can happen
locally and be updated locally without massive regenerations.

-DaveS


 

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