Hi David and Everyone else,

I am also interested in doing this, and would like any comments from
people who have done it.  It seems to me that it involves 2 steps -

1) Parse through the scene graph and get the highest and lowest x and y
(and z?) coordinates (and possibly some other information about their
distribution, depending on the type of scene and how you want the
view).

2) Position the coordinates of the view point to exactly include all
the points.

My thoughts -

1) could be a little slow, and I guess would have to be done on the
uncompiled scene graph.  Does anyone know of a function to get it from
the scene?

2) should be easy, just a little maths dependent on the parameters of
the view.

Any comments are gratefully received, before I spend a load of time
doing it all myself (I am a bit of a newbie).

Cheers,

Hugh

>Delivered-To: [EMAIL PROTECTED]
>User-Agent: Mozilla/5.0 (Windows; U; Win98; fr-FR; rv:0.9.4.1) Gecko/20020508
Netscape6/6.2.3
>X-Accept-Language: fr-fr
>MIME-Version: 1.0
>Content-Transfer-Encoding: 7bit
>Subject: [JAVA3D] VRML
>To: [EMAIL PROTECTED]
>X-Razor-id: 4aeb0401a83f84c51fb75e797895e52bbaf6a146
>
>Hi
>
>I'm develloping an application which displays a vrml scene.
>That's OK for displaying but my problem is that I would like my vrml
>scene well centered.
>Any code source will be very appreciated.
>
>Thanks !
>
>David Bourgais
>
>===========================================================================
>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