normals help

Blitz3D Forums/Blitz3D Programming/normals help

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi there,

Given nx,ny and nz (normals) how do we determine a slope value? for example when linepicking directly down we return these normals. I would like to translate them into a workable result: a slope value between 0 and 1, with 1 being vertical and 0 being horizontal.

I hope you can help :)

Rob