From: Allan Schaffer (allan++at++sgi.com)
Date: 03/18/2002 15:30:30
Forwarding; this was caught by the SPAM filters -- don't forget to
disable HTML when posting to info-performer. In many mail programs this
can be done automatically.
Allan
-------- Original Message --------
Subject: Re: camera back and forth
Date: Mon, 18 Mar 2002 10:40:09 -0600
From: Ken Schwarz <kschwarz++at++sgi.com>
Organization: SGI
To: will wey <will_wey++at++hotmail.com>
CC: info-performer++at++sgi.com
References: <F93LfzjPK7aonE8kuma0000202b++at++hotmail.com>
Hey Will,
Start with /usr/share/Performer/src/pguide/libpf/C++/simple.C. The
camera's position is set in lines
156-160:
view.hpr.set(45.0f*t, -10.0f, 0);
view.xyz.set(2.0f * bsphere.radius * s,
-2.0f * bsphere.radius *c,
0.5f * bsphere.radius);
chan->setView(view.xyz, view.hpr);
Take the XInput routines out of
/usr/share/Performer/src/pguide/libpf/C++/complex.C *or* just start with
complex.C
and pare it down to make it a little easier to understand.
Best,
Ken
will wey wrote:
I?m trying to create an application that moves the camera back and
forth in
a scene using the keyboard - I cannot find a simple example of this
kind of
thing, some examples of immensely complicated and would take me
years to
work out what?s happening - can anyone point me in the direction
where I can
find a well written simple program that shows me how to do this one
simple
thing?
Thanks
will
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
-----------------------------------------------------------------------
List Archives, Info, FAQ: http://www.sgi.com/software/performer/
Open Development Project: http://oss.sgi.com/projects/performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
-----------------------------------------------------------------------
-- .. Ken Schwarz Technical Consultant SGI Dallas kschwarz++at++sgi.com .. .. 972.628.3232 W/972.902.9639 Pager http://reality.sgi.com/kschwarz .. .. Brain: Pinky, what rhymes with June? Pinky: No it doesn't. .. .. SGI in the marketplace at http://www.sgi.com/company_info/dyk/ ..-- Allan Schaffer allan++at++sgi.com Core Rendering 1-650-933-2160 Silicon Graphics http://www.sgi.com
This archive was generated by hypermail 2b29 : Mon Mar 18 2002 - 15:31:30 PST