Hi everybody,
my 3D-objects are created far away from the origin, somewhere around +x
and -z
coordinates. The objects are clipped by a ModelClip plane
plane = new Vector4d(crossVector.x,crossVector.y,crossVector.z,dist);
It is parallel to the x-Axis and has a significant distance.
My scenegraph looks like that:
scene
|
sceneTG
| |
| mouseClipBg
| |
| RotateClippingBehavior
|
|
sceneNavTG (this node moves the rest near Origin)
|
some 3D objects
|
|
|
modelClipBG
|
moveClipNode (Target TransformGroup for Behavior)
|
ModelClip
In my scene I see my objects, clipped by the model clip plane and an
object
wich I placed on purpose at the origin, which is somewhere in the middle
of
my objects.
Now I want to rotate the model clip plane with the RotateClippingBehavior
around the Y-Axis. See the processStimulus method:
public void processStimulus(Enumeration criteria){
angle += 0.1;
rotation.rotY(angle);
targetTG.setTransform(rotation);
this.wakeupOn(new WakeupOnAWTEvent(KeyEvent.KEY_PRESSED));
}
With this method my objects are vanishing and reappearing, but I would
like to achieve getting pieces of kind of pie growing or shrinking
during rotation.
oooooooooooooooooooooooooooooooooooooooooooooooo
Desiree Hilbring
Institut fuer Photogrammetrie und Fernerkundung
Universitaet Karlsruhe, Germany
email: [EMAIL PROTECTED]
# 0721 6083676
oooooooooooooooooooooooooooooooooooooooooooooooo
===========================================================================
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".