Commit Graph

52297 Commits (ac5d59b9392dbd107ff6e8ac05ab8a3cd48fd694)

Author SHA1 Message Date
TommyTheTerrible ac5d59b939
calcDataSizeJ2C Adjust curve for more than 6 layers (#4018, #4020)
KDU is uploading 2k files with 7 and 8 layers which is shifting the location of discard 1 and 2.

To accommodate, this commit adds a max_layer check based on max_dimension and the MAX_BLOCK_SIZE to allow the extra layers for 2k.

Also shifted the starting size to the MIN_LAYER_SIZE instead of MAX_BLOCK_SIZE's area to allow smaller files to be decoded at discard 5 completely.

Finally able to walk around Fantasy Faire without any gray blobs!
2025-05-05 10:00:36 +03:00
Sekkmer 65d70a8d8f
Fix: ignore *pass-on* counters when detecting left-button grabs (#3990)
LLAgent::leftButtonGrabbed() must report TRUE only when an attachment has
**actually grabbed** the left mouse button (accept = TRUE, pass_on = FALSE), like every other ...Grabbed() function below it
2025-04-29 06:29:52 +03:00
Jonathan "Geenz" Goodman 281c7cf664
Merge pull request #3973 from Hecklezz/improvement/pbr_rpm_and_panel_fixes
[#3972] Implemented Texture Panel Repeats per meter improvements and PBR feature
2025-04-28 17:15:20 -04:00
Hecklezz 1c72cd7e9d Fix uploading small textures with OpenJPEG, and minor logging refactor. 2025-04-29 00:02:16 +03:00
Brad Linden 230244b7ea
Merge pull request #3984 from secondlife/brad/version-increments
Increment viewer version after 2024.05
2025-04-25 11:00:55 -07:00
Brad Linden 7f45eacaf0 Increment viewer version after 2024.05 2025-04-25 10:59:01 -07:00
Brad Linden d6699df8de Increment viewer version after 2025.04 2025-04-25 10:54:47 -07:00
Ansariel Hiller 10a324a103
Reduce cost of joint lookups by reducing string allocations via use of std::string_view and heterogeneous map lookups (#3970) 2025-04-25 20:52:38 +03:00
Brad Linden fb4925d96b Increment viewer version after 2025.03 2025-04-25 10:52:00 -07:00
Hecklezz 56ec95de29 Fix scale values not updating if they were focused and you used repeats per meter 2025-04-25 01:28:41 +10:00
Hecklezz 1970390478 Autofit Blinn Phong normal and specular when using repeats per meter 2025-04-24 23:46:42 +10:00
Hecklezz 3dc6c22401 Implemented PBR repeats per meter 2025-04-24 07:51:04 +10:00
Andrey Lihatskiy 3e5f4fd0c4
Merge pull request #3940 from Ansariel/devleop-picks-improvement
Restore option to change location of existing pick
2025-04-22 20:43:47 +03:00
Ansariel b81be8ed2e Performance improvements and cleanup in llviewerdisplay.cpp
# Conflicts:
#	indra/newview/llviewerdisplay.cpp
2025-04-18 23:44:31 +03:00
Ansariel Hiller ea96f7ac5e More constexpr improvements and cleanup of includes of a deleted header file 2025-04-18 23:23:10 +03:00
Ansariel 85b88f5682 Fix line endings of qatest.yaml 2025-04-18 23:18:32 +03:00
Ansariel Hiller 47015ed0b7 Fix memory leak in LLImageDimensionsInfo (#2679) 2025-04-18 23:10:40 +03:00
Ansariel Hiller 23bc14b4e4 Improve inventory finder floater performance: Don't parse XUI tree each frame (#2640) 2025-04-18 23:10:12 +03:00
Ansariel d6b8628a4f Reduce memory allocations pinging the mainloop timeout 2025-04-18 23:09:51 +03:00
Ansariel fb0332d8ff Merge branch 'devleop-picks-improvement' of https://github.com/Ansariel/viewer into devleop-picks-improvement 2025-04-18 21:18:09 +02:00
Andrey Lihatskiy 4cccf8af43 Restore missing 'override' 2025-04-18 20:36:28 +03:00
Ansariel Hiller b489134119 Restore option to change location of existing pick 2025-04-18 12:19:25 +02:00
Andrey Lihatskiy 8c5d144f99 Fix llhttpdate test on windows and macos (#3909) 2025-04-18 11:57:55 +03:00
Andrey Lihatskiy f029903cd9 Fix '1:angle_between' test failure 2025-04-18 11:57:55 +03:00
Jonathan "Geenz" Goodman c0ecfce26d
Merge pull request #3933 from Ansariel/develop-llui-improvements
Clean up LLUI and fix/add suggestions from VS
2025-04-17 20:09:55 -04:00
Jonathan "Geenz" Goodman 37bbc6faa1
Merge pull request #3932 from Ansariel/develop-snapshot-fixes
Snapshot fixes from archived develop branch
2025-04-17 20:07:29 -04:00
Jonathan "Geenz" Goodman 2fb0abbffb
Merge pull request #3930 from Ansariel/develop-chatentry-improvement
Restore currently entered text in chat entry textbox after going through history with Ctrl-PgUp/PgDown
2025-04-17 20:06:39 -04:00
Jonathan "Geenz" Goodman c73fbed91f
Merge pull request #3929 from Ansariel/develop-cmake-deprecation-warning
Remove obsolete cmake_minimum_required that is lower than the required version in the main CMakeLists.txt
2025-04-17 19:51:43 -04:00
Ansariel Hiller 9c3ce3dec7 Clean up LLUI and fix/add suggestions from VS (#2746)
# Conflicts:
#	indra/llui/lltextbase.h
#	indra/llui/lltexteditor.h
#	indra/llwindow/llwindowsdl.cpp
2025-04-18 01:45:11 +02:00
Ansariel 67d1838cc0 Force snapshot update when opening a snapshot panel and the resolution is "Current Window" to determine correct image size and upload cost 2025-04-18 01:37:16 +02:00
Ansariel 85cf1d7ebe Remove incorrectly calculated upload fee from snapshot options button based on previously selected snapshot type and not necessarily snapshot to inventory 2025-04-18 01:37:16 +02:00
Ansariel 0c380ebc08 Fix upload cost calculation for snapshots to inventory based on encoded image size and display upload cost to user 2025-04-18 01:37:15 +02:00
Ansariel 698a3017a0 Remove orphaned LLPanelOutfitSnapshotInventory
# Conflicts:
#	indra/newview/llpanelsnapshotinventory.cpp
2025-04-18 01:37:14 +02:00
Ansariel Hiller a7e84c918d Restore currently entered text in chat entry textbox after going through history with Ctrl-PgUp/PgDown (#2680) 2025-04-18 01:30:25 +02:00
Ansariel 922cc94ae6 Remove obsolete cmake_minimum_required that is lower than the required version in the main CMakeLists.txt 2025-04-18 00:58:33 +02:00
Andrey Lihatskiy c7ebde4ec9
Merge pull request #3927 from Ansariel/develop-math-improvements
Add a bunch of old and new math improvements
2025-04-17 23:35:44 +03:00
Ansariel 4c6afbbb75 Restore llmath improvements from archived develop branch:
* Make eligible functions constexpr
* Use constants for vector indices where applicable
* Reformat to match actual coding conventions
2025-04-17 19:50:30 +02:00
Ansariel 441c844ec8 Fix lerp issues on newer GCC versions 2025-04-17 18:55:08 +02:00
Ansariel d65de99052 Use standard library functions for llisnan and replace obvious NaN checks that don't work using /fp:fast floating point behavior under MSVC 2025-04-17 18:44:09 +02:00
Jonathan "Geenz" Goodman 293462d8ff
Merge pull request #3883 from williamweaver/fix/remove-duplicate-render-setting
Fix: Remove potentially redundant RenderAutoHideSurfaceAreaLimit sett…
2025-04-15 13:50:39 -04:00
Jonathan "Geenz" Goodman 822cc2a4ee
Merge pull request #3896 from williamweaver/fix/tonemap-hdr-blend
Refactor tonemap blending to preserve HDR detail during mix
2025-04-15 10:31:25 -04:00
Jonathan "Geenz" Goodman d19d44cc72
Merge pull request #3911 from secondlife/main
Merge 2025.03 release into develop.
2025-04-15 10:14:27 -04:00
Jonathan "Geenz" Goodman cf2b4dbfb2
Merge pull request #3706 from secondlife/release/2025.03
Release/2025.03
2025-04-15 09:50:42 -04:00
William Weaver c07817c3d2 Fix(Tonemap): Correct blend logic to preserve HDR detail
The blending operation for the `tonemap_mix` uniform in `postDeferredTonemap.glsl` incorrectly used a prematurely clamped color value as the source for the linear mix target. Specifically, the exposed HDR input color was clamped to the [0, 1] LDR range before being used in the `mix()` function when `tonemap_mix < 1.0`.

This premature clamping resulted in the loss of High Dynamic Range (HDR) detail in highlights during the blend operation. As `tonemap_mix` was reduced, instead of smoothly blending towards the linear scene representation, clipped highlights were incorrectly reintroduced.

This commit modifies the `toneMap` and `toneMapNoExposure` functions to correct this logic:
1.  The original linear input color is preserved before exposure/processing.
2.  The appropriate exposure factor is calculated and applied separately.
3.  The chosen tone mapping operator is applied to the exposed color, storing the result.
4.  The `mix()` function now correctly blends between the appropriately scaled, *unclamped* linear input color and the fully tone-mapped result.
5.  The final clamp to the [0, 1] LDR range is applied *after* the blend operation.

This change ensures that HDR information is preserved throughout the blending process, resulting in a smoother, more perceptually correct visual transition as `tonemap_mix` is adjusted. While the effect is nuanced, it is noticeable in bright highlights; with the legacy code, these highlights appeared visibly clipped and less intense during the blend, whereas the corrected code allows them to retain their peak brightness and detail more accurately. This makes the `tonemap_mix` control more intuitive, behaving as a true intensity blend for the tone mapping effect without introducing clipping artifacts. The computational cost is negligible.
2025-04-11 02:23:52 +03:00
Jonathan "Geenz" Goodman 42dc4501b5
Merge pull request #3853 from williamweaver/fix/cloud-texture-loading
Fix: Apply Cloud Texture Changes from Environment Settings Floater
2025-04-09 17:34:04 -04:00
Andrey Kleshchev 632a8648ca #3892 Crash at fillCompositionLogfont 2025-04-08 23:38:30 +03:00
Jonathan "Geenz" Goodman df1c018bed
Merge pull request #3891 from secondlife/geenz/25.03-feature-table-bump
Bump feature table version.
2025-04-08 13:59:40 -04:00
Jonathan "Geenz" Goodman 9f12c98f6f Bump feature table version. 2025-04-08 13:52:38 -04:00
Maxim Nikolenko 417e0c681e
#3745 fix for showing system notification on login #2 2025-04-08 11:02:26 +03:00
Andrey Kleshchev 75bf8577a1 #3884 Crash in kdu_core::kdu_params::get 2025-04-07 21:13:48 +03:00