Skip to main content

costum pick behaviors

2 replies [Last post]
bojana_t
Offline
Joined: 2009-12-30

Hello,

I have a scene with a lot of 3DShapes, and I’m trying to create custom behavior class, that, I suppose should extend PickMouseBehavior class, that will, for example change a color of on object that user had clicked on. My problem is that I don’t know how to do that. I’ve read all of the tutorials and books that I could find, and I haven’t found similar example anywhere. So, if you could help me with some reference or example, I would be very grateful.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
optimusprime1982
Offline
Joined: 2007-11-24

hi!

have a look at the j3d-examples, there are examples for picking (and how to extend pickmousebehavior) and how to change color, in separate packages. just merge them together.

Message was edited by: optimusprime1982

bojana_t
Offline
Joined: 2009-12-30

Thx,

I have already solved that problem, but I've realized that Java3D might be too slow for my application.