Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to understand Camera's properties like Position, Look Direction, Up Direction?

Tags:

wpf

camera

3d

I downloaded some sample from internet. but the sharp always disappear when i changed any value of Position, or Look Direction, or Up Direction. I can't understand these properties, can anyone help me?

what's relationship between these properties? is there any sample to show these relationship?

like image 696
Cooper.Wu Avatar asked Nov 11 '09 15:11

Cooper.Wu


2 Answers

Position is a vector from the scene root(origin) to the camera.

Look direction is a unary vector positioned at the camera that points in the direction the camera is looking.

Up direction is a unary vector that points to "the sky", I mean, points in the direction the camera considers as "up". Normally you use a (0,1,0) vector here.

Look here for more info.

Hope that helps.

like image 78
Daniel Rodriguez Avatar answered Oct 22 '22 23:10

Daniel Rodriguez


Look at http://blogs.msdn.com/b/ebooth/archive/2005/12/07/500796.aspx

like image 28
Ivan Ferrer Villa Avatar answered Oct 23 '22 00:10

Ivan Ferrer Villa