Helllo Archana,
This is copied from the HelloUniverse.java from
/java/demo/java3d

// Create a simple scene and attach it to the virtual universe
BranchGroup scene = createSceneGraph();
u = new SimpleUniverse(c);
// This will move the ViewPlatform back a bit so the
// objects in the scene can be viewed.
u.getViewingPlatform().setNominalViewingTransform();
u.addBranchGraph(scene);

The spartial extends are calculated automatically.
Hope it helps?
Chris

----- Original Message -----
From: "Archana Chilukuri" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 28, 2004 1:35 AM
Subject: [JAVA3D] perspective projection


> Hi,
>
> My problem is like this. I have minx, maxx, miny, maxy , minz, maxz values
> of a goemetry that needs to be rendered.
>
> I do not know how to set the perspective projection for the view object.
> Does anybody have code snippets which explains this?
>
> I just want my application to able to view any geometry.
>
> Thanks,
> Archana
>
>
===========================================================================
> 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".

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