开发者

How to generate normal coordinate?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜