Hi!

I run into the same problems with shared geometry. I have a scene with many
shapes. Because they have the same geometry, this geometry is shared
internally by java3d optimization. I want to do picking, so i need to set
capabilities. Creating the shapes first time I don´t have problems. But
sometimes I want to change live objects which means I detach one and attach
another. The other one has not being created before. But i cannot set
capabilites at the new created shape because of an
javax.media.j3d.RestrictedAccessException. The reason is the shared geometry
which is still live although the new object is not attached, yet.

A solution could be the creation with Primtive.GEOMETRY_NOT_SHARED, but then
more memory is needed. There is a difference between 70MB with optimization
and 450MB without in my scene, which is unacceptable.

Does anyone has a solution how to set the capabilities and still using
optimzation?

Thanks,
Daniel.


-----Ursprüngliche Nachricht-----
Von: Asaf Dafner [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 9. April 2002 09:28
An: [EMAIL PROTECTED]
Betreff: [JAVA3D] "cannot modify capability bits" exception


Hi all,
I want to allow_intersect on my objects.
1) I created one sphere, called allow_intersect on it and added to the
world. Cool.
2) Icreated a second sphere,  called allow_intersect on it and got a
"Cannot modify capability bits on live or compiled objects"  exception.
Not cool.

What am I doing wrong?
Thanx,
Asaf.


--

-------------------------------------------------
Asaf Dafner        Short -but- Deep, Mainly Deep.

Frontline PCB Solutions

Phone : (972) 8-9322183 Ext. 148
Fax   : (972) 8-9322186
email : [EMAIL PROTECTED]



Je n'ai fait celle-ci plus longue que parce que
je n'ai pas eu le loisir de la faire plus courte.
                                 - Pascal

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