r3n

Is it possible to render a texture to a specific mesh, or part of a mesh Would these parts of meshes be called subsets I keep reading about subsets, but not really sure how to know which is which etc. Do subsets need to be created with the model, or are they defined at runtime



Re: Game Technologies: DirectX 101 Texturing subsets

Punkoff

Subsets are parts of model such as Cylinder01, Sphere 02, Box99 (when modelling in 3DMax). Just 1 matrial can be applied to a subset.




Re: Game Technologies: DirectX 101 Texturing subsets

r3n

Thanks for the hint. I figured out that I can retrieve "materials" when loading a mesh from file (as an out parameter). Using this array of materials, I then realised that I could associate texture to the current material (device.Material = materials[0]); which would then assume the last set texture.