--- Ra�l <[EMAIL PROTECTED]> wrote:
> Can you be more explicite? (Detail your problem a
> bit more, thanks. and
> please you should include the latest post in the new
> in order to keep time
> searching it.)
>
> Regards.
okay, this is my problem :
I created a scene with java3D using some tutorials and
have the following structure :
locale
/ \
BG1 BG2
where BG1 is a branchGroup containing some shape3D and
BG2 is the branchGroup where the viewPlatform is
attached (so I have a transformGroup for the camera)
and there are some avatars too following the camera
I'd like to rotate the whole scene at 90 degrees so I
am using the following thing :
Transform3D rotT3D = new Transform3D();
rotT3D.rotZ(Math.PI/2);
TransformGroup rotaTG = new TransformGroup(rotT3D);
rotaTG.addChild(tgScene);
So I have the new structure :
locale
/ \
BG1 BG2
/ \
rotaTG1 rotaTG2
/ \
tgScene1 tgScene2
where tgScene1 contains objects and tgScene2 contains
the camera and avatars
Well, rotaTG1 works fine but nothing happens with
rotaTG2 !!!
So I tryed to use the postRender method like this :
public void postRender()
{
super.postRender();
if (g2Plan == null)
{
g2Plan = this.getGraphics2D();
g2Plan.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
}
Graphics2D g2D = g2Plan;
g2D.rotate(Math.PI/4, 600D, 600D);
// g2Plan.setComposite(AlphaComposite.Src);
g2Plan.flush(true);
}
... but nothing happens too !!!
At this time, I don't see how to solve my problem !!!
Can someone give me advises ?
Thanks
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
===========================================================================
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".