First-person Model (Forge/Fabric)

First-person Model (Forge/Fabric)

9M Downloads

suggestion for solving the problem of Player's arms blocking the view

peow opened this issue ยท 4 comments

commented

There are some moments when being able to see your arms ends up being a nuisance, such as when you are aiming upwards using a crossbow (to hit a flying mob like the Phantom or Ender Dragon)

2024-04-12_12 36 37
2024-04-12_13 09 53


What is the solution I imagine: when the player's view gets blocked by their arms, the mod would recognize this and adjust the opacity of the player's model and the held item, increasing their transparency, as I did in this image edit:

1
2


This would be a problem sometimes, right? because whenever the arm appeared in the player's view it would be transparent;
to avoid this, I thought this function would only be activated when the Player is looking up, and is holding down the RMB (or has the crossbow ready to shoot)

but this would not solve, for example, situations in which the item obstructs the player's view when he is not looking up, such as the Slingshot from the Supplementaries mod
2024-04-12_15 52 36

to solve this, I imagine it would be interesting to make the item more transparent when it approaches the center of the screen (while holding RMB)

3


I don't know if it's possible to implement this, I tried to search if anyone had already posted an Issue about this problem but I couldn't find it, sorry if it's a duplicate post

commented

You basically can't know when the arms themselves are blocking the view without a ton of math, and for the items is practically not possible. Added to that, transparency wouldn't work well. #437 added a decent middle ground solution(second video).

commented

Isn't there a way to know if something is close to the center of the screen in first person?

Not with a ton of math and just guesswork, things I won't do.

does the feature Dynamic Hands only work when aiming down or also up?

It shows the normal vanilla view, and dynamically switches to the firstperson view when looking down.

commented

Isn't there a way to know if something is close to the center of the screen in first person?

does the feature Dynamic Hands only work when aiming down or also up?

commented

i see
so it won't be possible to configure Dynamic Hands to activate automatically when looking up too?