Page 1 of 1

Better preview mode

Posted: 24 Jun 2020, 23:34
by ptmikheev
I am working on an alternative for the preview mode.

Currently player can switch to preview mode by pressing TAB for half a second. Then camera jumps to the position from the previous preview.

I've removed the delay and the camera jump. It becomes almost the same as in Skyrim, but player should hold TAB instead of standing still. After releasing TAB the character turns to the direction of view.

See video.

What do you think?

Re: Better preview mode

Posted: 25 Jun 2020, 06:19
by akortunov
Not that important to be a part of upstream codebase, IMO.

Re: Better preview mode

Posted: 26 Jun 2020, 00:11
by kust
Pretty cool!

Re: Better preview mode

Posted: 27 Jun 2020, 15:22
by ptmikheev
The feature is ready for testing.

It is implemented on top of not yet merged !237, so I didn't create a new MR yet.

The code is in my experimental branch. To checkout use:

Code: Select all

git fetch "[email protected]:ptmikheev/openmw.git" "experimental"
git checkout -b "ptmikheev/openmw-experimental" FETCH_HEAD
Preview mode is changed in this commit.

Here are also my android debug builds.

To enable new features add to settings.cfg:

Code: Select all

[Camera]
view over shoulder = true
separate preview camera = false

# Optional. Places 3rd person camera closer to player. Useful on android.
default camera distance = 50

[Game]
turn to movement direction = true
How to use:
In 3rd person mode hold TAB and move mouse.
On android hold camera icon and rotate view.

I appreciate any feedback on the new preview mode (video example from the first post) and "auto switch shoulder" feature from !237 (video example).

Re: Better preview mode

Posted: 27 Jun 2020, 18:41
by silentthief
ptmikheev wrote:
27 Jun 2020, 15:22
I appreciate any feedback on the new preview mode (video example from the first post) and "auto switch shoulder" feature from !237 (video example).
Well, I haven't tested this feature but the video looks pretty cool. I like the idea of the shoulder switch in case you are too close to a wall or other obstruction. I logged in to give my thumbs up on this after viewing that video.

ST :thumbsup:
PS - The place to test this should be inside a cave, where the walls are close. I wanna see how it handles that kind of environment. (I really should get my setup set up so I can test this myself)

Re: Better preview mode

Posted: 27 Jun 2020, 20:10
by ptmikheev
silentthief wrote:
27 Jun 2020, 18:41
PS - The place to test this should be inside a cave, where the walls are close. I wanna see how it handles that kind of environment. (I really should get my setup set up so I can test this myself)
It switches only if there is a lot of space from the other side. So if you see that in close environment it doesn't switch at all - it is intended behaviour. I think it is better than frequent and annoying switching back and forth.

Re: Better preview mode

Posted: 15 Jul 2020, 01:18
by ptmikheev
Update.

Merge request 261.

Debug builds: windows, android. Linux users, I believe, can easily build it from source. Please try it and share your opinion!

Settings:

Code: Select all

[Camera]
separate preview camera = true  # current behavior (for comparison)
separate preview camera = false  # new behavior

# I recommend to test with "view over shoulder" enabled.
view over shoulder = true
If there are no objections, I plan to remove the setting "separate preview camera" and make the new behavior the default one.