Game Development Community

DirectX support in T2D

by David Roberts · in Torque Game Builder · 03/06/2005 (4:38 am) · 13 replies

Does T2D currently support DirectX as a graphics renderer instead of OpenGL?

I have an Nvidia Geforce 6800 GT and it is stating in the T2D console that the card does not support D3D acceleration. I get the following error:

Video Init:
Accelerated OpenGL display device detected
Accelerated D3D device not detected


I have checked the defaults.cs file and it is set as:

$pref::Video::displayDevice = "OpenGL";
$pref::Video::allowOpenGL = 1;
$pref::Video::allowD3D = 1;
$pref::Video::preferOpenGL = 1;
$pref::Video::appliedPref = 0;
$pref::Video::disableVerticalSync = 1;

I can choose D3D as a renderer in TGE, but not in T2D at the moment. Its not essential to be able to offer DirectX as an option at the moment, I was just curious to why T2D doesn't think the card supports DirectX.

- Dave

#1
03/06/2005 (5:44 am)
I did have a look at the demo and ran it in DX fine!

However I can't see initially in any of the .cs files where it differs from the code that comes with the source distribution regarding DirectX. I shall have to investigate further!

- Dave
#2
03/06/2005 (9:55 am)
@David: T2D uses the new TGE which you won't have. I'm very interested in understanding this problem because we've actually seen this on another machine.

I'd like to work with you in understanding why it thinks there isn't any D3D support. Again, this is a TGE platform thing and I suspect the new TGE 1.4 will give you the same problems although I cannot confirm that.

I won't go into the details but this is a very high priority for me.

Any help you could provide would be most useful. I just wish I had a machine here that gave me the same problem.

- Melv.
#3
03/06/2005 (10:31 am)
On my pc it won't let me select DirectX as a rendering option either. Low priority just curious about the issue.
#4
03/06/2005 (10:37 am)
Would you mind providing me with your Mobo/Graphics-Card and CPU specs?

- Melv.
#5
03/06/2005 (10:46 am)
Sure Melv, no probs. I'll help as much as I can. My machine specs are as follows:

System manufacturer: ASUSTek Computer INC.

System Model: A7N8X-E

BIOS: Phoenix AwardBIOS v6.00PG

Processor: AMD Athlon XP3200+ 400FSB 512Cache Barton

Hard drive: Western Digital WD2000JD 200GB Serial ATA150 7200rpm 8mb Cache

Memory: Corsair (TWINX1024-3200LLPT) 1024MB (2X512 Matched Pair)

Graphics: NVIDIA GeForce 6800 GT (256MB RAM)

Sound: NVIDIA nForce Audio

DirectX Version DirectX 9.0c


Anything else you want to know, give us a shout.

- Dave
#6
03/06/2005 (11:09 am)
@David: No, that's all, thanks!

I'm keeping a list in the hope that I can get to a system that has this problem. Then I'll be able to trace through and see exactly why it fails to detect.

- Melv.
#7
03/06/2005 (11:36 am)
Okay.. I was having the same issue so I poked around to see the obvious differences between the demo and the source. The demo comes packed with opengl2d3d.dll and glu2d3d.dll. If I add these files to my example directory, D3D works fine.
#8
03/06/2005 (12:05 pm)
Yes, I added the glu2d3d.dll file to the same directory as the T2D executable and I can now select D3D as a graphics renderer. I too busy looking in the .cs files to realise that some .dlls were missing.

ahem, ....d'oh! :-)
#9
03/06/2005 (12:10 pm)
@Derek: OMG!!!!!! I just checked that and those files are missing from the SDK.

Many, many thanks for noticing that Derek!

- Melv.
#10
03/06/2005 (12:46 pm)
Guys... if you compile the T2D project, the opengl2d3d glu2d3d dlls will be compiled for you, as a dependent step. I know lots of you may not be super familiar with C++ projects, so not includings this in these in the example directory itself was an oversight on my part. Sorry. :) We'll make sure they're in the next release.
#11
03/07/2005 (12:39 am)
Mine works as well, thanks!
#12
03/07/2005 (12:47 am)
@Josh

Compiling in debug gives me this error.

T2D fatal error LNK1104: cannot open file 'ljpeg_DEBUG.lib'

Any chance you can shove this into the next release? Or am I missing some compile thing. I have TGE and TSE so if this is included with those just let me know and I'll move it to the correct location for my project.
#13
03/07/2005 (2:29 am)
@Peter: You just need to build all the libs as well as the T2D executable. Just select them in the build configuration.

- Melv.