[GH-ISSUE #128] Moving inside emulator virtualscene keys not working #90

Open
opened 2026-03-01 15:40:19 +03:00 by kerem · 10 comments
Owner

Originally created by @marad9016100 on GitHub (Oct 30, 2018).
Original GitHub issue: https://github.com/budtmo/docker-android/issues/128

Please make sure that it is an issue / a feature request. If it is a question / help wanted, please visit our group chat. Thank you!

Operating System:
Ubuntu 14.04.5 LTS

Docker Image:
butomo1989/docker-android-x86-9.0

Docker Version:
Docker version 18.06.0-ce, build 0ffa825

Docker-compose version (Only if you use it):

Docker Command to start docker-android:
docker run --privileged -itd -p 6080:6080 -e APPIUM=false -e AUTO_RECORD=false -e DEVICE="Samsung Galaxy S6" -e EMULATOR_ARGS="-camera-back virtualscene" butomo1989/docker-android-x86-9.0

#please note -e EMULATOR_ARGS="-camera-back virtualscene"

Expected Behavior

Open camera. Moving is possible using "Alt" + one of the "QWEASD".

Actual Behavior

Open Camera. Moving inside virtualscene should be possible using "Alt" key + one of the "QWEASD" keys. Rotation using mouse works fine, but view poitn can't change position.
Looks like using "Alt" key is passed properly, but letters are not passed to virtualscene navigation.

Originally created by @marad9016100 on GitHub (Oct 30, 2018). Original GitHub issue: https://github.com/budtmo/docker-android/issues/128 **Please make sure that it is an issue / a feature request. If it is a question / help wanted, please visit [our group chat](https://gitter.im/butomo1989/docker-android). Thank you!** Operating System: Ubuntu 14.04.5 LTS Docker Image: butomo1989/docker-android-x86-9.0 Docker Version: Docker version 18.06.0-ce, build 0ffa825 Docker-compose version (Only if you use it): <!-- 1.16.1 etc --> Docker Command to start docker-android: docker run --privileged -itd -p 6080:6080 -e APPIUM=false -e AUTO_RECORD=false -e DEVICE="Samsung Galaxy S6" -e EMULATOR_ARGS="-camera-back virtualscene" butomo1989/docker-android-x86-9.0 #please note -e EMULATOR_ARGS="-camera-back virtualscene" ## Expected Behavior Open camera. Moving is possible using "Alt" + one of the "QWEASD". ## Actual Behavior Open Camera. Moving inside virtualscene should be possible using "Alt" key + one of the "QWEASD" keys. Rotation using mouse works fine, but view poitn can't change position. Looks like using "Alt" key is passed properly, but letters are not passed to virtualscene navigation.
Author
Owner

@budtmo commented on GitHub (Oct 30, 2018):

Hi @marad9016100 ,

Thank you for opening the issue. Could you also add / attach sample application to debug that issue? or if you want, you can also work on it and create a PR. It would be great.

<!-- gh-comment-id:434366708 --> @budtmo commented on GitHub (Oct 30, 2018): Hi @marad9016100 , Thank you for opening the issue. Could you also add / attach sample application to debug that issue? or if you want, you can also work on it and create a PR. It would be great.
Author
Owner

@marad9016100 commented on GitHub (Oct 30, 2018):

Hi @butomo1989 ,
thank you for very quick replay.

Just run image docker-android-x86-9.0, pass parameter -e EMULATOR_ARGS="-camera-back virtualscene"

e.g.
docker run --privileged -itd -p 6080:6080 -e APPIUM=false -e AUTO_RECORD=false -e DEVICE="Samsung Galaxy S6" -e EMULATOR_ARGS="-camera-back virtualscene" butomo1989/docker-android-x86-9.0

Then use system "Camera" app shipped with emulator. Camera should display inside virtual room.
The issue is that moving inside room keyboard "QWEASD" is impossible.

<!-- gh-comment-id:434389129 --> @marad9016100 commented on GitHub (Oct 30, 2018): Hi @butomo1989 , thank you for very quick replay. Just run image docker-android-x86-9.0, pass parameter -e EMULATOR_ARGS="-camera-back virtualscene" e.g. docker run --privileged -itd -p 6080:6080 -e APPIUM=false -e AUTO_RECORD=false -e DEVICE="Samsung Galaxy S6" -e EMULATOR_ARGS="-camera-back virtualscene" butomo1989/docker-android-x86-9.0 Then use system "Camera" app shipped with emulator. Camera should display inside virtual room. The issue is that moving inside room keyboard "QWEASD" is impossible.
Author
Owner

@marad9016100 commented on GitHub (Nov 5, 2018):

I was able to workaround this issue by sending keys directly from terminal e.g
xdotool key --clearmodifiers Alt+a

<!-- gh-comment-id:435936147 --> @marad9016100 commented on GitHub (Nov 5, 2018): I was able to workaround this issue by sending keys directly from terminal e.g xdotool key --clearmodifiers Alt+a
Author
Owner

@budtmo commented on GitHub (Nov 6, 2018):

Hi @marad9016100 ,

could you write documentation about it and create a PR? just in case someone has similar issue like you had.

<!-- gh-comment-id:436178739 --> @budtmo commented on GitHub (Nov 6, 2018): Hi @marad9016100 , could you write documentation about it and create a PR? just in case someone has similar issue like you had.
Author
Owner

@marad9016100 commented on GitHub (Nov 20, 2018):

Hi @butomo1989
unfortunately my workaround is not working well.
I am able to move inside virtual scene using commands passed via terminal but it requires killing command during passing. Then there is random move inside virtual scene.
So moving is not intentional but random. It is definitely not good solution.

<!-- gh-comment-id:440243562 --> @marad9016100 commented on GitHub (Nov 20, 2018): Hi @butomo1989 unfortunately my workaround is not working well. I am able to move inside virtual scene using commands passed via terminal but it requires killing command during passing. Then there is random move inside virtual scene. So moving is not intentional but random. It is definitely not good solution.
Author
Owner

@Noman5253 commented on GitHub (Mar 7, 2020):

Same thing is happening with me. I am running a demo AR app on emulator [Pixel 2 Oreo]. App runs successfully, it show the animation to move the camera, when I press Alt, emulator sense that alt is pressed but when I move mouse or press ASDWQE (holding Alt) nothing happens. View does't even move, and the animation(tutorial) keeps running. Please help.

<!-- gh-comment-id:596126932 --> @Noman5253 commented on GitHub (Mar 7, 2020): Same thing is happening with me. I am running a demo AR app on emulator [Pixel 2 Oreo]. App runs successfully, it show the animation to move the camera, when I press Alt, emulator sense that alt is pressed but when I move mouse or press ASDWQE (holding Alt) nothing happens. View does't even move, and the animation(tutorial) keeps running. Please help.
Author
Owner

@0xhex commented on GitHub (Oct 8, 2020):

Same issue help pls

<!-- gh-comment-id:705883012 --> @0xhex commented on GitHub (Oct 8, 2020): Same issue help pls
Author
Owner

@0xhex commented on GitHub (Apr 18, 2021):

solution ? @Noman5253

<!-- gh-comment-id:822013392 --> @0xhex commented on GitHub (Apr 18, 2021): solution ? @Noman5253
Author
Owner

@IamBiswajitSahoo commented on GitHub (May 8, 2021):

Run the Emulator as a standalone app for the Camera's Virtual Scene to work.

From Android Studio > Settings > Tools > Emulator > Untick "Launch In A Tool Window" > Rerun the Emulator from AVD Manager.

As Virtual Scene in Camera requires extended controls.

If Using for AR Apps:
Refer: https://developers.google.com/ar/develop/c/emulator

<!-- gh-comment-id:835156087 --> @IamBiswajitSahoo commented on GitHub (May 8, 2021): Run the Emulator as a standalone app for the Camera's Virtual Scene to work. From Android Studio > Settings > Tools > Emulator > Untick "Launch In A Tool Window" > Rerun the Emulator from AVD Manager. As Virtual Scene in Camera requires extended controls. If Using for AR Apps: Refer: https://developers.google.com/ar/develop/c/emulator
Author
Owner

@Displee commented on GitHub (Jun 23, 2022):

Same issue, however, I did find a workaround.
Edit /root/emulator/resources/Toren1BD.posters and add the following lines to it:

poster custom
size 1 1
position 0 0 -1.8
rotation 0 0 0
default custom.png

Then add a file called custom.png in the same directory. This will show your picture like this:
Schermafbeelding 2022-06-23 om 17 11 49

<!-- gh-comment-id:1164539327 --> @Displee commented on GitHub (Jun 23, 2022): Same issue, however, I did find a workaround. Edit `/root/emulator/resources/Toren1BD.posters` and add the following lines to it: ``` poster custom size 1 1 position 0 0 -1.8 rotation 0 0 0 default custom.png ``` Then add a file called `custom.png` in the same directory. This will show your picture like this: <img width="381" alt="Schermafbeelding 2022-06-23 om 17 11 49" src="https://user-images.githubusercontent.com/12080880/175332846-cd9822a0-0208-499d-a1f3-518e9040e455.png">
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/docker-android#90
No description provided.