New answers tagged

1

To change polygons orientation you need to change indices order, so that faces are facing in different direction. From clockwise to counter-clickwise (or vice versa, it depends on your graphics engine setup). Change every triangle indices order from being 1-2-3 to 1-3-2.


2

Your code isn't wrong at all. You are dealing with matrices and vertices the right way (your 3D simulation actually works), and even texture mapping is fine. Matter is, your texture mapping algorithm uses just a linear interpolation to map a point in the 3D space to a point in the 2D plan of a given texture. Texture mapping When mapping texture to mesh ...



Top 50 recent answers are included