omcfadde / dante

idTech4 OpenGL ES2.0 | #dante (irc.freenode.net)
http://omcfadde.blogspot.fi
GNU General Public License v3.0
111 stars 30 forks source link

Possible Look Fixes #33

Open thommoboy opened 12 years ago

thommoboy commented 12 years ago

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 commented 12 years ago

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 commented 12 years ago

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 commented 12 years ago

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();
                }