D3D, C++, x-files

Hello,

currently im programming a tiny 3d-game with c++/d3d.
my problem:
im loading a map from a .x-file into my game and i got an player on the map which intersects with the mesh from the x-file (D3DXINTERSECT()). The Intersect works fine (just a ray to the ground (0,-1,0)), but i need to know the texture (ex. texturename from .x file) which i am standing on.
so is there a possibility to get the texturename of the current texture which the ray intersects?


can someone help me with this problem?
thanks
Last edited on
Topic archived. No new replies allowed.