Featuer Request: Increase attachment position max distance for HUDs to accommodate outputs returned by llWorldPosToHUD() in wide window aspect ratio environments.
tracked
Kyle Linden
Information
After testing llWorldPosToHUD(), I noticed an issue when positioning HUD roots that were attached to Top Left, Top Right, Bottom Left or Bottom Right.
These 4 attach points have their zero vector attach positions in the corners of the screen.
This means in order to move an HUD to an opposite(diagonal) corner, they need to move the minimum magnitude of <0.0, window ratio, 1.0>.
If this magnitude is greater than the current 3.5m max distance limit, then correct HUD placement can not happen.
An example, in a window with a ratio of 4.0, such as one in a cinematic or dual/tri monitor environment, the distance to an opposite corner is 4.123106 meters.
The current 3.5m distance limit is enforced by the viewer through the UI, but also at the server with calls from LSL.
I request that this limit be raised to either a static value that will accommodate most wide window ratios or to max(3.5, vecmag(<0.0, window ratio, 1.0>)).
Thanks.
Log In
VriSeriphim Resident
Knowing the size of a hud, you can get the position using llGetAttached(); then a script in the hud can adjust the position.
Since scripts remember their state across de-rez/re-rez cycles, a script can check if the hud is attached to the same place as previously then skip adjusting the position.
This appears to work with a 1440p monitor. Do not have a 4K monitor to test this with.
Spidey Linden
tracked
Issue tracked. We have no estimate when it may be implemented. Please see future updates here.