Hey Rich

my understanding of it is that i need to translate the object
> positions by the camera position and then rotate that scene by the
> camera rotation values
>

basically yes, but you have to apply the inverse of the camera values

 i was hoping i could skip this computation and use the data that
> away3d had calculated as part of view.render() ;)


well there is something, but you have to  access it after the render call:

var objectMatrix:MatrixAway3D =
view.cameraVarsStore.viewTransformDictionary[object3d]

this will return the transformation matrix that the camera 'sees' of the 3d
object.

hth

Rob

On Sun, May 2, 2010 at 1:34 AM, Rich Elmes <[email protected]> wrote:

> thanks for the book tip, i'll have a look into that.
>
> i *think* i understand what i need to do
>
> the example i gave was overly simplified
>
> i'm trying to achieve a radar type of thing, i need to know where
> other objects are in relation to the player (camera)
>
> my understanding of it is that i need to translate the object
> positions by the camera position and then rotate that scene by the
> camera rotation values
>
> i was hoping i could skip this computation and use the data that
> away3d had calculated as part of view.render() ;)
>
> On Apr 30, 7:50 pm, Michael Iv <[email protected]> wrote:
> > Right Choice Man , I have read a few books on 3d math .This one is really
> > the best written one .
> >
> > On Fri, Apr 30, 2010 at 9:47 PM, savagelook <
> [email protected]>wrote:
> >
> >
> >
> >
> >
> > > You must have suggested it before, cause thats the one i bought :)
> >
> > > On Apr 30, 2:28 pm, Michael Iv <[email protected]> wrote:
> > > > I can suggest the best book on 3d math ever:
> > > > *"3D math Primer for Graphics and Game Development "*
> >
> > > > On Fri, Apr 30, 2010 at 7:54 PM, savagelook <
> > > [email protected]>wrote:
> >
> > > > > The fact that I can't answer your question with math just got me
> out
> > > > > of the away3d asdocs and into amazon to purchase a book on 3d
> > > > > mathematics.
> >
> > > > > On Apr 29, 7:37 pm, Rich Elmes <[email protected]> wrote:
> > > > > > hi
> >
> > > > > > is there a way of access the translated positions of objects in
> the
> > > > > > scene relative to the camera view?
> >
> > > > > > so say I had an object at 100,100,0 and the camera was at 0,100,0
> and
> > > > > > facing along the positive X axis, according to the the camera the
> > > > > > object is now directly in front at 0,0,100
> >
> > > > > > is it possible to get this information?  i couldn't find anything
> > > that
> > > > > > looked like this in the docs or here in the group.
> >
> > > > > > regards
> >
> > > > > > richie
> >
> > > > --
> > > > Michael Ivanov ,Programmer
> > > > Neurotech Solutions Ltd.
> > > > Flex|Air |3D|Unity|www.neurotechresearch.com
> > > > Tel:054-4962254
> > > > [email protected]
> > > > [email protected]
> >
> > --
> > Michael Ivanov ,Programmer
> > Neurotech Solutions Ltd.
> > Flex|Air |3D|Unity|www.neurotechresearch.com
> > Tel:054-4962254
> > [email protected]
> > [email protected]
>



-- 
Rob Bateman
Flash Development & Consultancy

[email protected]
www.infiniteturtles.co.uk
www.away3d.com

Reply via email to