Jump to content
  • Advertisement

Archived

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

Cipher3D

texturing shapes made by D3DXCreate....

This topic is 5267 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
Advertisement
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,

Ken
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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!