New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WiimoteEmu: Improve simulated IR point size accuracy. #11152
WiimoteEmu: Improve simulated IR point size accuracy. #11152
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In your graph, some of the values seem to end in .5, but it doesn't stick to those, unlike with whole numbers. Are e.g. the 1.5 numbers cases where one of the points corresponding to one one of the LEDs in the sensor bar reported a value of 1, and the other 2?
e7f34e5
to
3939b32
Compare
|
There's a comment further down Is this obsolete now? |
It's not obsolete. That comment is related to the "Full" IR mode with 36 bytes of data (that no games use). |
|
Asking this again (since it seems like you missed it since it was not associated with a line of code but instead as the review summary comment): What does .5 actually mean on the graph, if the sensor value is an integer from 0 to 15? Does 1.5 indicate that one point was 1 and the other was 2? |
|
Yes, sorry, it's an average. 1.5 indicates one was 1 and the other was 2. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code's good, but I found this awkward to test because very little of our input data actually affects the distance to the TV in an emulated Wiimote. I had to hack myself in a distance setting to actually verify this works as expected...
The Wii Remote camera data includes a size for each visible IR object.
Previously the simulated "size" was the just the maximum possible value scaled down based on distance from the sensor bar.
I've measured the values that a real wii remote produces at different sensor bar distances and implemented math to simulate it.

I don't expect any games to really use this data and I'm sure this differs from remote to remote, but it's an improvement over the previously completely made up number,