Game Development Community

DirectX instead of OpenGL (NOOB here)

by Michael · in Technical Issues · 02/02/2005 (11:37 am) · 13 replies

I just picked up the 3D Programming All in One book and loaded up the Torque.
I can't seem to run it cause my card doesn't support OpenGL.
(I'm getting a new card latter this week)
In the meantime, can Torque be made to run with DirectX for what came with the book?
And how does one start to learn about implementing DirectX for a distributable game?

Thanks

About the author


#1
02/02/2005 (11:44 am)
TGE does support DirectX, but indirectly. You should be able to choose D3D at the options screen. If you can't even reach that screen, or its not available in whichever chapter version you're running (I don't have the book), then find the client prefs file. Its in /client/prefs.cs in stock TGE, dunno what file in the books version. Find and change the following lines:
$pref::Video::preferOpenGL = "0";
$pref::Video::allowD3D = "1";
$pref::Video::allowOpenGL = "0";
That should allow you to fire right up straight into D3D mode.

Rather than spending time learning Directx or OpenGL, buy TSE and learn GFX. We need a few more pros around here :)
#2
02/02/2005 (12:16 pm)
Thanks fo rthe quick response!

I will certainly look into the TSE.
I'm not creating a game, so much as an "interactive art" project. Once I'm done with it, I want to be able to distribute it on a disc so almost any windows machine can run it.
I will be picking up the full TGE soon and I suppose the TSE.

Thanks again.
#3
02/02/2005 (12:38 pm)
It didn't seem to work. When I try and run it from the command line I get:

--------- Initializing FPS: Client ---------
Loading compiled script common/client/message.cs.
Loading compiled script common/client/mission.cs.
Loading compiled script common/client/missionDownload.cs.
Loading compiled script common/client/actionMap.cs.
Loading compiled script common/editor/editor.cs.
Video Init:
Accelerated OpenGL display device not detected.
Accelerated D3D device not detected.
Voodoo 2 display device not detected.

"OpenGL" display device not found!
"OpenGL" display device not found!
"D3D" display device not found!
"Voodoo2" display device not found!
Loading compiled script common/ui/defaultProfiles.cs.

--------------------------------------------------------------------------------------------

I noticed that there were quotation makrs around some numbers and not others. Is there something with that?

Thanks.
#4
02/02/2005 (12:42 pm)
Hmm, you don't seem to have a D3D card either, at least not an accelerated one. You may have to wait until you can pick up a new one.
The quotation marks have something to do with tagged strings. They shouldn't really matter in this case.
#5
02/02/2005 (1:00 pm)
Running dxdiag, it says that DirectDraw, Direct3D, and AGP Texture Accelerations are all enabled.
The card is a RageFuryPro/Xpert2000Pro. Not the greatest, I know.
Under the DirectX files page, I have a couple of warnings:
____________________________________________
Several files (d3dx8d.dll, directx.cpl) are old versions, which could cause problems.
The file d3dx8d.dll is a debug version, which will run slower than the retail version.
____________________________________________

problem there, perhaps?

Also, does this mean that if anyone wants to run something I make with Torque, they need these same system requirements?
#6
02/02/2005 (1:08 pm)
Running dxdiag, it says that DirectDraw, Direct3D, and AGP Texture Accelerations are all enabled.
The card is a RageFuryPro/Xpert2000Pro. Not the greatest, I know.
Under the DirectX files page, I have a couple of warnings:
____________________________________________
Several files (d3dx8d.dll, directx.cpl) are old versions, which could cause problems.
The file d3dx8d.dll is a debug version, which will run slower than the retail version.
____________________________________________

problem there, perhaps?

Also, does this mean that if anyone wants to run something I make with Torque, they need these same system requirements?
#7
02/02/2005 (1:36 pm)
First off, I would update your Directx drivers. Then, just for kicks, download the TGE demo from here. The copy in the book is based on an older version. There shouldn't be that much difference in the engine itself, but the game scripts are very much different.
#8
02/03/2005 (9:53 am)
Quote:
Running dxdiag, it says that DirectDraw, Direct3D, and AGP Texture Accelerations are all enabled.
"Enabled" doesn't necessarily mean they're working. Did you run the Direct3D test in DxDiag?
#9
02/03/2005 (3:06 pm)
Its all Ok, now. I updated the drivers. Apparently the ones that XP loaded in by default didn't do much.
I guess I can hold off on a new card for now and put that money somewhere where its (arguably) more needed...like food.

Odd thing though...
when I just let it roll with openGL, some of the textures look "choppy," whereas if I ask the prefs.cs to use D3D, it all looks smoother.
I'm seeing this while running one of the demos off of the 3D Game Prog. AllInOne.

Is this odd?
#10
02/04/2005 (11:38 am)
That card doesn't have the best OpenGL drivers IIRC. Overall the engine has no issues with OpenGL so I wouldn't be too concerned.
#11
02/13/2005 (12:59 pm)
My problem is exactly like Michael's when I start it up it stops on

--------- Initializing FPS: Client ---------
Video Init:
Accelerated OpenGL display device not detected.
Accelerated D3D device not detected.
Voodoo 2 display device not detected.

"OpenGL" display device not found!
"OpenGL" display device not found!
"D3D" display device not found!
"Voodoo2" display device not found!
Loading compiled script common/ui/defaultProfiles.cs.

Then it says tge has encountered an error and needs to close

I have a NVIDIA GeForce 4 Ti 4200 with AGP8X

I installed the newest drivers and the newest directx (directx 9.0c). I also downloaded the demo from the site to see if it was any better but no it does nothing.

I'm pretty new to this just picked up the book the day before yesterday any help be appreciated

:edit: Problem resolved itself I redownloaded the newest drivers (again) must have been some error in download....so thanks anyways ;-)
#12
07/11/2005 (11:46 am)
I also have that issue with the exact same errors and the crash. And come to think of it, I did a fresh XP install recently (thus probably the crap MS drivers). I guess I'll update drivers and see what happens.
#13
05/24/2006 (9:44 am)
I've had the same problems, but from what I have read here, I am going to try a few things when I get home to see if I can get it to start working.