I´m using the code below to load a .x file, but can´t figure out how to load the textures from the X file.
Plz help me with som code snippets showing how to do this.
Plz help me with som code snippets showing how to do this.
Code:
Mesh = Mesh.FromFile(Application.StartupPath & "/Map.X", MeshFlags.Dynamic, obj3DDevice)
MeshMaterials = New Material
MeshMaterials.Ambient = Color.White
obj3DDevice.Material = MeshMaterials
MeshTextures = TextureLoader.FromFile(obj3DDevice, Application.StartupPath & "/texture.bmp")