How to find what tri a texel is on?

Blitz3D Forums/Blitz3D Programming/How to find what tri a texel is on?

Hey, i want to be able to find what triangle a texel(pixel) of a texture is on. I need this as i am attempting to create a 3d normal mapping, instead of just the flat surface stuff. But this is where i'm a bit stumped... Speed isn't really important either. Any ideas?

It's ok. Stupid me didn't look in the code archives well enough :)

Good 'ol Fredborg!

Can you post the direct link please? I'm looking for the same function.
Thanks

It's an entry in the code archives, by Fredborg.

http://www.blitzbasic.com/codearcs/codearcs.php?code=515

;)

Probably take a bit of reworking :)


Good 'ol Fredborg!



Yes, he is The One! ;)