realbasic-games
[Top] [All Lists]

Re: trimesh particles demo, version 2

To: realbasic-games at lists dot realsoftware dot com
Subject: Re: trimesh particles demo, version 2
From: Craig Macomber <FishyRB at 98115 dot net>
Date: Tue, 14 Nov 2006 22:04:05 -0800
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <20061109180023 dot DC5CE1633627 at lists dot realsoftware dot com>
I found a bug in the trimesh particles demo. It is that the particles are orientated to face the camera, not to be parallel with the hither and yon. This is very clear (but not its cause) when the camera is near particles that are near the edges of the screen. It all comes down to the fact that RB3D is a truncated pyramid, not a portion of a sphere. The Point at object code is correct, but not what is needed in this case.

The code to point at the camera should be
      // Aim it at the camera...
      'PointObjectAt(obj, camPos)
      Obj.Orientation.Copy(camQuart)
      Obj.Yaw(Pi)

The old code is left there commented out. camPos is replaced by camQuart, the orientation of the camera.

Craig.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>