开发者

How to generate normal coordinate?

开发者 https://www.devze.com 2022-12-26 04:22 出处:网络
I\'m developping an game using th开发者_开发百科e API opengl es 2.0. I need to know how to generate the normal coordinate because i need them to developp the lighting.

I'm developping an game using th开发者_开发百科e API opengl es 2.0. I need to know how to generate the normal coordinate because i need them to developp the lighting. I'm wondering if there is a software or an algorithm that generate normal coordinate. Great thanks!


Normals are not coordinates but vectors. The normal of a plane is the cross product of two vectors that lie on that plane.

Given three coordinates (say a,b,c) on a plane, you can calculate the normal by;

(b - a) X (c - a)

Wiki link : CrossProduct

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号