Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (howardR), 503 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: Headtracking [Re: lostclimate] #205814
05/08/08 22:59
05/08/08 22:59
Joined: Feb 2008
Posts: 87
O
OblivionDrake Offline
Junior Member
OblivionDrake  Offline
Junior Member
O

Joined: Feb 2008
Posts: 87
this would be (in my mind) used if you were to make avertual reality game were the player were a sort of helmet or somthing of that nature which contained a screen so the players eyes never leaves the screen and a wirless keyboard/controler would be recomended if the player desides to do a 360 and look behind himself.

and now that i added my two cents just have to say i am really impressed you showed me something that i did not even know gamestudio was capible of congrats

Re: Headtracking [Re: Slin] #206951
05/16/08 18:33
05/16/08 18:33
Joined: May 2008
Posts: 150
Switzerland
Hitsch Offline
Member
Hitsch  Offline
Member

Joined: May 2008
Posts: 150
Switzerland
Hi everybody,

I've first heard of this technic when Jonny Lee's demonstration of the inverted Wii-Remote was shown on several websites. I was truly blown away by the very natural effect this simple modification can produce. You can actually look at the screen as if you where looking out of a window. Or if you were to pass a screen like this you wouldn't be able to say if it where a screen or if there where dept to it. This combined with a pair of 3D Glasses... how cool would that be!
The guys in this video have actually gone a step further by tracking the players face and massuring the distance between the eyes. It seems to work perfectly and is much more userfriendly.
Head Tracking with ONLY a Webcam (Youtube)

I don't really see how this could be used for moving the player in a game but rather to give the (physicle) player some freedom to move around in front of the screen and get a response by the camera (change of angle). I think it could add to the overall feel of the game.

Well, my webcam is broken at the moment but as soon as I get it working agein and my (very) old 3D Relevator Glasses I will try this out and report back.


So long...
Greetz from Zürich
Hitsch


Last edited by Hitsch; 05/16/08 18:37.
Re: Headtracking [Re: Hitsch] #206980
05/16/08 20:20
05/16/08 20:20
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline OP
Expert
Slin  Offline OP
Expert

Joined: May 2005
Posts: 2,713
Lübeck
I already saw that "Face API", but I won´t be able to create something like that on my own, and they haven´t released it to the public yet.
Quote:
This combined with a pair of 3D Glasses...

I had this idea too and will definatly give it a try smile But with red/cyan glasses and not with shutterglasses.

Quote:

this would be (in my mind) used if you were to make avertual reality game were the player were a sort of helmet or somthing of that nature which contained a screen so the players eyes never leaves the screen and a wirless keyboard/controler would be recomended if the player desides to do a 360 and look behind himself.

I would integrate a compass into that hardware instead of using a webcam :P

Re: Headtracking [Re: lostclimate] #245210
01/08/09 21:06
01/08/09 21:06
Joined: Nov 2007
Posts: 14
D
druid Offline
Newbie
druid  Offline
Newbie
D

Joined: Nov 2007
Posts: 14
great work slin~~~ but there is something i didn't understand:
1 how do u get the image from web-cam ?does it through the dll u made ?

2 i have seen the video of wii head-tracking and face API,and i have tried to do that in 3dgs,but i can't get the exact result(mine is not that reality,i use camera in 3dgs).after a lot of work i found that they seems not useing the "camera" like things in 3dgs,but useing some projection matrix to get image?

that makes me confused,can u or anyone give me some advice about how can i do that with lite-c?

3i didn't understand how can u recognize the brighter field?useing texture samples of shader?how to get the center point of the field?
thanks very much,and to ur great work

Last edited by druid; 01/08/09 21:10.
Re: Headtracking [Re: druid] #245217
01/08/09 21:47
01/08/09 21:47
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline OP
Expert
Slin  Offline OP
Expert

Joined: May 2005
Posts: 2,713
Lübeck
1) Yes, I have written a dll which helps me to get the image of my webcam into the engine.

2) If I got your question right, you will have to manipulate the projection matrix, yes.

3) I am just using some simple flood filling on the cpu as I have the image as an array of rgb values.

I hope that helps you a little.

Re: Headtracking [Re: Slin] #245220
01/08/09 22:13
01/08/09 22:13
Joined: Nov 2007
Posts: 14
D
druid Offline
Newbie
druid  Offline
Newbie
D

Joined: Nov 2007
Posts: 14
well ,thank u very much.but i m still confused what should i do with the projection matrix in 3dgs to figur that out? the only way to change the image i know is by vertex shader......or there is some other ways to do that ? plz lead me a liite more or give me some links ?i have no idea what to search...

btw: if ur dll works u could do multi-touch with 3dgs,that will be wonderful.u can also take a look at nui.org(i not sure).there is something about how to get a better result(with some image filter)

Re: Headtracking [Re: druid] #245224
01/08/09 23:10
01/08/09 23:10
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline OP
Expert
Slin  Offline OP
Expert

Joined: May 2005
Posts: 2,713
Lübeck
Yes I could do multi touch especially if I would surround my camera with infrared LOD would replace its infrared filter with a filter for the visible light and put the whole thing behind my monitor wink

This may helps you a little:
http://msdn.microsoft.com/en-us/library/bb205353(VS.85).aspx
http://www.cs.nps.navy.mil/people/faculty/capps/iap/class2/viewing/projection.html
You will have to build an off-center projection matrix depending on the viewers position. You may also have to move the view a little for good results, but I don't really know. It isn't very easy, at least not for me and I think that you won't find too much help.
I haven't tried that yet and yes that matrix is used in a vertexshader but I would recommend you to just manipulate the engine matrices in a material or render event.

Re: Headtracking [Re: Slin] #245268
01/09/09 06:13
01/09/09 06:13
Joined: Nov 2007
Posts: 14
D
druid Offline
Newbie
druid  Offline
Newbie
D

Joined: Nov 2007
Posts: 14
thank u slin!i think that may be the point i missed.i will try to figur it out.
but it seems difficult for me,because even u r not sure on working it out.however i will try.
thank u ~~~~

Re: Headtracking [Re: druid] #245292
01/09/09 08:59
01/09/09 08:59
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
I have tried headtracking via Wiimote.

The proejction I changed using a shader, that worked fine.
Still I didn't get the real 3d feeling. I think Johnny also had some special code for the "targets" in his demo.
When I have more time again maybe I'll dig up this project again.

Re: Headtracking [Re: lostclimate] #245301
01/09/09 10:28
01/09/09 10:28
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Looks good. Nice work Slin! smile

Page 2 of 3 1 2 3

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1