google / mipnerf

Apache License 2.0
894 stars 109 forks source link

How to get equation (5) #45

Open cx-tian opened 1 year ago

cx-tian commented 1 year ago

My undestanding of the first condition is: the projection of o to x on the direction d should be between $t_0$ and $t_1$.

But I don't understand how to get the second condition. Can anyone help me?

image
sergedesmedt commented 11 months ago

I think they are calculating the cosine of the angle with respect to the centerlnie of the cone.

So basically, they are saying the cosine of the angle should be larger then the cosine of the angle made by a point on the surface of the cone. And as the cosine of a smaller angle is larger then of a large angle this means the angle must be smaller, hence the point must be inside the cone.

See also: angle between vectors