Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Posted
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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...