direction of view of my camera

Software: Away3D 4.x

seti3d, Newbie
Posted: 18 March 2013 07:52 AM   Total Posts: 19

Hi!
My imported AWD file is positioned at 0,0,0. Using a HoverController with just changing the panAngle I can move my camera around the object.

As some details of the object are too small I can do a mouse-click on them to display a big png (with transparent background) in front of the object. When I click on the png it will be unloaded.

The problem is the following:
if I start the script and click an object the png will be displayed correctly in front of the object.
BUT if I first move the camera around to the opposite site of the
object the png will be displayed on the position before - also on the opposite site of the object.

Does anyone has an idea how I can find a position between the camera (whereever it is positioned) and the object so that the displayed png will always be displayed in front of the object?

By the way - I just use the panAngle of the HoverController. The tiltAngle is fixed!

Thanks in advance!

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X