Alrighty, so here's what I want. I'm basically trying to make a "model painting" tool so by click-dragging on the screen you can paint on the model's texture.
I already know that I need to get a triangle from the collision manager. I know how to do that. But how do I get the texture coordinates of the closest texel based on a point on that triangle?
Getting UV coordinates of a triangle from screen coordinates
1.)pick the triangle
2.)check which triangle from the meshbuffers of your mesh matches the
picked triangle
3.)get the uv coordinates via TCoords (http://irrlicht.sourceforge.net/docu/st ... ertex.html)
2.)check which triangle from the meshbuffers of your mesh matches the
picked triangle
3.)get the uv coordinates via TCoords (http://irrlicht.sourceforge.net/docu/st ... ertex.html)