PDA

View Full Version : Diamond Native Direct3D Development


tsioubliou
19th November 2008, 07:03 PM
hello,

I am the owner of an HTC Touch Diamond device (UK) with original
-ROM version: 1.37.405.1 WWE,
-Radio version: 1.00.25.03,
-Protocol version 52.26a.25.09U

I have been trying to compile the native C++ Direct3D samples from WM5 and WM6 SDKs, but I am finding problems. Specifically, I am trying to check the accelerated HW drivers, by running these samples. If I have understood correctly, D3DM runs over OpenGL ES, in such devices. The managed wrapper example provided in http://www.koushikdutta.com/search/label/Managed%20OpenGL%20ES, works perfectly, which means that 3D is supported by my device and ROM versions.

Initially, the problem was with the CreateDevice() D3DM function, but with the help of 'omikr0n' found in http://forum.xda-developers.com/showthread.php?t=359534&page=201, this function returns now successfully. I have to note that the lights.exe sample, by 'omikr0n', runs flawlessly.

After making those changes in every sample application, the result that I get is a transparent screen and after that the application freezes. In more detail, in the first sample, where a colored screen has to appear, I get nothing, even though the application is running. I run it in Debugging mode, but I cannot pinpoint where the problem comes from, as all functions are executed successfully.

Can you please help me resolve this issue, by informing me if there is a problem with my code or the ROM versions of my device. If it is the code, can you explain what has to change? Also, do the new official ROMs by HTC include better drivers? I would be glad, If I could avoid upgrading ROM, but if this is the case, I will have to do it.

Many thanks to all 3D enthusiasts.

Davey101
19th November 2008, 08:42 PM
Have you seen this thread?
http://forum.xda-developers.com/showthread.php?t=415873

Maybe better to ask there.

tsioubliou
19th November 2008, 09:10 PM
hello,
In the thread that you mentioned, the author uses OpenGL ES instead of Direct3D Mobile and Managed (C#) instead of Native (C++) code. Although it is a breakthrough, these are not the requirements of my project.

I am looking for the specific programming parameters. which D3DM structures need in order to produce a visual result on the screen. After making the WM5/6 samples work, I can continue with more specific developmental issues.

Thanks

Rudegar
19th November 2008, 09:56 PM
if it's under Managed Direct3D then ms stoped that platform to only focus on XDN
everybody who were using it on pc all moved to the new ms horse or do pure opengl from .net

tsioubliou
19th November 2008, 10:37 PM
hello Rudegar,
The samples are writen in C++, but the problem is in execution time because they do not produce the expected result and freeze. I believe that there have been several implementations (eg. lights.exe from omikr0n), which use specific parameters that allow to run successfully. I am trying to find, which are those parameters.

What is XDN that you mentioned?

omikr0n
20th November 2008, 01:57 AM
I'm sorry, but I probably won't be too much of a help here. Lights.exe application is written in .NET (managed code) in D3DM. AFAIK D3DM is quite different for managed and unmanaged applications.

Rudegar
20th November 2008, 08:48 AM
sorry ment xna
http://en.wikipedia.org/wiki/Microsoft_XNA