CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    4

    texture wrapping in direct3d

    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


  2. #2
    Guest

    Re: texture wrapping in direct3d

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured