Jump to content
alu3n

GU_Intersect wrong normal

Recommended Posts

Hello,

I am computing intersections using `GU_intersect` class. It has an interface that implies that it should be computing interpolated normal. I've got my scene setup with both point and vertex normals set. However, no matter which part of the geometry the ray hits, I always get primitive normal (which isn't even set). I am accessing the normal using `GU_RayInfo::mNml`.

I've even tried evaluating normals of the primitive using UVs, but the results are the same regardless UV values.`rayInfo.myPrim->evaluateNormalVector(normalOut,u,v)`

How can I get interpolated normal without having to compute it manually?

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

×