Re: Getting my device back.
From: Eyal Teler (et_at_nospam-et3d.com)
Date: 10/06/04
- Next message: protrackNews: "Re: Question about DX9.0c (summer update)"
- Previous message: Eyal Teler: "Re: Using Blender with DirectX"
- In reply to: L. Spiro: "Getting my device back."
- Next in thread: L. Spiro: "Re: Getting my device back."
- Reply: L. Spiro: "Re: Getting my device back."
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 06 Oct 2004 02:23:53 +0200
May be that you're forgetting to set some render states, matrices,
etc. These are lost when the device is lost.
Eyal
L. Spiro wrote:
> Using DirectX® 9.0c, Microsoft® Visual C++ .NET.
>
> When I lose my device and try to get it back, I unload all models, textures,
> and lines, restore the device, and then get everything back.
> This works as far as getting my objects reloaded, textures back in place, etc.
> The screen comes back to full-mode and seems to start drawing normally
> again, except there are no 3-D objects anymore.
>
> My menus show fine, since they are 2-D, even though they have 4 vertices for
> the backdrop/filling.
>
> But no models will display anymore.
> It is not a problem with unloading and reloading the model—this same exact
> operation is done many times during runtime before minimizing and it works
> fine.
> And after maximizing again, the models report themselves as loading fine.
>
>
> It IS possible that the models are not loading correctly and I will continue
> looking into this problem on my own, but since it has to be run in
> full-screen for the device to get lost, I can not use the debugger to track
> this problem.
>
>
> And there is the other thing; the real reason I am posting.
> The other problem is that the window takes the full screen, and acts as a
> full-screen window, and all is normal in that respect, until you bring the
> mouse to the edge of the screen and drag. The window can be resized after
> the device has been restored. Dragging the edge of the window causes
> jitteriness while you are dragging, but when you release the mouse the window
> goes back to its normal full-screen size. After that, clicking on the areas
> where the window was dragged off will cause events to happen in the
> background.
>
>
>
> This problem only just recently happened, and my models only just stopped
> loading after restoring the device. Are these problems related?
> What could be causing the dragging problem?
> I will continue searching for the answer to the first problem on my own but
> I wanted to post these together in case they are somehow related. They
> showed up at the same time.
>
>
> L. Spiro
- Next message: protrackNews: "Re: Question about DX9.0c (summer update)"
- Previous message: Eyal Teler: "Re: Using Blender with DirectX"
- In reply to: L. Spiro: "Getting my device back."
- Next in thread: L. Spiro: "Re: Getting my device back."
- Reply: L. Spiro: "Re: Getting my device back."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|