How to find what tri a texel is on?

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

Ross C(Posted 2004) [#1]
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?


Ross C(Posted 2004) [#2]
It's ok. Stupid me didn't look in the code archives well enough :)

Good 'ol Fredborg!


Mac M(Posted 2004) [#3]
Can you post the direct link please? I'm looking for the same function.
Thanks


Ross C(Posted 2004) [#4]
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 :)


big10p(Posted 2004) [#5]

Good 'ol Fredborg!



Yes, he is The One! ;)