View vector?

   2866   3   2
User Avatar
Member
88 posts
Joined: March 2010
Offline
Hi

Is there some kind of view vector(for the interactive windows) that I can utilize to do some calculations like creating view based tools?

I can use the Camera position, but I am looking for the right math to use both the camera pos and the rotation. Would camera matrix exploding give me a kind of view vector that I can utilize?


thanks
User Avatar
Member
39 posts
Joined: July 2010
Offline
Have a look at this flile. I calculate a normalized vector with the help
of an additional point in the camera. That's a silly way, but don't know a
better way

hope that helps

Attachments:
cameraViewNormal_v01.hipnc (55.5 KB)

User Avatar
Member
88 posts
Joined: March 2010
Offline
Hi 3Dude. Thanks for the file. Actually this is kind of what I have been doing when I needed something similar. But the problem is that this method does not take the rotation into account, only position based view.
User Avatar
Member
39 posts
Joined: July 2010
Offline
how do you mean? when I rotate the camera, the vector always points into the right direction.

seb.

Attachments:
cameraViewNormal_v02.hipnc (69.0 KB)

  • Quick Links