texture for wrapping

Started by
1 comment, last by CNBABY 18 years, 9 months ago
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.
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.
--m_nPostCount++
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

This topic is closed to new replies.

Advertisement