Commit Graph

5331 Commits (1e254bb4c7563efea3a211b2ef46acd29d0fd6d9)

Author SHA1 Message Date
PanteraPolnocy 1e254bb4c7 Add an option to disable reset buttons in camera floaters 2025-10-08 14:50:11 +02:00
PanteraPolnocy 34d087040c Add a visual warning (not just information in logfile) about too many outfits 2025-09-20 14:00:52 +02:00
PanteraPolnocy 541398de2f FIRE-33085 Add beacons for region corners 2025-09-12 21:35:10 +02:00
PanteraPolnocy 7766a98d11 Add a switch to not connect to neighbouring regions
- An experimental and not officially supported function (therefore not exposed in preferences), may or may not stay in the source; Potentially addresses FIRE-2325 and its duplicates
- Prevents the viewer from connecting to neighbouring regions. When enabled, only the current region (login/teleport destination) is connected, while adjacent simulators are ignored. This effectively isolates the region, similar to how private estates behave.
- This may improve performance for users with weaker computers or slower connections, reduce unintended neighbour interactions, and assist multi-region event setups by lowering client overhead. It can also be useful for residents who prefer not to see or interact with neighbouring land.
- Limitations: region crossings will not function normally, as neighbouring regions are not visible or connected. Only direct teleports and logins to regions will work reliably. The sense of world scale and continuity is reduced, and travellers or explorers may find it unsuitable.
- TO-DO: Detect when avatar is crossing by foot/vehicle and load only that one region?
- I was not able to find an equivalent of WebRTC's updateNeighboringRegions() in Vivox code; updatePosition() is not that helpful, and channelFromRegion() seems to be detached?
2025-09-06 14:46:38 +02:00
Ansariel 7f0e80b877 FSRestoreOpenIMs should be disabled by default 2025-09-04 19:33:00 +02:00
PanteraPolnocy dc0d75039b Add a functionality to save/restore open IMs from previous session
Suggested by Luke Rowley; Improvements welcomed
2025-09-04 12:55:44 +02:00
TJ 06f2a1b79a
Merge branch 'master' into feature/conversations_opacity_options 2025-09-04 19:11:52 +10:00
Hecklezz 88545c5ae7 Fixed settings error for FSImActiveOpacityOverride 2025-08-26 22:05:06 +10:00
Hecklezz da395c715c Implemented seperate Conversations opacity options 2025-08-26 22:05:03 +10:00
Ansariel 7cf3d31190 Merge branch 'master' of https://github.com/FirestormViewer/phoenix-firestorm
# Conflicts:
#	indra/newview/app_settings/settings.xml
2025-08-25 20:26:06 +02:00
Angeldark Raymaker 587897e5be Merge branch 'master' into FIRE-35686 2025-08-23 16:51:35 +01:00
Hecklezz 1be2b04093 Added debug setting to hide help button from floaters 2025-08-20 03:10:50 +10:00
Ansariel 5baea92f3e Add option to automatically reset skeleton upon standing up and broadcast reset to surrounding avatars as well (possible starting with LL release 2025.06) 2025-08-17 00:31:50 +02:00
Angeldark Raymaker fb06fd9506 Merge branch 'master' into FIRE-35686 2025-08-14 18:45:15 +01:00
Ansariel 5af8801119 Merge branch 'main' of https://github.com/secondlife/viewer 2025-08-09 02:24:48 +02:00
Ansariel 539959a7f8 Merge branch 'master' of https://github.com/FirestormViewer/phoenix-firestorm-develop
# Conflicts:
#	.github/workflows/qatest.yaml
#	indra/newview/llfloatermodelpreview.cpp
#	indra/newview/llvoavatar.cpp
#	indra/newview/llwearableitemslist.cpp
2025-08-06 18:47:44 +02:00
Ansariel b4e83bc346 Merge branch 'develop' of https://github.com/secondlife/viewer 2025-08-06 18:27:08 +02:00
Ansariel c43b544dc6 Merge branch 'master' of https://github.com/FirestormViewer/phoenix-firestorm-202505 2025-08-06 18:26:27 +02:00
Andrey Kleshchev acc8928330
Merge release/2025.05 into develop 2025-08-06 14:17:18 +03:00
Angeldark Raymaker 743aca7ee4 FIRE-35686: Update BVH save state
- add optional unlock for mPelvis (for partial-pose BVH)
- add settings option for mPelvis BVH lock state
- T-pose now only BVH locks Body tab; face and hands are now BVH-unlocked by default
2025-08-04 22:20:35 +01:00
Andrey Lihatskiy 7255933d2a #3785 Set default `MediaFirstClickInteract` value to 31 (Landowner objects) 2025-08-02 13:22:30 +00:00
Ansariel debb86fb57 Merge branch 'develop' of https://github.com/secondlife/viewer
# Conflicts:
#	indra/cmake/CMakeLists.txt
#	indra/cmake/Discord.cmake
#	indra/newview/llappviewer.cpp
#	indra/newview/llfloaterpreference.cpp
#	indra/newview/llspeakers.cpp
#	indra/newview/skins/default/xui/en/panel_preferences_privacy.xml
2025-08-01 00:03:48 +02:00
Erik Kundiman afcc64cb07
Rich Presence support using Discord Social SDK (#4457)
* Rich Presence support using Discord Social SDK

Download DiscordSocialSdk-1.4.9649.zip from
https://discord.com/developers/applications/1394782217405862001/social-sdk/downloads
Add -DUSE_DISCORD:BOOL=ON to your cmake line.
The Discord app needs to be set to be a public client in the OAuth2 tab.
All Discord-related code are contained within one file, llstartup.cpp,
and other classes access it through some opaque layer, static functions,
otherwise we'd get these "duplicate symbol" linking errors.

* Move Discord-related code to llappviewer.cpp

The doFrame is the one called over and over again, so running the
Discord callbacks from there shouldn't have one extra function
overhead, while running the Discord initialisation is only once so
it's much more okay to have the extra function overhead there.

* panel_preferences_privacy tabs

Add tab and checkboxes for discord social SDK integration options to panel_preferences_privacy.xml

* Shorten Discord-related local variable names

* Connect to Discord now through privacy tab

Now the access token is saved the way passwords are saved, but
without a username, so we can have some persistence without having
to implement an OAuth2 backend server cause we would have to store
those tokens there anyway still, and it's just simpler to not go
that way. Discord Social SDK doesn't have a helper for sending code
to a custom server anyway, that we would have to have some
asynchronous HTTP requestor ready.
Show location check button gets enabled only when Discord
integration is enabled, though it's not functioning yet.

* Location for Discord Rich Presence Activity State

I was going to use LLAgentUI::buildLocationString but there's no
location format that shows only region and coords without having
to have the parcel name empty, so I copied buildLocationString
implementation in the case of LOCATION_FORMAT_NO_MATURITY but when
the parcel name is empty.
I had to make updateDiscordActivity check agent's ID and the
existence of agent avatar pointer first before trying to set
Activity Details or State, cause I like the "Show location" button
be checkable not only after online when both the ID & pointer will
have existed. I think this way is simpler than programmatically
enabling the "Show location" button after the user is logged in.
I put a trigger to Activity update somewhere after the user is
logged in for now, not yet after a TP.
The elapsed time gets reset whenever Activity is updated for now,
but I'll try to make elapsed time extended instead.
No Party for now, because I couldn't find a way to make a Party
shown without showing its CurrentSize (I could still get away not
showing its MaxSize by setting it to 0), so the State (location)
is shown above the elapsed time, not on the right of it.
I'll try to figure out to get some representative numbers for its
CurrentSize & MaxSize next.
Also no privacy on hiding the username for now, until the UI is
ready.

* Update Rich Presence location on region change

I had to find a spot in source code where it doesn't cause a crash
(it did in LLAgent::setRegion), but I'm not removing the one in
llstartup.cpp because on login, the one in llviewermessage.cpp
gets only the placeholder coords (10, 10, 10).

* Show display name too on Discord Rich Presence

Avatar name cache can be used right away upon login now after I
moved the update call to the end of PRECACHE section in llstartup.

* Show Discord Rich Presence Activity Party

By setting CurrentSize to the number of people within chat radius,
and MaxSize to the number of people within near range.

* Call updateDiscordActivity too in Discord init

so when the user enables the integration after being logged in,
the init can show the name and location right away.

* Discord Rich Presence: Hide name & connect to llappviewer.cpp

Add option to show/hide avatar name in privacy panel & connect rich presense directly to llappviewer.cpp

* Discord time elapsed not reset on region change

Time elapses right after viewer launch even before login.
Plus parameter name change in header to make it the same as in
implementation.

* Cache bool setting retrievals in updateDiscordActivity

As suggested by Andrey Kleschev.
getBOOL and getF32 are expensive, so using `static LLCachedControl<>`
is the way to do it in llappviewer.cpp.

* Check Discord creds existence before getting token

as suggested by Andrey Kleshchev, anticipating external factors
such as user moving settings from another PC.

* Tracy visibility for looped Discord function calls

As suggested by Andrey Kleshchev. They likely can get pricey so
they need to be visible in the profiler.

* Discord-related error handling/logging

plus delay saving Discord credentials to only after the access
token is successfully updated on Discord, and try to disconnect
from Discord when the integration gets disabled regardless whether
there are credentials to delete or not and whether there's an
access token to revoke or not.

* Use getAvatars already called for Discord Party numbers

so we don't have to make any extra getAvatars calls just for this,
as it's pricy in crowds, and we'll just be piggybacking
`updateSpeakerList` and `updateNearbyList`.

* Assemble Discord Activity Details only once

by saving it to a static global string for reuse.

* Remove updateDiscordActivity call in startup loop

The State field (region & coords) is updated well enough without it
now.

* Rename handleDiscordSocial to toggleDiscordIntegration

* Update Discord Activity only when integration is enabled

No need to check setting for the status change callback one,
because getting there would need to be connected to Discord first,
which in turn needs the integration to be enabled first.

---------

Co-authored-by: Secret Foxtail <remmy@megapahit.net>
2025-07-31 08:54:39 -07:00
Ansariel 66c16a3c77 Mark unused new settings 2025-07-30 10:56:03 +02:00
Ansariel a4e8af0dce Merge branch 'develop' of https://github.com/secondlife/viewer
# Conflicts:
#	.github/pull_request_template.md
#	CONTRIBUTING.md
#	indra/newview/CMakeLists.txt
#	indra/newview/app_settings/settings.xml
#	indra/newview/llappviewer.cpp
#	indra/newview/llfloaterimagepreview.cpp
#	indra/newview/llfloatersettingsdebug.cpp
#	indra/newview/llfloatersettingsdebug.h
#	indra/newview/llstatusbar.cpp
#	indra/newview/llstatusbar.h
#	indra/newview/res/viewerRes.rc
#	indra/newview/skins/default/xui/de/panel_login_first.xml
#	indra/newview/skins/default/xui/en/notifications.xml
#	indra/newview/skins/default/xui/en/panel_login_first.xml
#	indra/newview/skins/default/xui/en/panel_preferences_advanced.xml
#	indra/newview/skins/default/xui/en/panel_preferences_privacy.xml
#	indra/newview/skins/default/xui/en/panel_status_bar.xml
#	indra/newview/skins/default/xui/es/panel_login_first.xml
#	indra/newview/skins/default/xui/fr/panel_login_first.xml
#	indra/newview/skins/default/xui/it/panel_login_first.xml
#	indra/newview/skins/default/xui/ja/panel_login_first.xml
#	indra/newview/skins/default/xui/pl/panel_login_first.xml
#	indra/newview/skins/default/xui/pt/panel_login_first.xml
#	indra/newview/skins/default/xui/ru/panel_login_first.xml
#	indra/newview/skins/default/xui/tr/panel_login_first.xml
#	indra/newview/skins/default/xui/zh/panel_login_first.xml
#	indra/newview/viewer_manifest.py
2025-07-30 10:52:39 +02:00
Kyler Eastridge 38a6a4b1cd Fix spelling issue in settings.xml 2025-07-29 20:12:46 +03:00
Kyler Eastridge aae33e4ef2 It's a target, not a hint 2025-07-29 20:12:46 +03:00
Kyler Eastridge c7baab3926 This should be off by default 2025-07-29 20:12:46 +03:00
Kyler Eastridge 0a3c0222e6 Let's do 2m distance instead of 4m 2025-07-29 20:12:46 +03:00
Kyler Eastridge eb9c83cda3 Initial limit look at distance code 2025-07-29 20:12:46 +03:00
Kyler Eastridge 82477c484d Add ability to disable look at hints 2025-07-29 20:12:46 +03:00
Kyler Eastridge 87fa994ad0 Add option to disable selection hints 2025-07-29 20:12:46 +03:00
Andrey Kleshchev 792a38b68c #3705 Add an option to hide the $L balance 2025-07-29 18:05:34 +03:00
Ansariel f37e2785d5 Merge branch 'release/2025.05' of https://github.com/secondlife/viewer
# Conflicts:
#	indra/newview/skins/default/xui/en/panel_preferences_sound.xml
2025-07-27 12:54:37 +02:00
Darl 6ed9974775 Fix incorrectly calculated number in comment and where it was referenced 2025-07-26 14:02:22 +03:00
Darl c4204a9687 Media first click interact large number value fix 2025-07-26 14:02:22 +03:00
Jonathan "Geenz" Goodman af507ce246 Merge branch 'main' into release/2025.05 2025-07-25 18:05:53 -04:00
Angeldark Raymaker 3bd58efda2 FIRE-35686: Add icon to each bone for BVH export state
Also:
- correct an issue where Manip changes would not reset base rot, required for BVH
- always 'lock' mPelvis for BVH export
- Copy L/R and loads can now 'undo'
- removed two check-boxes for BVH: now tick-and go
2025-07-25 20:40:22 +01:00
Andrey Kleshchev f80d62e6b2 #3851 Increase cache size
Increases default to 8GB and maximum to 32GB.
Viewer now supports 2K textures which require more space, so altered
disk cache vs textures space a little.
Made spinner a bit wider to properly fit whole cache string.
2025-07-24 03:13:17 +03:00
Ansariel bfd99549b0 Merge branch 'release/2025.05' of https://github.com/secondlife/viewer
# Conflicts:
#	.github/pull_request_template.md
#	indra/llappearance/lltexlayer.cpp
#	indra/llcommon/llthread.cpp
#	indra/llprimitive/lldaeloader.cpp
#	indra/llprimitive/lldaeloader.h
#	indra/llprimitive/llmodel.cpp
#	indra/newview/CMakeLists.txt
#	indra/newview/VIEWER_VERSION.txt
#	indra/newview/app_settings/settings.xml
#	indra/newview/llmodelpreview.cpp
#	indra/newview/lltoolpie.cpp
#	indra/newview/skins/default/xui/en/floater_model_preview.xml
#	indra/newview/skins/default/xui/en/panel_preferences_sound.xml
2025-07-18 14:14:54 +02:00
Andrey Kleshchev 211b6c65fd #4337 Full Screen debug setting on MacOS results in a black screen 2025-07-16 23:41:54 +03:00
Ansariel a1ab22d153 Merge branch 'master' of https://github.com/FirestormViewer/phoenix-firestorm 2025-07-16 13:02:01 +02:00
TJ 7dfeb0f66d
Merge pull request #149 from FirestormViewer/improvement/drawdistance_vram_optimization_toggle
[FIRE-35748] Disable Draw Distance VRAM Optimization and add it as a toggle
2025-07-16 15:06:13 +10:00
Hecklezz 1b57def1aa Fixed Area search filters not saving and loading properly 2025-07-15 01:39:34 +10:00
Hecklezz 61b80877bf Refactored the name and description of the draw distance vram optimization feature 2025-07-14 23:20:28 +10:00
Hecklezz 8506efe35d Disable Draw Distance VRAM Optimisation by default and have it as an option under Graphics->Rendering preferences and Developer->Rendering menu 2025-07-13 05:57:44 +10:00
Ansariel 7d03d5af2a Merge branch 'master' of https://github.com/FirestormViewer/phoenix-firestorm 2025-07-09 22:50:15 +02:00
Ansariel 9c5944f4ce Merge branch 'master' of https://github.com/FirestormViewer/phoenix-firestorm 2025-07-07 19:11:59 +02:00
minerjr a67b753ff5 FIRE-35735 - Imposter/Impostor Avatar Exclusions
This change allows a user to keep using the imposter system, but protect Animesh avatars from not animating or having rendering issues. (Missing Attachments). This includes pets, control avatars, Animesh attachments, etc.

Added new setting FSImpostorAvatarExclude to control excluding Animated Mesh (Animesh) Avatars from using the Imposter rendering pipeline.

Setting is accessible in the Preferences -> Graphics -> Rendering in the misc. section labeled "Exclude Animesh Impostor Avatar".

There are four possible options:
None: Default, don't exclude any avatars.
User: Exclude only user avatars which have Animesh attached to them.
Control: Exclude only control avatars.
Both: Exclude both User Animesh avatars and control avatars.

There are rending issues as well as animation issues related to how the impostor system renders Animesh.

Updated LLVOAvatar.h to have new boolean flag tracking if the Avatar or any attachments are Animesh.

Added Enum to match the possible values stored in FSImpostorAvatarExclude .

Added checks to isVisuallyMuted, isTooComplex, isImpostor and shouldImpostor to prevent excluded Avatars from being added to the Impostor list.

Updated attachObject, updateAttachmentOverrides, detachObject to check if the Avatar or any of the attachments is an animated object and store in the mIsAnimesh flag.
2025-07-07 10:29:13 -03:00
Andrey Kleshchev ecf220f1b8 #4242 Debug dump improvement #2 2025-07-04 00:24:30 +03:00