Received: from mail.java.sun.com (mail.javasoft.com [204.160.241.28])
	by cis.ohio-state.edu (8.9.1/8.9.1) with ESMTP id TAA28183
	for <muniandy@CIS.OHIO-STATE.EDU>; Tue, 6 Jul 1999 19:18:17 -0400 (EDT)
Received: from mail (mail.java.sun.com [204.160.241.28])
	by mail.java.sun.com (8.9.0.Beta6+Sun/8.9.0) with ESMTP id PAA15298;
	Tue, 6 Jul 1999 15:58:31 -0700 (PDT)
Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d) with
          spool id 1743738 for JAVA3D-INTEREST@JAVA.SUN.COM; Tue, 6 Jul 1999
          15:58:04 -0700
Received: from aludra.usc.edu (aludra.usc.edu [128.125.253.184]) by
          mail.java.sun.com (8.9.0.Beta6+Sun/8.9.0) with ESMTP id PAA12751 for
          <JAVA3D-INTEREST@JAVA.SUN.COM>; Tue, 6 Jul 1999 15:00:08 -0700 (PDT)
Received: from usc.edu (solo.isi.edu [128.9.208.145]) by aludra.usc.edu
          (8.8.8/8.8.8/usc) with ESMTP id PAA15273 for
          <JAVA3D-INTEREST@JAVA.SUN.COM>; Tue, 6 Jul 1999 15:06:29 -0700 (PDT)
X-Mailer: Mozilla 4.51 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID:  <37827E91.2326AB25@usc.edu>
Date:         Tue, 6 Jul 1999 15:09:21 -0700
Reply-To: Discussion list for Java 3D API <JAVA3D-INTEREST@JAVA.SUN.COM>
Sender: Discussion list for Java 3D API <JAVA3D-INTEREST@JAVA.SUN.COM>
From: Andrew n marshall <amarshal@USC.EDU>
Subject:      [JAVA3D] Transfrom3D.lookAt()
To: JAVA3D-INTEREST@JAVA.SUN.COM
X-UIDL: 80d3f58491cd469db4d6d812890b42f0

I have a avatar that needs to be able to look at other objects in the
scene I imported from the VRML97 loader.  I've been trying to use the
Transform3D.lookAt() method, but I've been getting lots of bad results.
According to these messages:
  http://www.javasoft.com/products/java-media/mail-archive/3D/0280.html
  http://www.javasoft.com/products/java-media/mail-archive/3D/1472.html
...the lookAt method is really that buggy.

However, this message:
  http://www.javasoft.com/products/java-media/mail-archive/3D/1495.html
...suggests that I could invert the transform to get it to work.  I
tried it, but I got a transform that was almost correct, but faced the
wrong direction (PI around the y-axis).

If the need for the inversion was intentional, can someone explain the
design decision to me.  It doesn't make sense to me since, unlike
OpenGL, the world is not centered on the camera, so all uses of the
lookAt() method (cameras and external avatars) would need to be
inverted.


Thanks.


Anm

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

