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

Investigate options for fading out distance culled objects #206

Open
Aitolda opened this issue Oct 27, 2023 · 1 comment
Open

Investigate options for fading out distance culled objects #206

Aitolda opened this issue Oct 27, 2023 · 1 comment
Labels
enhancement New feature or request Severity: Optional Optional improvement, not a bug

Comments

@Aitolda
Copy link
Contributor

Aitolda commented Oct 27, 2023

At the moment, culled meshes will simple pop out of existence. If possible, a fade out (such as we currently do with the sit object icon using) would be far less jarring.

I would suggest having the beginning of the fade out immediately at the specified distance, for example, if the property is "vircadia_lod_hide = 30" , once the camera is 30 meters/units from the object it would switch to "alpha blend" mode and gradually transition to an alpha of 0 before being culled completely. Perhaps a property for the fade distance would be necessessary. Something like "vircadia_hide_transition = (n)" in meters. Where (n) is the distance beyond those 30 meters where said transition occurs.

@Aitolda Aitolda added enhancement New feature or request Severity: Optional Optional improvement, not a bug labels Oct 27, 2023
@Gigabyte5671
Copy link
Member

For reference, the code for fading the labels in/out is here.

This begins to fade the labels out about 1m before they pop, and completes the fadeout (visibility = 0) at the pop distance. This ensures the popping is not visible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Severity: Optional Optional improvement, not a bug
Projects
None yet
Development

No branches or pull requests

2 participants