To change a shape3D (for example color or size witfh Scrollbar) during
runtime, I found out the only way with detach and reconstruct the
branchgroup.
Is this correct or are there some quicker or easier ways?
Thank you for help!
C. Ratsch
==
Each node in a scene graph, including Shape3Ds, have capability bits
that you can explicitly set/unset. By default, you can hardly do
anything with a node once it is attached to a live scene graph, and this
allows the renderer to perform lots of optimisations.
Have a look at the capability bits def
Hi,
I'm using pickmousebehavior to pick objects
and make transformations on them.
But how can i return the "name" or "id" of the picked
object.
I need to know what object i'm picking because
it is a menu and requires that to open one from 3 scenes.
Thanks in advance
Carlos
===
Most people approach this by assigning some "UserData" to the objects as
their created using setUserData(). Then once you've performed you pick you
can use getUserData() to retrieve the identifier you assigned.
Kev
> Hi,
>
> I'm using pickmousebehavior to pick objects
> and make transformations o
when adding many branch groups and transform groups to
canvas3D added to a JDialog component,no memory is
cleared when the dialog is closed and all memory
allocated is not dealocated which makes a large
problem,Howcan i solve this problem?
__
Do you Yahoo!?
The Ne
Yes, thats what we do. Additionally, we recurse down the subgraph and
set the UserData into each node we come along!
Otherwise you might need to climb upwards in the graph looking for
UserData of the correct type.
Kevin Glass <[EMAIL PROTECTED]> schrieb am 08.10.2003, 13:12:33:
> Most people appro
The approach I took was to extend BranchGroup with my own class
containing all the data I need.
I then traverse up the pick results to find the first BranchGroup.
josh
>>> [EMAIL PROTECTED] 10/08/03 08:12AM >>>
Yes, thats what we do. Additionally, we recurse down the subgraph and
set the UserData
If your universe is created when your JDialog
instance is opened, try to clean up your
SimpleUniverse object, by calling :
myUniverse.cleanup();
/*myUniverse is your SimpleUniverse instance*/
Alessandro
--- Osama Abdalah <[EMAIL PROTECTED]>
escreveu: > when adding many branch groups and
t
Hi,
Can i add an Object of InputDevice in a BranchGroup
to control then?
Im actually controling the view
simpuniverse.getViewer().getPhysicalEnvironment().addInputDevice(
joyDevice );
thx
Wendel B Silva
===
To unsu
I found that the memory leak problem was associated with the Canvas3D
itself. Whenever I let the Canvas3D be "garbage collected" and created
another Canvas3D my machine used up about 8 to 12 megabytes of additional
memory. The garbage collection of various scene graph objects seemed to
work fine.
How insert (and visualize) news Branch Groups (with Text2D) after root Branch Group
is live?
Thanks a lot.
===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".
You have to set the ALLOW_CHILDREN_EXTEND capability.
>>> [EMAIL PROTECTED] 10/08/03 03:20PM >>>
How insert (and visualize) news Branch Groups (with Text2D) after root
Branch Group
is live?
Thanks a lot.
===
To unsubscribe,
Hi,
Another option is to use a HashMap or a HashTable and
give names (keys) to your stored objects.
You can store the references of your BGs, TGs,
Shape3Ds, etc by name, at creation time, as well named
parts of loaded 3D models - see how to get parts of
OBJ 3D model in a example given by Ewan Bo
13 matches
Mail list logo