[gameprogrammer] Re: World's first (?) 3d engine inside a browser
- From: Kevin Jenkins <gameprogrammer@xxxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Mon, 15 Aug 2005 09:38:44 -0700
I'm not giving out the source since it's going to be a commercial game,
but I'll tell you how I did it. You can create an MFC Active X control
and use the regular drawing routines to output to a window. The problem
is you cannot have any file dependencies, so you have to embed your data
inside the control in a custom pak format. For Firefox, you need the
plugin SDK. Here, you cannot embed anything but you could have
dependencies if you had an installer. I opted to download the pak file
specified by the SRC tag in the html. In both cases I then call a
thread and pass it the necessary startup data, including the window
handle. The thread is actually what runs the game.
The hardest difficulty was doing everything with no DLL dependencies or
local files other than what the user would or should already have.
Triston O'Connor wrote:
Did you use ATL or MFC?
I'd be interested in seeing the source. I've never written a plugin before
so not sure how to call the usual init, update, render, cleanup functions I
have in my engine.
Very nice the way it works in FF too btw.
---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html
- Follow-Ups:
- [gameprogrammer] Re: World's first (?) 3d engine inside a browser
- From: Triston O'Connor
- References:
- [gameprogrammer] Re: World's first (?) 3d engine inside a browser
- From: Triston O'Connor
Other related posts:
- » [gameprogrammer] World's first (?) 3d engine inside a browser
- » [gameprogrammer] Re: World's first (?) 3d engine inside a browser
- » [gameprogrammer] Re: World's first (?) 3d engine inside a browser
- » [gameprogrammer] Re: World's first (?) 3d engine inside a browser
- » [gameprogrammer] Re: World's first (?) 3d engine inside a browser
- » [gameprogrammer] Re: World's first (?) 3d engine inside a browser
- » [gameprogrammer] Re: World's first (?) 3d engine inside a browser
- » [gameprogrammer] Re: World's first (?) 3d engine inside a browser
Did you use ATL or MFC?
I'd be interested in seeing the source. I've never written a plugin before so not sure how to call the usual init, update, render, cleanup functions I have in my engine.
Very nice the way it works in FF too btw.
- [gameprogrammer] Re: World's first (?) 3d engine inside a browser
- From: Triston O'Connor
- [gameprogrammer] Re: World's first (?) 3d engine inside a browser
- From: Triston O'Connor