Original Post
Context: [DirectX 7] [Direct3D] [Windows 2000] Hi, I'm having some trouble with textures/texturecoordinates in the Direct3D version of my application. I'm working on a so called serious-gaming-engine (3D engine for educational purposes). When I load a world for the first time, everything works as planned. See the screenshot below: http://130.89.227.64/foddex/it/1.jpg Please ignore the lighting errors (big white line and black faces behind the guy) :) When I load the world again, the result is the following: http://130.89.227.64/foddex/it/2.jpg The textures are all stretched! And also, the textures *move over the faces* in a weird way when the camera moves (which ofcourse can't be shown with one screenshot alone ;)). I have no clue at all about what is going wrong. The same loading and rendering code is simply used two times, but the first everything works, and the second time it doesn't. Do you guys have any idea what might be going wrong? Any clues as to what I should check (Direct3D states maybe?) I have an OpenGL version of my application as well, which uses the exact same abstract rendering/loading code (just implemented in a OpenGL fashion in stead of a Direct3D fashion), and there everything works just fine, so I'm pretty sure the texture coordinate data is correct. Here's my Direct3D texture loading and unloading code. Maybe you guys can find something there? Remember, it's DirectX 7, I can't use anything else!
Thanks in advance for any help! Marc
|