Sign in to follow this  
CNBABY

texture for wrapping

Recommended Posts

i have draw a teaport in my scene.i want to wrap the teaport with a texture.how would i do? is there any web that provide code or document about this? thanks for any help.

Share this post


Link to post
Share on other sites
Did you create the teapot model? If the teapot model does not already have texture information in it, then you either have to add that information using a 3D modeling program, or maybe in your case, find another model with texture information in it.

If you are using the .x format, then once you find a model with uv information in it's vertices, and a texture sitting in the same directory as the file, then the ID3DXMesh object should pick it up and render it automatically.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this