getting texture coordinates - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

getting texture coordinates

cignox1cignox1 Posts: 33Member
I'm writing a ray tracing-engine. Now I need to calculate the texture (x, y) coordinates starting from the UV coordinates (of the triangular polygon), the (x,y,z) intersection point between eye-ray and polygon and the size of the texture (it's not a procedural one).
I know that there exist an algorithm that consists in resolving a linear equation system, but I have no good skills in these things :-)
Is there some other algorithm? Or does someone know some web tutorial/document that describes this one?
Thank you

Sign In or Register to comment.