0
Answer

Texturing predefined meshes in manged directx

Ask a question
donpedro1

donpedro1

20y
1.6k
1
I'm a beginner with directx and would like to learn how to exploit simple features of manged directx under C#. I've manged to do some simple things like creating a mesh using predefined meshes, apply material to it, turn on lightning and specular highlights, rotate the scene and some other but i can't put a texture on the predefined mesh. Here's what i do: 1. i load the texture using texture loader 2. i set texture to device 3. i try to draw the mesh using draw subset, but unfortunately it doesn't work. if i set some material to the device the mesh is rendered using this material and not using texture. Can anyone give me some advice how to apply textures on predefined meshes in managed directx ?? Thnanks