Discussion:
dark surface after resize
(too old to reply)
Pascal Cloup
2009-05-12 14:34:18 UTC
Permalink
Hi,

After resizing a Form, most of the objects (mesh, vertexBuffer,...) appear
with dark colors under Vista. This works perfectly under XP.
The DeviceReset event is correctly handled but it seems that the lights are
not reseted correctly.
Some old posts relate this problem but i did not saw a solution.

Someone can help?
(I use MDX 1.1+C#+VS2005).

Thanks in adance,
Pascal
legalize+ (Richard [Microsoft Direct3D MVP])
2009-05-12 22:55:18 UTC
Permalink
[Please do not mail me a copy of your followup]
Post by Pascal Cloup
After resizing a Form, most of the objects (mesh, vertexBuffer,...) appear
with dark colors under Vista. This works perfectly under XP.
The DeviceReset event is correctly handled but it seems that the lights are
not reseted correctly.
Some old posts relate this problem but i did not saw a solution.
You have to reset all the state on the device that you were using.

Render states, enabled set of lights, materials, etc.
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
<http://www.xmission.com/~legalize/book/download/index.html>

Legalize Adulthood! <http://blogs.xmission.com/legalize/>
Pascal Cloup
2009-05-13 12:59:10 UTC
Permalink
Hi,

Thanks for the advice.
I remarked that a tutorial as simple as the tutorial 4 of the sdk gives the
same result of my app.
Someone succeded to make run this tutorial correctly (under vista and aafter
resizing the form)?

thanks for helping,
Pascal
Post by legalize+ (Richard [Microsoft Direct3D MVP])
[Please do not mail me a copy of your followup]
Post by Pascal Cloup
After resizing a Form, most of the objects (mesh, vertexBuffer,...) appear
with dark colors under Vista. This works perfectly under XP.
The DeviceReset event is correctly handled but it seems that the lights are
not reseted correctly.
Some old posts relate this problem but i did not saw a solution.
You have to reset all the state on the device that you were using.
Render states, enabled set of lights, materials, etc.
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
<http://www.xmission.com/~legalize/book/download/index.html>
Legalize Adulthood! <http://blogs.xmission.com/legalize/>
legalize+ (Richard [Microsoft Direct3D MVP])
2009-05-14 10:08:25 UTC
Permalink
[Please do not mail me a copy of your followup]
Post by Pascal Cloup
I remarked that a tutorial as simple as the tutorial 4 of the sdk gives the
same result of my app.
Tutorial 4 in native C++ or your port of tutorial 4 using MDX?

MDX is dead.

Use SlimDX instead.
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
<http://www.xmission.com/~legalize/book/download/index.html>

Legalize Adulthood! <http://blogs.xmission.com/legalize/>
Pascal Cloup
2009-05-14 22:03:22 UTC
Permalink
Hi,

Tutorial4 for C# found on an old sdk.

I know that mdx is dead, but I'm not in a process of writing a new
application, but of porting an application from XP to vista. The problem for
which i submitted this question is the only one it remains to me to solve.
For tis reason, i don't want to change of 3D sdk now, and also because
microsoft does not give a clear answer to the question: what 3D sdk use for
.net non game application (XNA, DX9, DX10, slimDX, openGL,...) ?

Currently, i think that SlimDX is the closest sdk to MDX, but:
1 this is not microsoft supported product,
2 is it an easy task to migrate from MDX to SlimDX.

In fact, i have the same questions as Sasha H.

regards,
Pascal
Post by legalize+ (Richard [Microsoft Direct3D MVP])
[Please do not mail me a copy of your followup]
Post by Pascal Cloup
I remarked that a tutorial as simple as the tutorial 4 of the sdk gives the
same result of my app.
Tutorial 4 in native C++ or your port of tutorial 4 using MDX?
MDX is dead.
Use SlimDX instead.
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
<http://www.xmission.com/~legalize/book/download/index.html>
Legalize Adulthood! <http://blogs.xmission.com/legalize/>
legalize+ (Richard [Microsoft Direct3D MVP])
2009-05-15 04:48:05 UTC
Permalink
[Please do not mail me a copy of your followup]
Post by Pascal Cloup
Tutorial4 for C# found on an old sdk.
...then it sounds to me like its an MDX bug. MDX is dead. They
aren't gonna fix anything in it.

Try Tutorial 4 using SlimDX and see if you have the same problem.
Post by Pascal Cloup
1 this is not microsoft supported product,
My apps aren't supported microsoft products either. So what?
Post by Pascal Cloup
2 is it an easy task to migrate from MDX to SlimDX.
Its the closest thing you're going to find to MDX.
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
<http://www.xmission.com/~legalize/book/download/index.html>

Legalize Adulthood! <http://blogs.xmission.com/legalize/>
Pascal Cloup
2009-05-15 06:01:05 UTC
Permalink
Hi Richard,

thank for this discussion.
I will look in the SlimDX direction.
Regards,
Pascal
Post by legalize+ (Richard [Microsoft Direct3D MVP])
[Please do not mail me a copy of your followup]
Post by Pascal Cloup
Tutorial4 for C# found on an old sdk.
...then it sounds to me like its an MDX bug. MDX is dead. They
aren't gonna fix anything in it.
Try Tutorial 4 using SlimDX and see if you have the same problem.
Post by Pascal Cloup
1 this is not microsoft supported product,
My apps aren't supported microsoft products either. So what?
Post by Pascal Cloup
2 is it an easy task to migrate from MDX to SlimDX.
Its the closest thing you're going to find to MDX.
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
<http://www.xmission.com/~legalize/book/download/index.html>
Legalize Adulthood! <http://blogs.xmission.com/legalize/>
Loading...