The default position of the ViewPlatform is at (0, 0, 0). If you want to see
the loaded model in the center, there are two options: move the ViewPlatform
or move the scene. From the point of view of the rendering engine, there's
no difference. Just remember, moving the view platform is just the inverse
of moving the scene.

So, I'll suggest to use a transform where you scale it down 1/10000 *and*
move the scene so that it will have the center somewhere around 0, 0, -1.

Cheers,

Florin

-----Original Message-----
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED] Behalf Of Dudi Gil
Sent: Donnerstag, 13. Mai 2004 13:42
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Can't see a loaded model


No I didn't it's in the loaded model (The loaded BranchGroup) I checked it.
I checked the location of the ViewPlatform, I think, (
Transform3D.get(Vector3f) of the parent TransformGroup )
and it's far a way from the accumulated BoundingBox of the model.  So if
there is a way to compute what's in the view of the ViewPlatform, mabey I
can move it there..

David

----- Original Message -----
From: "Florin Herinean" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 13, 2004 10:17 AM
Subject: Re: [JAVA3D] Can't see a loaded model


> Have you also added some lights to the scene ?
>
> Florin
>
> -----Original Message-----
> From: Discussion list for Java 3D API
> [mailto:[EMAIL PROTECTED] Behalf Of Dudi Gil
> Sent: Donnerstag, 13. Mai 2004 11:09
> To: [EMAIL PROTECTED]
> Subject: Re: [JAVA3D] Can't see a loaded model
>
>
> Thanks Florin for your response,
>
> I tried to scale it (the model) down by 1/10000 and other values
> and yet can't see anything.
> Is there a way (equation or method) to compute what the viewPlatfrom see
> (What's on screen)??
>
> Thanks again
>
> David Gil
>
>
> ----- Original Message -----
> From: "Florin Herinean" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, May 13, 2004 9:11 AM
> Subject: Re: [JAVA3D] Can't see a loaded model
>
>
> > Isn't it possible that your model is just too big ? You're sitting
> *inside*
> > the model, and because of the backface culling you don't see anything.
> >
> > Try first to make your model smaller, i.e. to fit into a -1..1 cube and
> see
> > what happens. For example, put it into a TransformGroup and set the
> > transform to be a scale transform of 1/10000.
> >
> > Cheers,
> >
> > Florin
> >
> > -----Original Message-----
> > From: Discussion list for Java 3D API
> > [mailto:[EMAIL PROTECTED] Behalf Of Dudi Gil
> > Sent: Mittwoch, 12. Mai 2004 19:04
> > To: [EMAIL PROTECTED]
> > Subject: [JAVA3D] Can't see a loaded model
> >
> >
> > hi
> >
> > I loaded a .3ds model which it's Bounding box = Lower:(8584,37,-5068)
> > Upper:(8615,49,5058).
> >
> > My problem is that I can't see it.
> > How can I direct the viewPlatform to show the loaded model.
> >
> >
> > Thanks
> >
> >
>
===========================================================================
> > 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".
> >
>
>
===========================================================================
> 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".
>

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