Sender: |
|
Date: |
Tue, 18 Jul 2006 14:24:06 +0100 |
Reply-To: |
|
Subject: |
|
MIME-Version: |
1.0 |
Content-Transfer-Encoding: |
7bit |
Content-Type: |
text/plain; charset=ISO-8859-1; format=flowed |
From: |
|
Comments: |
|
Parts/Attachments: |
|
|
Hello all,
I have a couple of questions - hopefully fairly straightforward.
Both relate to changing the default view of the camera when using Display3D.
Q1. I've figured out how to change the scale, using the Display3D.scale
method. However, I haven't managed to change the view point. How do I do
this? So for example how do I get the camera centred on (10,10,10)
looking down/up the z axis (or whatever is default).
Q2. I'm actually trying to centre the view at the middle of a cube (the
view can be along any axis as long as it points to the centre of the
cube). I would have thought it'd be possible to write a centre method
which automatically moves the camera (and perhaps alters scale) so that
it points at the centre of the scene (and possibly scales to fit in the
whole scene).
You would just need to know the smallest and largest x,y,z of all fields
in the model.
Thanks for the help
--
Mike
This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
|
|
|