54
« on: September 09, 2006, 12:38:29 AM »
Greetings, everyone.
I have following (DirectX related) problems:
1) I need to create a geometry primitive in WME, that changes it's vertex positions and topology frequently. (every frame). This object needs to be completly procedural, so no skeletal animation usage is possible.
2) I need to render a scene from another point of view, and put image to the texture, that will be used on that object.
3) I need to use a vertex\pixel shader with that object.
Those task can be easily accomplished in PURE DirectX C++ code, but it looks like i just don't have access to all required funcionts\events\interfaces. For example - I didn't find something like "OnReset"or, at least, "WM_SIZE event handler". It's possible to create render targets using given IDirect3DDevice8 interface (by the way, why don't you use DirectX9?), but they will be certainly lost during device reset, that occurs every time user switches(Alt-Tab) windows. Such unreleased interfaces (not only render targets, stateblocks, and many other interfaces) will cause ineventiable crash.
What is the solution?
P.S.It looks like it would be much simpler for me just to rewrite entire graphic-related section of program, but, unfortunately, source code is not awailable...