Hi
I want to map the 2D human face image as a texture on
I want to map the 2D human face image as a texture on
3d head model in managed DirectX. Can Anyone help me on this problem
I have already tried TextureLoader.FromFile(...) Method
but it didnt work. This method put some dark shade on 3d model
and nothing else. I want to map the image from file on 3d head model.
How this would be done
thnx

Texture map to 3d head model
Heather2
Testking
marv101
As the previous reply said, the best/easiest way of creating a correct mapping is to use a 3D modelling tool to generate your head mesh with texture coordinates. Save it from your modeller, and then import this into Direct3D via the usual methods...
Alternatively, you might want to look into the "UVAtlas" components that appeared as part of D3DX in recent SDK refreshes. It'll require a fair bit of work on your part, but is probably as close as you can get for generating the mapping using just source code.
hth
Jack
jrs34
t_shan
So I have to map different texture each time I use different face picture and I cant use modelling program. I have to do it in program.
I have also tried by setting individual Texture Coordinates(tu, tv). I did this as follows......Load the mesh(.x file). Then Lock the mesh by 'LockVertexBuffer' method, access its vertices as 'CustomVertex.PositionNormalTextured' and then set its Texture Coordinates but it doesnt work for me.
Can you tell me something in managed directX since I am using c# for my program.
imate_bluetooth