01-12-2022, 03:47 PM
Hi Nayan,
Normals are always unit vectors (length = 1). If you want to display them relative to their surface location, just add the position of the surface element (ex: vertex) to them.
So in your code, just change to:
Normals are always unit vectors (length = 1). If you want to display them relative to their surface location, just add the position of the surface element (ex: vertex) to them.
So in your code, just change to:
Code:
DrawLine(pPos,pPos+Nrm,255,255,255);