Share to EffectHub.com

You can earn money or coins from your share:)

Tips: you can use Sparticle for uploading away3D effects.

Tips: you can download Sparticle for uploading effects.

Tips: The ActionScript editor is supporting Away3D, Starling, Dragonbones and Flex frameworks.

Tips: paste the web page URL then click button:)

DirectX vs OpenGL on Windows



Hello,

I'm porting one of my games to Windows. When I compile and run it on a Windows7 machine, it runs just fine; however, if I run it on a Windows8 machine, the entire window is black (happens in windowed and fullscreen). I tried running the same executable (compiled on Windows7) on my Windows8 machine, same result, black screen.

I am using DirectX9.

I can debug and step through, and see that the game is actually running on my Windows8 machine.

Anyone experienced this kind of thing before? Any suggestions as to a solution or plan of attack to resolve the issue?

---

Also, in more general terms, what should I be using for rendering on Windows? DirectX or OpenGL? If DirectX, then which version of DirectX?

If I plan on doing Windows phone; would that require DirectX11?

As you may imagine from the fact that I'm using DirectX9, I haven't done anything on Windows for some time; so any advice or info you can offer, would be a great help.

Tags

753 views    1 answers


0


Hey, did you make any progress on this yet?

It's a bit odd that it would work on Windows 7 but not Windows 8.

Thoughts:

Install the DirectX SDK on the Windows machine and switch to Debug in the DirectX control panel - check for error/warning messages in the debugger output

Check the return value from all DirectX API calls (create a "verify" macro to wrap all calls in, see #define V in DXUT.h)

Make sure the video card in the Windows 8 machine actually supports the features you're using - many of the vertex formats are not widely supported



Regarding OpenGL vs DirectX... it seems to come down to personal preference. OpenGL might be preferable if you're targeting another platform that uses it.

For DirectX 9 vs 10/11 - unless you really want to support something DX9 can't do, I'd stick with it. As far as I know, there are a lot of Windows XP machines out there still that can't run DX10 or DX11.


A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: helpers/time_helper.php

Line Number: 22

2014-09-05     0 Comments

Chenguang Liu

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: helpers/time_helper.php

Line Number: 22

2014-09-05

Public Question, everyone could view answers and download attachments.

Finish this task then you can earn 0

>>Back to Task List


Want to work on this task?

Post My Answer


Sponsor


You may interest with



Share

Join Effecthub.com


Or Login with Your Email Address:

Or Sign Up with Your Email Address:
This field must contain a valid email
Password should be at least 1 character

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: views/footer.php

Line Number: 6

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: controllers/task.php

Line Number: 19

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: controllers/task.php

Line Number: 84