Game Development Community

Failed to initialize DirectX . . .

by Daniel Miller · in Torque Game Engine Advanced · 11/09/2006 (10:56 am) · 3 replies

I just got the TSE and built it fine with VS2005, but when I run an example I get 'Failed to initialize DirectX 9'.
It also says something about Pixel Shader 1.1, which I'm sure my card supports.
I have the DirectX SDK for October 2006 and everything builds in order. I also have run FxComposer on my computer and had no signifigant problems; why isn't this working?
My other computer has had no problems, but my tablet is getting the error.
It's got an Intel 915 GM mobile gpu with the ability to run vertex and pixel shaders up to 2.0 and I've got a gig of ram. I downloaded the newest drivers just in case . . .

Here's the log . . .


//-------------------------- 11/9/2006 -- 12:54:27 -----
Processor Init:
Intel (unknown, Pentium Pro/II/III family), ~1.85 Ghz
(timed at roughly 1.86 Ghz)
FPU detected
MMX detected
SSE detected

Math Init:
Installing Standard C extensions
Installing Assembly extensions
Installing FPU extensions
Installing MMX extensions
Installing SSE extensions

Initializing platform...
Input Init:
keyboard0 input device created.
mouse0 input device created.
DirectInput enabled.

Creating GFXDevice...
Done
Initializing chunk mappings...
o 'TEXT' maps to TextChunk
o 'SCHK' maps to UnknownChunk
o 'SCHK' maps to SimChunk
--------- Loading MODS ---------
Executing terrain_water_demo/main.cs.
Executing common/main.cs.
Missing file: common/defaults.cs!
Executing common/client/unicodeStrings.cs.
Executing terrain_water_demo/client/defaults.cs.
Executing terrain_water_demo/server/defaults.cs.
Executing terrain_water_demo/client/prefs.cs.
Executing terrain_water_demo/server/prefs.cs.
Executing creator/main.cs.
Executing common/main.cs.
Missing file: common/defaults.cs!
Executing common/client/unicodeStrings.cs.

--------- Parsing Arguments ---------

--------- Initializing MOD: Common ---------
Executing common/client/canvas.cs.
Executing common/client/audio.cs.

--------- Initializing MOD: FPS ---------
Executing terrain_water_demo/client/init.cs.
Executing terrain_water_demo/server/init.cs.

--------- Initializing FPS: Server ---------
Executing common/server/audio.cs.
Executing common/server/server.cs.
Executing common/server/message.cs.
Executing common/server/commands.cs.
Executing common/server/missionInfo.cs.
Executing common/server/missionLoad.cs.
Executing common/server/missionDownload.cs.
Executing common/server/clientConnection.cs.
Executing common/server/kickban.cs.
Executing common/server/game.cs.
Executing terrain_water_demo/server/scripts/commands.cs.
Executing terrain_water_demo/server/scripts/centerPrint.cs.
Executing terrain_water_demo/server/scripts/game.cs.

--------- Initializing FPS: Client ---------
Executing terrain_water_demo/client/ui/customProfiles.cs.
Executing common/client/message.cs.
Executing common/client/mission.cs.
Executing common/client/missionDownload.cs.
Executing common/client/actionMap.cs.
common/client/canvas.cs (12): Unable to find function videoSetGammaCorrection
Video Init:
DirectX version - 9.0p
Direct 3D device found


ARGH! I need to be able to do editing on my tablet. HELP!

About the author

Recent Threads

  • Ivisible Interiors

  • #1
    11/09/2006 (5:55 pm)
    Hmm, it could be some checks in TSE are going a little haywire with that Intel GPU. You should trace into the code and see where it's failing. Kind of hard to tell what's going on from what you posted.
    #2
    11/09/2006 (7:41 pm)
    No, I agree; it's painfully vague.
    I guess I was just hoping it had been previously remedied and never posted.
    Er, perhaps I'm just being lazy. (*smiles*)

    I found another thread:

    (http://www.garagegames.com/mg/forums/result.thread.php?qt=19851)

    This echoes the same problem on an ATI Radeon 9200 on the TSE demo itself.
    Unfortunately, no solution was ever given and it seems to be the problem here as well.
    Evidently, there's no prejudice for chipsets with this error, so it might be a limitation in the hardware.
    The code runs effortlessly, but no go on the demo or any .exe to speak of.

    Again, my main unit runs it fine so I'm not 'landlocked', so to speak.
    It runs brilliantly; good job guys.

    I need to solve this as I have to have a 'second opinion' unit.

    "You should trace into the code and see where it's failing."
    Ooooooof. You just took out a few brain cells on that one, guy.
    Let's not get crazy here.
    I have tons of homework to do, I just want to play with some lighting & shadows.
    #3
    11/10/2006 (5:36 pm)
    I had the same problem after the first compiling (debug) when I added the missing file to the project.

    (http://www.garagegames.com/mg/forums/result.thread.php?qt=53632).

    It went away after building up a release version.

    I am not an expert, so I can't explain what was wrong.