Maybe you should look into using the billboards instead of planes. I think they 
always face the camera, no matter what


On Sat, 27 Feb 2010 22:56:58 -0800, dyc <[email protected]> wrote:

Hey guys,

I have this 3D tag cloud sphere of planes all sitting inside of an
ObjectContainer3D.

Im using the following code on enterFrame to have the planes lookAt
the camera, but I am unsure if its using the values inside of the
Container, or the whole scene.

Any ideas? Basically the planes are all facing the same spot no matter
what even tho the container is being rotated on x and y...Is the
lookAt going to the x,y,z inside the container? Is there a way to have
it face the camera at all times?

for (var j:uint = 0; j < tags.length; ++j) {

                                tagArray[j].lookAt(viewport.camera.position);
                tagArray[j].alpha = minAlpha + (1 - minAlpha) * (1 -
(tagArray[j].z - radius) / (2 * radius));
            }



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Reply via email to