thanks for your Comment Josh,
I tried to add my ViewPlatform on the TransformGroup of my robot. But then i
get an multipleparent exception. i solved that by detaching the BranchGroup
above the ViewPlatform and add that BranchGroup on the Transformgroup of the
robot. But then my aplet doesn't render any more because: robot.isLive()
returns false even when i recompile the robot.
Do you know how ik can solve that?
mvg Michel
----- Original Message -----
From: "Josh Richmond" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 11, 2001 6:26 PM
Subject: Re: [JAVA3D] adding my view on a robot
You should add your ViewPlatform to a transform group on the robot.
For example:
WheelBaseTG — GeometryBG
— BodyTG — GeometryBG
— HeadTG — ViewPlatform — View
— GeometryBG
etc... where TG is TransformGroup and BG is BranchGroup
This way when the wheels move, the body, head and camera are also moved.
You can then change the HeadTG to pan/tilt your camera.
Hope that brief explanation helps.
josh
----------------------------------------------------
Joshua L. Richmond, BASc, MSc.
Systems Engineering (R&D)
MD Robotics
9445 Airport Rd, Brampton, ON, Canada
(905) 790-2800 x4332
===========================================================================
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".