How to generate camera position from P?

Hi guys:

im trying to calculate specular while do relight in NUKE with P and N,
thus i need the vector of viewer position
im not a programmer and new to this ,i’ve just done diffuse calculating so far.
sorry if stupid questions

here are my questions:
How to generate camera position from P
How to transform P world space to camera space?
How to generate p camera space from Z depth?

somebody help me~
thanks very much!

No Responses to “How to generate camera position from P?”

Post a Comment