Log in

View Full Version : Porting a PC DirectX based game to a web game


svero
02-23-2003, 12:44 AM
Does anyone know if there are any tools, or development kits that simplify porting a DirectX based game to a web friendly format?

JC3D
02-23-2003, 02:11 PM
I've never used the SDK, but possibly look at WildTangent (http://www.wildtangent.com)

svero
02-23-2003, 04:54 PM
Hmmm... that's kind of interesting, and I'll have to read more, but I was looking for something I could use to make a small app that runs in a web page. Am I wrong in saying that this is to make streaming games for high bandwidth? That's the impression I got looking at their site.

JC3D
02-23-2003, 05:38 PM
Sorry Steve, WildTangent popped into my head because it was started by the guy that supposedly 'invented' DirectX at MS. Now that I look at it more it looks like the actual coding is done in web languages like JavaScript. That obviously won't help you port an existing app.
How about using ATL to wrap your code into an ActiveX control. Here's a starting point (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcsample/html/_sample_atl_direct3d.asp) .
There's also some cool stuff you can do with .NET, but I'm sure you don't want to require the Framework to be installed on a user's machine.... :p

Good luck!

Pyabo
02-24-2003, 03:26 AM
I think this is sort of a pie-in-the-sky idea... I've certainly never heard of any tools like this.

The WildTangent Web Driver is just a wrapper around Direct3D with some high-level engine abstraction. It's essentially just an ActiveX component... exactly what JC3D is suggesting.

Alex St. John's role in DirectX was more of an evangelical one. He certainly didn't "invent" it. A lot more details can be had in the book Renegades of the Empire, which pretty much covers this topic exactly. Alex used to hand this book out like candy, but I never got around to reading it.

svero
02-24-2003, 03:48 AM
Well there are an awful lot of companies who co-release web and PC versions of their games. If you look on realarcade and click web games for instance you'll notice that a whole lot of the downloadable games also have web versions. While they may put in the effort to specifically code up web version in active x or java or shockwave or whatever, I thought maybe that there was a simple way to approach this without having to completely reinvent the wheel given that you already have something written that uses directx.

alchemist
02-24-2003, 06:35 AM
I haven't been able to find a simple way to cross between DirectX and web-capable software.

If you're writing for browser-usable games, you're pretty much limited to either Flash 4 (though many who would play such games won't have it, and won't want to download it) or Java 1.1. The latter is by far the more common solution, and there's no way to wrap this around a DX program.

In other words: you can't get there from here. :-/