Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.

texturing shapes made by D3DXCreate....

This topic is 5141 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i''m creating cubes and spheres and cones and all that good stuff via the cheap function, D3DXCreateSphere,Box,Cylinder,etc. And of course, by using these cheap functions, I have barely any control over what I create, and one of the things I need is a way to texture these shapes. I know I can access the vertex buffer, and texturing a cube may be easy, but how the heck would I texture a sphere? From what I''ve seen in the DX samples, all their spheres that are textured are loaded from X files, and all their spheres that are NOT textured are created from D3DXCreateSphere function. So unless I can mathemagically make a sphere instead of D3DXCreateSphere, I''m pretty stuck using boring, untextured spheres. Any help? Thanks a lot!

Share this post

Link to post
Share on other sites
You can clone the mesh to have texture coordinates, but of course they won''t be filled in. This makes sense since there are a variety of ways to texture a sphere.

Do a Google search for Texture Mapping Sphere and it should pull up quite a few sources.

Stay Casual,

Drunken Hyena

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!