Click to See Complete Forum and Search --> : texture wrapping in direct3d


cyberdyne
April 3rd, 1999, 05:03 PM
i have some problems with texture wrapping in direct3d i need to wrap a bmp file around a
blok so that the sides are good i have tested some possibilities but one side is always wrong
and because you can see the 4 sides i need to have them all in the right shape

September 26th, 1999, 10:05 AM
hi

I donīt know how Direct3D handles texture mapping but the way textures are used is almost the same every time:
First of all you have a texture that must be split into several tiles which means if you have a triangle, for example, you have to specify the u and v coordinates of the texture in the vertex structures of the triangle, and then the parts of the texture are projected correctly.
I guess that your problem is that the u and v coordinates are not initialized
properly which causes some ugly effects.

hope that helps

ralph