I was just sitting to try to figure out this issue and came to the following : if we perform vector subtraction between cam position and object position we can define patterns for determining which side the object is facing the camera from:
Let's suppose that: camVector(0,100,0); objVector(100,100,0); substracting camVector from ObjVector:(100,0,0) now we know that the object is 100 on the right of the cam. The same is for any other direction. So basically you have to check for the condition where to other axises of the output vector are 0,0 in order to know that you object is strictly (90 degrees ) on the side of the camera . because when two other are not 0,0 that means that the object is not exactly side parallel to your camera . Sure it was just primitive solution but I believe you can use this approach to get what you need :) 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]
