Skip to content
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

Possible Look Fixes #33

Open
thommoboy opened this issue Aug 29, 2012 · 3 comments
Open

Possible Look Fixes #33

thommoboy opened this issue Aug 29, 2012 · 3 comments

Comments

@thommoboy
Copy link

Okay i have messed around inside the game and have some possible fixes:

Make it so when the player touches it won't jump around the screen make it so when the player swipes left it moves left full 360
and when you look up and down make it about 45(its hard to explain), because i have noticed that when you try to look around you are limited by where you are touching on the screen(AKA i cannot look below straight).

also:

constrain the look controls to one side of the screen(It will make it easier to implement the movement code without messing up the inputs).

@kphillisjr
Copy link

Care to give some more details on the problem? Some of the extra details can be the System configuration ( I recommend if your on linux adding simply the phoronix test suite information from the following command )...

phoronix-test-suite detailed-system-info 

Although, Does this look anything like Gimbal Lock (wikipedia)?

Note: The wikipedia article references a youtube video that explains the issue graphically.

@thommoboy
Copy link
Author

no im not on linux its hard to explain i mean whenever i touch on the screen it jumps to exactly the same position every time so i cannot keep swiping left and keep looking left it will reset every time i swipe (Ill make a video if you want).

by the way im testing the actual apk

oh and what is the test_boxstack apk?

@omcfadde
Copy link
Owner

There are known bugs with the input code. I believe that deltas and absolute coordinates are mixed up somewhere. I will rewrite that code when I have some time, possibly this weekend.

I also need to add support for accelerometer based movement (i.e. tilting the device to move forward/backwards) as an intermediate solution until we have something better available. Currently it's not possible to move about the map on the Android platform.

Input functions correctly on desktop Mesa, for example with i965 OpenGL ES2.0 driver.

The test_boxstack/Dante-debug.apk simply launches you directly into testmaps/test_boxstack.map:

diff --git a/neo/sys/linux/main.cpp b/neo/sys/linux/main.cpp
index c311a67..a1eff65 100644
--- a/neo/sys/linux/main.cpp
+++ b/neo/sys/linux/main.cpp
@@ -91,7 +91,7 @@ class idAndroidEngine
                void start(ANativeWindow *win) {
                        GLimp_AndroidInit(win);
                        Posix_EarlyInit();
-                       common->Init(0, NULL, NULL);
+                       common->Init(0, NULL, "+devmap testmaps/test_boxstack");
                        Posix_LateInit();
                }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants