texturing standard primitives (managed directx, c#)

akuehn3000

Newcomer
Joined
Jan 29, 2004
Messages
18
Hi,

I´d like to put a texture on a standard primitive created with Mesh.Sphere()
or Mesh.Box(), for example.
How can I set the texture coordinates on these objects? When just setting a
texture, it seems that it´s not being rendered.
 
normally you can apply texture coordinates in the X files but you can also do it afer loading by changing the u and w variables at the single vertexes in the vertexbuffer/indexbuffer of the mesh
 
Back
Top