Directx 7.0 - D3D Problem
I have been using directx5 for awhile and finally moved to dx7. I can not seem to get the Direct3D Initialization right in fullscreen mode. Everything seems to initialize okay, but I can not render anything. I have looked through the samples in the SDK and am doing the inialization and rendering just like I did with dx5, just with the differences that I found in the SDK samples. I even tried converting the triangle sample to fullscreen. I changed the cooperative mode flags to DDSCL_EXCLUSIVE and DDSCL_FULLSCREEN, added a SetDisplayMode command, and set the viewport to 1024x768 (same as the resolution I set). I end up with a fullscreen window that looks like a window, not the typical color-filled screen, complete with title bar. The Clear and Flip commands wont do anything like clearing the screen and flipping the surfaces. I have checked all of the return flags from the functions and none had errors. From what I remember, thats the only steps I had to take to do fullscreen mode in dx5. Is there anything that changed in dx7? I also can''t seem to find a good tutorial for fullscreen direct3d 7. Can anyone recommend one?
1>Ensure that your triangles are not being culled.
2>Ensure that your triangles are not degenerate.
3>Make sure that your transformations are internally consistent.
4>Check the viewport settings to be sure they will allow your triangles to be seen.
2>Ensure that your triangles are not degenerate.
3>Make sure that your transformations are internally consistent.
4>Check the viewport settings to be sure they will allow your triangles to be seen.
Remember to create a flipping chain.
When in windowed you create the backbuffer as an offscreen surface but when in fullscreen you add the surface to a flipping chain and the primary must be complex.
The window problem is that the window isn''t created as a popup window. Look at a fullscreen sample and see how they create the window.
When in windowed you create the backbuffer as an offscreen surface but when in fullscreen you add the surface to a flipping chain and the primary must be complex.
The window problem is that the window isn''t created as a popup window. Look at a fullscreen sample and see how they create the window.
Don''t know if that is the solution for you, but in D3D 7 the Lighting Mechanism changed, and it is per default enabled. So when you don''t set any Lights and Materials, your scene stays completely black.
I had that Problem also a while ago. i nearly wen''t crazy searching the Error.
Lars
I had that Problem also a while ago. i nearly wen''t crazy searching the Error.
Lars
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement