MASON-INTEREST-L Archives

July 2006

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Proportional Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Sat, 22 Jul 2006 07:26:46 -0400
Reply-To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Subject:
From:
Sean Luke <[log in to unmask]>
Content-Type:
TEXT/PLAIN; charset=US-ASCII
In-Reply-To:
MIME-Version:
1.0
Comments:
To: MASON Multiagent Simulation Toolkit <[log in to unmask]>
Parts/Attachments:
TEXT/PLAIN (31 lines)
Mike, I am in Italy now and have limited access.  I will try to respond to
this as soon as possible, or perhaps Gabriel can answer it.

Sean

On Tue, 18 Jul 2006, Michael Lees wrote:

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

ATOM RSS1 RSS2