Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (553)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  New Chapter Using the P5 Glove  (Read 1799 times)
0 Members and 1 Guest are viewing this topic.
Offline Andrew Davison

Junior Member


Medals: 2



« Posted 2005-12-26 07:58:30 »

Dear All,

I've just put a new chapter online at the Killer Game Programming in Java website. It's about using the P5 Virtual Reality Glove as an input device. I use it to drive a first-person shooter around a scene and shoot a gun, without touching the keyboard!

It's chapter 28.10 near the bottom of the page at
  http://fivedots.coe.psu.ac.th/~ad/jg/

Comments are appreciated.

- Andrew

Dr. Andrew Davison
Dept. of Computer Engineering
Prince of Songkla University, Hat Yai
Songkhla 90112, Thailand
Offline Jeff

JGO Coder




Got any cats?


« Reply #1 - Posted 2005-12-26 23:42:33 »

Cool!  I have one of these!  Ill have to look to see how you implmented the input....

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline Jeff

JGO Coder




Got any cats?


« Reply #2 - Posted 2005-12-26 23:46:25 »

 The last sentance of your cahpter is, at bear minimum, very incomplete.

Any input device *can* be made available through JINput.  All you need to do for a non-standard one is to write a plug-in for it.  This is the root of why  JInput supports an arbitrary number of plug-ins that are3 discoverd at run-time.  You already have just about all the code you need to write the plug-in pre-existing in the Kenner API.

If I ever get the time (not likely) I might take a crack at it.

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Andrew Davison

Junior Member


Medals: 2



« Reply #3 - Posted 2005-12-28 01:40:25 »

The last sentence is:
"Unfortunately, the P5 glove's novel input features (e.g. its (x,y,z) position, pitch, yaw, roll, finger bends, LEDs, and buttons) are not available to JInput."

I can see your point, but I meant that, with the current JInput installation, the P5 glove cannot be fully 'seen'.

The steps required to write a plug-in would make for an interesting article. Is that information available anywhere? I might try to do it myself if I knew where to start.

- Andrew

Dr. Andrew Davison
Dept. of Computer Engineering
Prince of Songkla University, Hat Yai
Songkhla 90112, Thailand
Offline Andrew Davison

Junior Member


Medals: 2



« Reply #4 - Posted 2005-12-28 02:22:36 »

Jeff,

I've modified the last part of the JInput section in the chapter to include your comments.

- Andrew

Dr. Andrew Davison
Dept. of Computer Engineering
Prince of Songkla University, Hat Yai
Songkhla 90112, Thailand
Offline Jeff

JGO Coder




Got any cats?


« Reply #5 - Posted 2005-12-28 06:10:34 »

The last sentence is:
"Unfortunately, the P5 glove's novel input features (e.g. its (x,y,z) position, pitch, yaw, roll, finger bends, LEDs, and buttons) are not available to JInput."

I can see your point, but I meant that, with the current JInput installation, the P5 glove cannot be fully 'seen'.

Well properly, its that "the current default Win32 plug in only shows what DirectInput sees.  The current default L:inux plug-in shows whats discoverable over USB.  The Current default OSX plug-in shows what is doiscoverable by the HID manager."

Quote
The steps required to write a plug-in would make for an interesting article. Is that information available anywhere? I might try to do it myself if I knew where to start.

Um... beyond the Java Docs and the source to the three existing plug-ins, no I dont think there is much other documentation currently, sorry.  Endolf did the Linux plugin and SWP the Mac plug-in by using the Win32 plug-in as an example...

- Andrew
Quote

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline Bombadil

Senior Member





« Reply #6 - Posted 2005-12-28 08:53:16 »

A lot of work went into that nice book.
Thanks a lot, Andrew.
I'm going to read more chapters whenever I find time.
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #7 - Posted 2005-12-28 19:26:00 »

Endolf did the Linux plugin and SWP the Mac plug-in by using the Win32 plug-in as an example...

Gregory Pierce (a former regular here that hasn't been around in a long time) did the initial OS X plugin.  I tinkered with it a bit and helped in a small way with some testing, but I never checked in any code.  Greg's work was picked up by Endolf or Elias, I'm not sure which.

I'm still trying to follow the project, but "real life" keeps getting in the way.

Offline Jeff

JGO Coder




Got any cats?


« Reply #8 - Posted 2005-12-28 22:23:18 »

Endolf did the Linux plugin and SWP the Mac plug-in by using the Win32 plug-in as an example...

Gregory Pierce (a former regular here that hasn't been around in a long time) did the initial OS X plugin. 

That right, my memory glitched.

GP and SWP are both old trimers here Cool

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #9 - Posted 2005-12-29 00:26:19 »

I remember back in the day when we had to trim with only one's and zero's.  That was some hard trimming I tell you.  No clipping shapes or anything like that.. if you wanted a clean edge you had to do all the trimming manually.

 Grin

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline darkprophet

Senior Member




Go Go Gadget Arms


« Reply #10 - Posted 2005-12-29 02:31:15 »

you could just use a pair of scissors  Roll Eyes

Friends don't let friends make MMORPGs.

Blog | Volatile-Engine
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

TehJavaDev (15 views)
2014-08-28 18:26:30

CopyableCougar4 (25 views)
2014-08-22 19:31:30

atombrot (38 views)
2014-08-19 09:29:53

Tekkerue (33 views)
2014-08-16 06:45:27

Tekkerue (32 views)
2014-08-16 06:22:17

Tekkerue (20 views)
2014-08-16 06:20:21

Tekkerue (29 views)
2014-08-16 06:12:11

Rayexar (66 views)
2014-08-11 02:49:23

BurntPizza (42 views)
2014-08-09 21:09:32

BurntPizza (34 views)
2014-08-08 02:01:56
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!