javascript - How to convert X,Y,Z cords into X,Y Cords in lua or c# or c++ -
does have function can convert 3d point 2d point drawing? wan't preferably in lua if have in 1 of these languages can convert lua :
lua,python,c++,c#,c,javascript,vb,vbs,batch
it depends on kind of drawing wish do. if want example top view, ignore z coordinate , draw x,y coordinates directly. if want perspective view, involve 4x4 matrices operations. if want parallel view, similar maths apply, except in special cases, top views or elevation views, can easier implementation ignoring coordinate, said @ beginning.
i see want perspective. opengl red book explains required maths in detail.
Comments
Post a Comment