VBGamer |
|||||||||||||||||||||||||||||||||||||||||||||||||||||
Texturing Meshes not made from X-Files XZero (2 replies, 0 views) (2001-May-29) I'm new to DirectX and one thing that I don't get is how to properly texture something. Normally I create X-files and the textures come out fine, but now I want to create a mesh in my program, just a rectangle. When I use the D3DX.CreateBox function, I get a non-textured cube. When I try to just set a texture before it's rendered, the texture will constantly change shape and size (whenever you rotate the view). I think that I must set where the texture must go on the mesh, but I don't know how. I've poured over the help files to no avail. Does anyone have any idea?
|