fillycream

I am developing a racing game with DirectX 9.0c and VC++ 2003.NET. When I use the retail version of direct3D some of my sprites dont show up, when I switch to debug version of direct3D, all sprites appear once again.

Tools >> Options >> Debugging >> DirectX is where i change from retail mode debug mode of Direct3D

Why would this happen


Re: Game Technologies: DirectX 101 Missing sprites

The ZMan

Debug mode checks your parameters a little better than the retail mode so maybe you are doing something strange that the debug runtime is allowing through. If you increase the debug out put to full in the DX control panel do you see any errors or warnings go by




Re: Game Technologies: DirectX 101 Missing sprites

fillycream

I get alot of these warnings and errors


Direct3D9: (WARN) :Ignoring redundant SetSamplerState Sampler: 0, State: 19

Direct3D9: (WARN) :Ignoring redundant SetSamplerState Sampler: 0, State: 20

Direct3D9: (WARN) :Ignoring redundant SetSamplerState Sampler: 0, State: 29

Direct3D9: (WARN) :Ignoring redundant SetSamplerState Sampler: 0, State: 30

Direct3D9: (ERROR) :Viewport width or height is zero or negative

D3D9 Helper: IDirect3DDevice9::SetViewport failed: D3DERR_INVALIDCALL
Direct3D9: (ERROR) :Viewport width or height is zero or negative

D3D9 Helper: IDirect3DDevice9::SetViewport failed: D3DERR_INVALIDCALL
Direct3D9: (WARN) :Ignoring redundant SetSamplerState. Sampler: 0, State: 1

Direct3D9: (WARN) :Ignoring redundant SetSamplerState. Sampler: 0, State: 2

Direct3D9: (WARN) :Ignoring redundant SetSamplerState. Sampler: 0, State: 6

Direct3D9: (WARN) :Ignoring redundant SetSamplerState. Sampler: 0, State: 5

Direct3D9: (WARN) :Ignoring redundant SetSamplerState. Sampler: 0, State: 7

Direct3D9: (WARN) :Ignoring redundant SetSamplerState. Sampler: 0, State: 10

Direct3D9: (WARN) :Ignoring redundant SetSamplerState. Sampler: 0, State: 1

Direct3D9: (WARN) :Ignoring redundant SetSamplerState. Sampler: 0, State: 2

Direct3D9: (WARN) :Ignoring redundant SetRenderState - 56

Direct3D9: (WARN) :Ignoring redundant SetRenderState - 57

Direct3D9: (WARN) :Ignoring redundant SetRenderState 56

Direct3D9: (WARN) :Ignoring redundant SetRenderState 57

Direct3D9: (WARN) :Ignoring redundant SetSamplerState Sampler: 0, State: 13



What does this mean




Re: Game Technologies: DirectX 101 Missing sprites

fillycream

SWEET, thanks alot ZMan, I put the viewport initialization code on the constructor as well as my onResetDevice method. I also check to see that the width and height is not negative or zero.

you can check out some screenshots of my game at http://www.absolutegames.ca/dragon.shtml


thanks alot