Check if you are not referencing the same Transform3D for both TG transform.


 --- Melina Alberio <[EMAIL PROTECTED]> escreveu:
> Hello! I need an important help!
>
> I'm doing a project where I import different Vrml
> objects and add respective BranchGroups to two
> different TransformGroups.
> Below, My Objects hierarchy:
>
> BranchGroup (objRoot)
>       1.1- TransformGroup (TGRoot)
>         1.1.2- Background (background)
>         1.1.3- TransformGroup (TGTool)
>           1.1.3.1- Transform3D (T3DTool)
>           1.1.3.2- BranchGroup (BGTool)
>             1.1.3.2.1- VrmlScene (VSNTool)
>         1.1.4- TransformGroup (TGTissue)
>           1.1.4.1- Transform3D (T3DTissue)
>             1.1.4.2- BranchGroup (BGTissue1)
>               1.1.4.2.1- VrmlScene (VSNTissue1)
>         1.1.5- DirectionLights (Luz1)
>         1.1.6- DirectionLights (Luz2)
>
> Now, below, we have the behaviors applied to VRML
> objects:
>
> protected void behaviors(BranchGroup BGobj ,
> TransformGroup TGobj)
> {
>
> MouseRotate mRotObj = new MouseRotate();
> mRotObj.setTransformGroup(TGobj);
> mRotObj.setSchedulingBounds(TGObj.getBounds());
>
> MouseTranslate mTransObj = new MouseTranslate();
> mTransObj.setTransformGroup(TGobj);
> mTransObj.setSchedulingBounds(TGobj.getBounds());
>
> MouseZoom mZoomObj = new MouseZoom();
> mZoomObj.setTransformGroup(TGobj);
> mZoomObj.setSchedulingBounds(TGobj.getBounds());
>
> BGobj.addChild(mRotObj);
> BGobj.addChild(mTransObj);
> BGobj.addChild(mZoomObj);
>
> }
>
> where TGobj can be both TGTool ot TGTissue, and BGobj
> can be both BGTool or BGTissue.
>
> Now, the problem:
> When a run de application, the behaviors work, but,
> when a manipulate(rotate, zoom, move) one of the
> objects, the two change at the same time. When a click
> at anywhere of scren and manipulate, the objects
> change(move, zoom, rotate).
> I'd like to restrict the manipulation area to the
> object area, but until now it doesn't work.
>
> HELP ME PLEASE!
>
> Melina Alberio
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ===========================================================================
> 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".
>





_______________________________________________________
Yahoo! Mail - Agora com 250MB de espaço gratuito. Abra
uma conta agora! http://br.info.mail.yahoo.com/

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