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

Move pop-ups to the edge of the screen #38

Open
gcrtnst opened this issue Apr 4, 2021 · 3 comments
Open

Move pop-ups to the edge of the screen #38

gcrtnst opened this issue Apr 4, 2021 · 3 comments

Comments

@gcrtnst
Copy link
Owner

gcrtnst commented Apr 4, 2021

Currently, the marker is displayed at the same location as the vehicle's coordinates. Since the markers are quite large, it often happens that the vehicle is hidden by the marker and cannot be seen. As a solution to this problem, we provide ?vmark hide and ?vmark show, but it is tedious to hit the commands frequently, so we would like a less tedious solution.

In vmark usage scenarios, there are quite a few cases where the height information of the vehicle is not necessary. For example, it is obvious that a car is at the same height as the ground and a ship is at the same height as the sea surface. In such cases, it is enough to know the direction of the vehicle as seen by the player.

Then, how about placing the marker not at the same position as the vehicle, but far above the vehicle? This way, the marker will always be displayed at the top of the screen and will only show the direction of the vehicle as seen by the player. This will reduce the number of times the marker overlaps with the vehicle and reduce the frequency of hitting ?vmark hide.


現状では、マーカーは車両の座標と同じ位置に表示される。マーカーは結構大きいため、車両がマーカーに隠れてしまって見えないということが良く起こる。この問題の解決策として、?vmark hide?vmark show を提供しているが、一々コマンドを叩くのが面倒なので、より手間の掛からない解決策がほしい。

vmark の利用シーンにおいて、車両の高さ情報が必要ないケースは結構ある。例えば、車は地面と同じ高さの場所、船は海面と同じ高さの場所にあることが自明である。こういうケースでは、車両がプレイヤーから見てどの方角にあるか分かればそれで十分だ。

ならば、マーカーを車両と同じ位置ではなく、車両のはるか上空に設置してみるのはどうだろうか?こうすると、マーカーは常に画面上端に表示され、プレイヤーから見た車両の方角のみを表すようになる。これなら、マーカーが車両と重なる位置に表示されることが減るし、?vmark hide を叩く頻度も減りそうだ。

@gcrtnst
Copy link
Owner Author

gcrtnst commented Apr 4, 2021

Of course, there may be cases where you want to know the height of the vehicle, so it would be better to provide a way to toggle this function on and off.


もちろん、車両の高さを知りたいケースもあるだろうから、この機能の有無を切り替える方法を提供したほうが良いだろう。

@gcrtnst
Copy link
Owner Author

gcrtnst commented Apr 4, 2021

As a test, I placed the marker in the sky, and the marker always appeared in the top center of the screen, regardless of the direction the player was facing! This makes it useless...


試しに、マーカーを上空に配置してみたら、マーカーはプレイヤーの向いている方向によらず常に画面上端中央に表示された!これだと使い物にならない...

@gcrtnst gcrtnst changed the title Display the marker at the top of the screen Move pop-ups to the edge of the screen Apr 12, 2021
@gcrtnst
Copy link
Owner Author

gcrtnst commented Apr 12, 2021

sw-vmark.zip

I tried a prototype using server.setPopupScreen().
There are some problems, such as the lag between moving the viewpoint and the marker moving (especially in multiplayer), and the marker shifting in the third person's viewpoint, but it's not as bad as I thought.


server.setPopupScreen() を使って試作してみた。
視点移動してからマーカーが移動するまでラグがある(特にマルチプレイ)、第3者視点でマーカーがずれる、などの問題はあるが、思ったほど酷くはない。

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

No branches or pull requests

1 participant