GetClosestNormal
#2
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:

Code:
DrawLine(pPos,pPos+Nrm,255,255,255);
  Reply


Messages In This Thread
GetClosestNormal - by nayan - 01-12-2022, 11:17 AM
RE: GetClosestNormal - by tyFlow - 01-12-2022, 03:47 PM
RE: GetClosestNormal - by nayan - 01-13-2022, 06:19 AM

Forum Jump: