Sign in to follow this  

Can this calculaton be simplified?

Recommended Posts

The denominator depends on depthNonLinear, and you are using it only once. No way to precompute it.

 

You can construct a crude approximation of function projMatrix_43 / (depthNonLinear - projMatrix_33) given a range of depthNonLinear and constant projMatrix_43 and projMatrix_33 values, but I wouldn't bet on making it both faster than the exact computation (one subtraction and one division) and accurate enough.

Edited by LorenzoGatti

Share this post


Link to post
Share on other sites

The denominator depends on depthNonLinear, and you are using it only once. No way to precompute it.

 

You can construct a crude approximation of function projMatrix_43 / (depthNonLinear - projMatrix_33) given a range of depthNonLinear and constant projMatrix_43 and projMatrix_33 values, but I wouldn't bet on making it both faster than the exact computation (one subtraction and one division) and accurate enough.

That's what I suspected. Thanks for the input!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this