Are the away3d clipping/culling methods not working for you?

http://groups.google.com/group/away3d-dev/browse_thread/thread/ccbcab2aa2156b87?hl=en
The Camera3D.screen() method says in the source that the screen object
can be passed for the first argument in place of an object.  So for
you it would be:

var sv:ScreenVertex = view.camera.screen(view.scene, yourVector3D);
var x:Number = sv.x + view.x;
var y:Number = sv.y + view.y;

On Jun 18, 10:26 am, Th3Sh33p <[email protected]> wrote:
> I understand that a function such as this ...
>
> private function getScreenPos(ob:Object3D):Point{
>         var posn:Vector3D = ob.viewMatrix3D.position
>         var screenX:Number = posn.x / posn.z;
>         var screenY:Number = posn.y / posn.z;
>         return new Point(screenX,screenY)
>
> }
>
> ...can find the 2D position of the 3D object, but how would I go about
> finding the 2D position of a vector3D that hasn't been added to the
> scene?
>
> I'm using this to find if a 3d object will appear on the screen if I
> add it, that way I won't waste precious processing power on a unseen
> object.
>
> Any help appreciated :)

Reply via email to