Game Development Community

Opengl looks terrible...

by Nic Cusworth · in Torque Game Builder · 01/27/2007 (3:42 am) · 5 replies

I normally run TGB in Direct X but whenever I do a build og my game it defualts to opengl for the renderer. When I run the stand alone game I get lots of artifacts and bad blending. Looks like I'm running the game off of highly compressed jpg files.... basically looks awful...

Anyone else have this problem or a solution... is it the drivers on my laptop? If so what's to say that my game will look terrible on other pcs as well!!

Nic.

#1
01/27/2007 (12:11 pm)
The simplest solution is to put code in your game logic to set the video mode to D3D. I would think the best option would be to allow users to select between OGL and D3D at will in your setup dialog. Check the setup code to see how to set video mode and you can force D3D on startup of your game.
#2
01/27/2007 (8:53 pm)
That's strange, it's always been the other way around for me.. OpenGL mode always looks great and DirectX mode tends to have graphical and/or other issues. (This goes for all Torque engine products..).
#3
01/28/2007 (2:20 am)
I couldn't find any commands to allow me to swtich renderer. Anyone know how to do this? You obviously can because the editor lets you swtich.

Cheers,

Nic.
#4
01/28/2007 (4:40 am)
Do you have the pro license? You can see the source for the options dialog in common/gamescripts/options.cs

setDisplayDevice is the function you seek.

#5
01/28/2007 (4:53 am)
I don't have the Pro licence but I have just had a look at the options.cs and there's some interesting stuff in there so I'll have a poke around :)

Cheers,

Nic.