[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4280: ob_start(): output handler 'ob_gzhandler' conflicts with 'zlib output compression'
Oolite Bulletins • Reverse up-down control when looking astern? - Page 5
Page 5 of 5

Re: Reverse up-down control when looking astern?

Posted: Mon Oct 23, 2017 11:34 pm
by cag
hoqllnq wrote:
Sun Oct 22, 2017 10:25 pm
I don't think you can remap what controls do on the fly.
No but it would open up some possibilities. But for this, all I need is to dectect them. I suppose I could monitor the delta V in each axis frame to frame to infer it ...
hoqllnq wrote:
Sun Oct 22, 2017 10:25 pm
Now, if ship.pitch and ship.roll were writable, then you could flip the motion on view change (i.e. ps.roll = -ps.roll; for aft view, ps.roll = ps.pitch; for left, ps.roll = -ps.pitch; for right, etc.. ) so that the combined effect would be that the ship keeps rotating in the same direction, but they aren't, according to the wiki.
They're not writable, I just tried - it would simplify things immensely. But as you saw, he's inverting the angular motion each frame, so it's doable, except for the previous point. I'll let this roll around my attic for a while and see if I get hit w/ an 'ahaa!' moment.

Re: Reverse up-down control when looking astern?

Posted: Sun Oct 29, 2017 6:32 pm
by hoqllnq
Diziet Sma wrote:
Mon Oct 23, 2017 6:05 am
You can always submit a request that they be made writable..
This is in todays nightly.

Re: Reverse up-down control when looking astern?

Posted: Wed Jul 04, 2018 3:04 am
by cag
hoqllnq wrote:
Sun Oct 22, 2017 1:03 pm
There is something about the reverse control thing that doesn't feel right..
(I play on keyboard. I guess this is not really an issue when using a joystick?)

When you dive/climb or rotate (diving/climbing is really also rotating) and then let go of the keys, you don't stop rotating immediately.
This is actually a good thing. It would be horrible if it would. It is really 'control damping' but it _feels_ like momentum.

If you switch view while the controls are still on their way back to neutral, you immediately and abruptly start rotating in the opposite direction.
Now I guess this is technically correct, since it is control damping and not momentum, but it feels unnatural. It feels like it is reverse physics instead of reverse control.
If you want 'horrible', try holding down a key and press its opposite one. :shock: Same thing if you immediately switch to the opposite direction: no momentum.

The game treats joysticks differently than keyboard controls; the time it takes you to physically move the stick from one limit to the other gives it time to slow down and move in the opposite direction. For keyboards, it just sets your rate to zero!

Also, the damping times differ. If you let go of the stick when it's at max, it takes about 0.5 sec to stop - this time is equal for all axes. But on a keyboard, the damping time is about 1 sec for pitch & yaw and 2 sec for roll (actually, it's whatever your ship.max<Axis> value is). So the 'reverse physics' is more apparent.

I've added a new component, inertia, which I think is what you're looking for. Give it a try and let me know what you think.

https://www.dropbox.com/s/4609bj3d2btwz ... l.oxz?dl=0

You can toggle both reverse control & inertia using 'Config for AddOns' on the F4 screen. They operate independently, so there are 4 possible configurations.

The inertia feature is meant for keyboard controls and (probably ...) won't affect joysticks, so those players should probably turn if off (for a tiny performance gain).
hoqllnq wrote:
Sun Oct 22, 2017 10:25 pm
I don't think you can remap what controls do on the fly. When I look left or right, my roll controls make the ship pitch, but they still move the roll indicator in the same direction. That is what you would really want: Have the same key/control move the pitch/roll indicators in the opposite direction, or have the same control move the other indicator.
I've never done any work on a HUD. Does anyone know if the pitch/roll indicators are HUD specific? It would be nice if they reflected the change in controls but it's not something I'd want to invest a lot of time in.

Re: Reverse up-down control when looking astern?

Posted: Wed Jul 04, 2018 7:27 am
by Norby
Inertia is working well so I uploaded it as ReverseControl v1.7. Thank you cag!

Re: Reverse up-down control when looking astern?

Posted: Tue Jul 17, 2018 8:03 pm
by Algernon
I just updated from V1.6 to V1.7 and it no longer works: pitch is not reversed and left and right roll controls both cause roll in the same direction in aft view (Oolite V1.86)

Re: Reverse up-down control when looking astern?

Posted: Tue Jul 17, 2018 9:53 pm
by Norby
Welcome Algernon!

I tested in trunk (aka Oolite 1.87) where it is working well, but now I checked in 1.86 where I got the same problems as you.

So now I uploaded ReverseControl_1.6.oxz also and renamed v1.7 to "Reverse control with inertia".

If you want the new inertia feature then you must use trunk version of Oolite, otherwise please remove the v1.7 then install back the v1.6 in the manager.

Re: Reverse up-down control when looking astern?

Posted: Tue Jul 17, 2018 9:57 pm
by phkb
Welcome to the boards, Algernon.

(Irrelevant side note) Whenever I see the name "Algernon" I'm always reminded of "Biggles", who had a side-kick with that name. :D

Re: Reverse up-down control when looking astern?

Posted: Tue Jul 17, 2018 11:09 pm
by Cody
phkb wrote:
Tue Jul 17, 2018 9:57 pm
Whenever I see the name "Algernon" I'm always reminded of "Biggles", who had a side-kick with that name.
With me, it's Algernon Blackwood, author of many a ghostly tale.

Re: Reverse up-down control when looking astern?

Posted: Wed Jul 18, 2018 8:39 am
by Disembodied
For me, it's the mouse with enhanced intelligence from Daniel Keyes' "Flowers for Algernon". It's a name with a fine literary pedigree!

Re: Reverse up-down control when looking astern?

Posted: Thu Jul 19, 2018 4:34 am
by cag
I've updated it to be version aware (d'Oh)

IF it checks out, you won't have to continue with 2 versions ...

https://www.dropbox.com/s/4609bj3d2btwz ... l.oxz?dl=0

Re: Reverse up-down control when looking astern?

Posted: Thu Jul 19, 2018 4:35 pm
by Norby
Thank you cag, now the fixed Reverse control with inertia v1.8 is available.

Re: Reverse up-down control when looking astern?

Posted: Fri Jul 20, 2018 4:51 pm
by Algernon
Thanks for the responses. How about Algernon Moncrieff?

Re: Reverse up-down control when looking astern?

Posted: Fri Jul 20, 2018 5:24 pm
by Cody
<grins> As Big D said, it's a name with a fine literary pedigree.