Camera control experiment for 3D Flash/molehill and WebGL

I'm currently adding a new method to CopperCube for controlling the first person shooter camera when using 3D Flash (molehill) or WebGL. The problem with first person shooter controls in embedded applications in websites is that you don't have control over the mouse cursor position as programmer. But modifying the mouse position is essential for this type of control. So a workaround is to do something like this: (Note, this is not molehill but the software renderer of course, since it is not yet public):

Controls: cursor keys to move, mouse to Look.

It is not perfect of course, but this is as close as you can get without that feature. So please, dear Adobe Molehill and HTML5/WebGL developers: We need something to control the cursor position. Otherwise you won't see any first person shooter games with nice control at all.

eight comments, already:

cursor control would be great. +1
oleg - 30 12 10 - 10:16

First I thought it would be a little awkward, but actually it works quite well. Of course it’s not quite as efficient as the “real” FPS-control, but for a web application it’s really cool!
Telepath - 30 12 10 - 12:11

Truly indispensible.. Great work.
KK - 30 12 10 - 12:56

Modifying cursor position should not be necessary, that’s a bodge. If you’re designing the framework form the start, just design in the possibility to get raw relative device motion update events, and make sure they don’t stop when a cursor hits an “edge” of the screen or something, because that’s retarded – there’s no reason for coupling the two.
Florp () - 30 12 10 - 17:35

the main problem is if you click outside during shooting. :)

but offering mouse cursor functionality (and going fullscreen and such stuff) for molehill/webgl is problematic too since it could be abused by websites with malicious scripts. this would have to be well thought out.
horace () - 31 12 10 - 13:44

just dont use the mousebuttons for shooting then
Matthias - 11 01 11 - 14:24

My fingers are crossed for mouse-center functionality but due to browser security issues I have my doubts. I noticed in one of Adobe’s demos they were using a ‘steering wheel’ for a driving game so maybe they will have support for gamepads & joysticks?
beer3d - 13 01 11 - 21:32

Useful blog website, keep me personally through searching it, I am seriously interested to find out another recommendation of it.
emt training () (link) - 20 01 11 - 17:04

Remember personal info?
Email (optional):
URL (optional):
Enter "layered" (antispam):
Comment:Emoticons / Textile

  ( Register your username / Log in )

Notify: Yes, send me email when someone replies.  

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.
Note: If you type in your email adress above, it will be visible to other visitors, although it will be hidden for bots using javaScript.