-
Notifications
You must be signed in to change notification settings - Fork 212
motion capture tools #498
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
motion capture tools #498
Conversation
|
Available to test https://ngokevin.github.io/aframe-inspector/example/controllers.html |
|
I did a quick first run. Problems:
|
|
|
I also added a few more tasks for myself in the PR description via the checkboxes after doing a run because sometimes I'd rather not have to open the Inspector on each refresh. People can import the components, take recordings with the Inspector, but be able to auto-replay them on refresh via like query param or component configuration. |
|
Ready for another try-out. https://ngokevin.github.io/aframe-inspector/example/controllers.html Camera switching may be weird sometimes because the Inspector examples immediately boot into the Inspector, and vrdisplayactivate will kick you into VR while in the Inspector. Sometimes recording will work fine, but best to exit VR and re-enter the Inspector and record. In normal use case, it is not a big problem because entering the Inspector will exit VR. |
|
Also finding it useful being able to change the speed of the recording. I wrote a script to double the speed by dividing the timestamps in half, speeds up each test iteration for me (e.g., watching a 20 second recording). Maybe later will add a UI tool for that. |
|
@fernandojsg r? |
|
@ngokevin I've just fetched it, Did you forget to add some dependency in package.json? Or am I doing something wrong? :\ |
|
OK, can you try again? I think I needed to move a devDep to a dep in react-file-reader-input |
|
@ngokevin I've tried again and that error is gone, but as long as I click on the motion capture button and the inspector injects the /cc @dmarcos |
|
Is this A-Frame master? Will try again later. |
|
When trying to record:
|
|
OK will patch it up soon. I think it was due to an A-Frame regression ( |
d840e6e to
7ec5699
Compare
|
OK fixed the A-Frame error, try again. |
|
nvm need to fix things...code has rotted since rebase |
dbd0654 to
e5359e4
Compare
|
OK, all fixed up again. Had to fix several bugs with the motion capture components (changes to A-Frame tracked-controls system which motion capture replayer wraps), and since A-Frame no longer cloned data on getAttribute, motion-capture-recorder had to clone so it wasn't save the same object for all of its poses. |
|
IMHO too much verbose info on the component. I would get rid of the long explanation on the toggle recording checkbox and on the controllers sample info, maybe adding then to a tooltip next to the button if needed, because right now is taking more than half of my screen's height. I would change the color of the I'll be out without access to a Vive so I can't test the functionality with it, @dmarcos could you try it? In the meanwhile I've been trying with the laptop without any headset and it's confusing when you click the record button as it just go fullscreen without any other action. Should we just remove the record button if not controls or headset detected? And just let the user to replay recordings? |
|
I wouldn't remove the text, they are critical instructions and it's a checkbox that changes behavior. It'd be confusing to remove the instructions and just have a bunch of shape icons. The tools are collapsible if you don't want to see. The tools are primarily for headset but still works for 2D. Unticking the checkbox will start recording without controller trigger. I can change color of headings but I use this heavily so it works, put maybe a month into it, and it'd help everyone who is still putting the headset on and off every code change. |
|
Ok to the comments text. I still don't undestand the behaviour in 2D as I don't see any feedback that I'm recording or so, it just go fullscreen and after exiting I can't find the recorded session. |
|
I mean, if it's not still supported the 2D mode for recording, we could just merge it and then we could fix/disable the 2d mode recording in another PR, and then improve the support for it just not to delay this PR as it's already being delayed a lot (Sorry for that :) |
|
@ngokevin any thoughts on my previous comments? |
|
@fernandojsg Sorry, I'm back! I added some text display to the camera |
|
@ngokevin welcome back! 👍 |
| document.addEventListener('keyup', function keyboardStart () { | ||
| textEntity.parentNode.removeChild(textEntity); | ||
| self.countdownRecording(); | ||
| sceneEl.removeEventListener('keyup', buttonStart); |
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.
I believe it must be document and keyboardStart:
document.removeEventListener('keyup', keyboardStart);
|
ok fixed |
| textEntity.parentNode.removeChild(textEntity); | ||
| self.countdownRecording(); | ||
| sceneEl.removeEventListener('keyup', buttonStart); | ||
| sceneEl.removeEventListener('keyup', keyboardStart); |
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.
sceneEl => document as you're adding the listener to document isn't it?
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.
oops, fixed again
|
Supercool!!! 🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉 |
|
horray, i'm gonna cut a release of inspector and later on do a blog post |
|
@ngokevin cool! 👍 |
|
Bit confusing to get a fixed point of view when the recording is finished, might we less disorienting to leave the camera moving with the HMD but display a message like "remove the HMD and go edit in the inspector" after. Anyway that's great, can't wait to read the blog post! |
|
Really amazing! |






http://aframe.io/blog/motion-capture
dmarcos/aframe-motion-capture-components#32
Changes Proposed
Motion Capture Features
mshortcut to toggle motion capture tools above scene graph. Opening the tools will inject the motion capture components.qoutside Inspector).gist.github.comand get a URL back. Or delete recordings.