OpenGL or DirectDraw support in Windows environment

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
Samu
Traffic Manager
Traffic Manager
Posts: 236
Joined: 17 Apr 2007 14:28

OpenGL or DirectDraw support in Windows environment

Post by Samu »

Hi. I'd like to Fraps the game, but Fraps doesn't support GDI as far as I know, at least my version of Fraps doesn't. I tried DOSBox to run older versions of TTD and TTO and I can screencast them. I've been tempted to screencast the old tutorials and upload them to Youtube (or here if it's allowed).

Anyway, my question was if it's possible to run OpenTTD in OpenGL mode or DirectDraw mode, both work with Fraps. Thanks.
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: OpenGL or DirectDraw support in Windows environment

Post by planetmaker »

Cute. You want a whole new graphics front end only in order that you can shoot a video of the game?

I guess it's WAY easier for all involved, if you go looking for means to make a video of OpenTTD as it is. And obviously that's nicely possible as the many videos on YouTube show.
Samu
Traffic Manager
Traffic Manager
Posts: 236
Joined: 17 Apr 2007 14:28

Re: OpenGL or DirectDraw support in Windows environment

Post by Samu »

How's it done?
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: OpenGL or DirectDraw support in Windows environment

Post by Rubidium »

You could (ofcourse) build a DOS version of OpenTTD and run that in DosBox.
User avatar
orudge
Administrator
Administrator
Posts: 25139
Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:

Re: OpenGL or DirectDraw support in Windows environment

Post by orudge »

Or build a version that uses Allegro and tell Allegro to use the DirectDraw graphics driver. SDL probably uses DirectDraw too, I think.
User avatar
CommanderZ
Tycoon
Tycoon
Posts: 1872
Joined: 07 Apr 2008 18:29
Location: Czech Republic
Contact:

Re: OpenGL or DirectDraw support in Windows environment

Post by CommanderZ »

Somebody made an OpenGL patch some time back. Search, I'm sure you will find it.
Dezmond_snz
Engineer
Engineer
Posts: 58
Joined: 19 Apr 2009 11:50

Re: OpenGL or DirectDraw support in Windows environment

Post by Dezmond_snz »

Samu wrote:Hi. I'd like to Fraps the game, but Fraps doesn't support GDI as far as I know, at least my version of Fraps doesn't. I tried DOSBox to run older versions of TTD and TTO and I can screencast them. I've been tempted to screencast the old tutorials and upload them to Youtube (or here if it's allowed).

Anyway, my question was if it's possible to run OpenTTD in OpenGL mode or DirectDraw mode, both work with Fraps. Thanks.
You can try HyperCam instead of Fraps. :)
Russia
User avatar
Killer 11
Tycoon
Tycoon
Posts: 2463
Joined: 06 Jan 2004 18:38
Location: Kaunas, Lithuania
Contact:

Re: OpenGL or DirectDraw support in Windows environment

Post by Killer 11 »

Actually just use CamStudio small, free and works good
Samu
Traffic Manager
Traffic Manager
Posts: 236
Joined: 17 Apr 2007 14:28

Re: OpenGL or DirectDraw support in Windows environment

Post by Samu »

Just tried CamStudio and HyperCam 2. CamStudio is blind, I select the window but it doesn't select it correctly and doesn't record sound. HyperCam 2 slows down my computer to the point it locks it, I can only reboot. The solution is to record at lower frames, but that sucks. I want at least 37.5 fps 640x480x8 :/
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: OpenGL or DirectDraw support in Windows environment

Post by Rubidium »

Just "teach" OpenTTD to make a screenshot for each tick and stitch them together. That's probably the best solution with the least amount of trouble. It will even remove timing trouble. You should then aim for 33.33 frames a second (a tick takes 30 ms, so there are 1000/30 ticks in a second).
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 4 guests