• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › General Discussion v
« Previous 1 ... 270 271 272 273 274 ... 368 Next »

Wiimote depth movements (towards screen/towards user) testing
View New Posts | View Today's Posts

Pages (2): 1 2 Next »
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Wiimote depth movements (towards screen/towards user) testing
06-07-2010, 11:54 AM (This post was last modified: 06-07-2010, 02:09 PM by krazedout.)
#1
krazedout Offline
Junior Member
**
Posts: 13
Threads: 2
Joined: May 2010
Hi everyone,

(Too long? Scroll down for tl;dr)

I've been looking at recorded movements for moving the wiimote towards / away from the user recently (Depth movements) and I believe that I've tracked down some data which makes it easier to implement depth movements in the emulated wiimote plugin. Before I continue, I'd just like to state that I've only tested my findings on Trauma Team, which is the only game I have that requires wiimote depth movements.

In Trauma Team's case, it appears that the game only makes use of the IR camera to track depth movements; accelerometer readings are not needed at all. (This is assuming that my understanding of wiimotemovement.ini is right - I'm assuming that the readings in the 'Movement =' line are accelerometer readings. When I replaced them with '+000+000+000', the recorded depth movements still work.)

After analysis of the X1, Y1, X2, Y2 data from the IR camera readings in the recorded movement, this is what I found:

1. Depth movements are detected using the X1 and X2 coordinates only. As long as |X2-X1| increases as time increases, the game registers a forward wiimote movement. (I.e. towards the screen) Linear regression suggests that X2 is related to X1 by the formula:
Quote:X2 = 0.09t + X1 + c
where c = the initial distance between X1 and X2 and t = amount of time that has passed since the recording started. This assumes that X2 > X1.

2. The Y1 and Y2 readings do not matter at all. I've tried freezing both Y1 and Y2 at an arbitrary value of 380 throughout the recording and the game still registers a forward wiimote movement.

3. Backwards movement (I.e. towards the user) can be accomplished simply by reversing the readings for the forward movement. The following formula describes X2 in relation to X1 for backwards movement:
Quote:X2 = -0.09t + X1 + k
where k = the initial distance between X1 and X2 and t = amount of time that has passed since the recording started. In this case, k should be larger than c. (mentioned in point 1.) Again, this assumes that X2 > X1.

To implement this within the wiimote plugin, one can just redefine t to be, for example, the y axis displacement of the mouse pointer or analog stick.

However, I'm a bit wary of my findings unless its tested on more games. I'm hoping that I can ask for the help of a few kind souls to test my attached wiimotemovement.ini on games that require forward/backward movement of the wiimote. Use Alt+1 to move the wiimote towards the screen and Alt+2 to move the wiimote towards you.

I've generated the wiimote movements using the following values of X1, Y1, Y2 and c:
Quote:X1 = 300
Y1 = 380
Y2 = 380
c = 230
All these values are arbitrary picked; however, I've noticed that if any of these values are too low (e.g. 0), the game will think that the wiimote is being pointed off the screen. I picked a value somewhere relatively near the median of the range of X and Y in order to avoid problems such as this.


tl;dr: I think I've narrowed down the way games detect wiimote depth movements. I hope that you can help me test the attached wiimotemovement.ini on games that require forward/backward movement of the wiimote, such as Metroid Prime 3. I'd like to implement this as a patch to the dolphin source if it works. Thank you! Use Alt+1 to move the wiimote towards the screen and Alt+2 to move the wiimote towards you.


Attached Files
.zip   TestWiimoteMovement.zip (Size: 878 bytes / Downloads: 219)
Find
Reply
06-08-2010, 02:22 PM
#2
krazedout Offline
Junior Member
**
Posts: 13
Threads: 2
Joined: May 2010
Bump.

Can anyone confirm if this works on games like Metroid?

Thanks!
Find
Reply
06-11-2010, 01:19 PM
#3
emuhunter Offline
Junior Member
**
Posts: 10
Threads: 3
Joined: Jan 2010
how do you apply the ini or where do you place it
[Image: d2qxxzbd.png]
Click here to level up my card![URL="http://www.mubos-md.com/brawlcards/levelup.php?95910"]
Find
Reply
06-13-2010, 12:46 AM
#4
IcemanSR Offline
Senior Member
****
Posts: 528
Threads: 16
Joined: May 2010
okeeey..i missed this topic,i will re-examine my testings which i posted in "code patches" part of forum
My Rig:
Mainboard: Asus P8-Z77 | Ram: ExceleRam 2x8GB DDR3 Black Shark 1600MHz Cl9 | GFX: Nvidia GTX950 WFOC 2GB DDR5
CPU+Cooler: [color=#0000CD]Intel 2500K[/color] [color=#32CD32]@[/color] [color=#FF0000]4.6ghz[/color] + Xigmatek Gaia SD1283 (Push/Pull)
Find
Reply
07-16-2010, 07:53 AM
#5
tom23
Unregistered
 
Cool it works, but Emulator crashs permanent itss till unstable even version 2.0
Reply
08-18-2010, 12:58 AM
#6
thejohnny
Unregistered
 
I don't know if there is any other topic on this, I couldn't found it...

anyway, I'm not sure how to use this config, I wasn't able to make it work ok yet... I'll try again tonight.

I think that the best way to use the depth emulation will be using the mouse weel... I don't know if this is possible or not, as I don't know how much this advanced since the last reply on this post...

Is there any news??
Reply
08-18-2010, 08:33 AM
#7
Billiard26 Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 2,661
Threads: 8
Joined: Feb 2010
(08-18-2010, 12:58 AM)thejohnny Wrote: I don't know if there is any other topic on this, I couldn't found it...

anyway, I'm not sure how to use this config, I wasn't able to make it work ok yet... I'll try again tonight.

I think that the best way to use the depth emulation will be using the mouse weel... I don't know if this is possible or not, as I don't know how much this advanced since the last reply on this post...

Is there any news??

The new wiimote plugin allows you to map inputs to IR forward/backward.
You could try that?
Find
Reply
08-18-2010, 09:19 AM (This post was last modified: 08-18-2010, 09:28 AM by admin89.)
#8
admin89 Offline
Overclocker™ ✓ᵛᵉʳᶦᶠᶦᵉᵈ
*******
Posts: 6,889
Threads: 127
Joined: Nov 2009
@Billiard26 : Something wrong with the shake button in new plugin (shake x,y,z) I pressed them but not work.Or i misunderstood something ?
Laptop: (Show Spoiler)
Clevo W230SS : 3200x1800 IPS | i7 4700MQ @ 3.6GHz (Intel XTU + Triple fan mod) | GTX 860M GDDR5 | 128GB Toshiba CFD SSD | 16GB DDR3L 1600MHz
Aspire 715 43G : 1080p 144Hz |  R5 5625U @ 4.3GHz | Nvidia RTX 3050 4GB | 500GB WD SSD  | 16GB DDR4 3200MHz 
Mini PC :: (Show Spoiler)
G3258 @ 4.6GHz | ELSA GTX 750 | Asrock Z87E ITX | 600W SFX 80+ Gold Silverstone + SG06-LITE | Corsair Vengeance 8GB 2000MHz | Scythe Kozuti + Ao Kaze | 45TB 2.5" Ex HDD (in total) , Zelda Gold Wiimote , LE Wii Classic Controller , Gold LE PS3 DualShock , BlackWidow Chroma ,
Now Playing : Xenoblade Definitive Edition on Yuzu - Switch Emu 

 
Find
Reply
08-18-2010, 12:15 PM
#9
Billiard26 Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 2,661
Threads: 8
Joined: Feb 2010
admin89, Which game? trying to do what in the game?
Find
Reply
08-18-2010, 01:35 PM
#10
admin89 Offline
Overclocker™ ✓ᵛᵉʳᶦᶠᶦᵉᵈ
*******
Posts: 6,889
Threads: 127
Joined: Nov 2009
Nevermind,i was an idiot ,i set shake x,y,z the same button so it won't work.
Thanks anyway
Laptop: (Show Spoiler)
Clevo W230SS : 3200x1800 IPS | i7 4700MQ @ 3.6GHz (Intel XTU + Triple fan mod) | GTX 860M GDDR5 | 128GB Toshiba CFD SSD | 16GB DDR3L 1600MHz
Aspire 715 43G : 1080p 144Hz |  R5 5625U @ 4.3GHz | Nvidia RTX 3050 4GB | 500GB WD SSD  | 16GB DDR4 3200MHz 
Mini PC :: (Show Spoiler)
G3258 @ 4.6GHz | ELSA GTX 750 | Asrock Z87E ITX | 600W SFX 80+ Gold Silverstone + SG06-LITE | Corsair Vengeance 8GB 2000MHz | Scythe Kozuti + Ao Kaze | 45TB 2.5" Ex HDD (in total) , Zelda Gold Wiimote , LE Wii Classic Controller , Gold LE PS3 DualShock , BlackWidow Chroma ,
Now Playing : Xenoblade Definitive Edition on Yuzu - Switch Emu 

 
Find
Reply
« Next Oldest | Next Newest »
Pages (2): 1 2 Next »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode