How can I get the texture coords of the pickedx,y?

BlitzMax Forums/MiniB3D Module/How can I get the texture coords of the pickedx,y?

Sanctus(Posted 2007) [#1]
Hi
I use CameraPickfunction() and I was wondering how can I get the texture coords of the picked x,y?
Please help me


simonh(Posted 2007) [#2]
PickedU(), PickedV(), PickedW()


Sanctus(Posted 2007) [#3]
Thanx :) ITs a bit weird as some part of the code seams to be in b3d and some bmax but I will rewrite it :)
Thank you very much


Dreamora(Posted 2007) [#4]
This is all Blitz3D code :-)


Sanctus(Posted 2007) [#5]
Well I did write in Blitz3D for a long while... so it shouldn't be a problem (or till now it isn't)


Sanctus(Posted 2007) [#6]
Damn... MiniB3d doesn't seamn to have the VertexNX,VertexNY,VertexNZ,VertexU,VertexV,VertexW functions.


simonh(Posted 2007) [#7]
Some of the function definitions are missing but the methods still exist in TSurface.

Use

surf.VertexNX(vertex_index)


Sanctus(Posted 2007) [#8]
Oh... stupid me :)