• Advertisement
Sign in to follow this  

texture for wrapping

This topic is 4622 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 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
Advertisement
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
sorry!
yes,i creat a teapot model in my scene and it has not texture information.
i use opengl.so .....
could i use object coordinate mapping the texture

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement