436 Commits

Author SHA1 Message Date
jason hoerner
818d27257c UDN bug fix: UStaticMeshEditorSubsystem::SetLodScreenSizes should allow values greater than 1.0. Originally it was clamped to 1.0, as the user interface sliders were clamped at that, but it's possible and useful to numerically set them outside that range, and the automation command shouldn't disallow it.
#rb Jason.Nadro

[CL 26057490 by jason hoerner in 5.3 branch]
2023-06-16 12:40:47 -04:00
graham wihlidal
f44e4131c5 Changed Nanite::FResources member on static mesh render to an abstracted TPimplPtr<> to fully decouple NaniteResources.h from StaticMeshResources.h, avoiding costly full engine rebuilds whenever we iterate on Nanite, and provide us a mechanism going forward to move more of our API private.
#rb brian.karis, rune.stubbe
#fyi christopher.waters, juan.canada, yuriy.odonnell, henrik.karlsson
#preflight 6470360127390642751d5d60

[CL 25638055 by graham wihlidal in ue5-main branch]
2023-05-26 00:55:23 -04:00
kirill zorin
de8db5ff76 Converting ARO-facing raw pointers to TObjectPtr ahead of raw pointer ARO API deprecation.
#rb zousar.shaker
#rb markus.breyer
#rb robert.manuszewski

#preflight 646391406b1406b54ab15460

[CL 25489627 by kirill zorin in ue5-main branch]
2023-05-16 10:52:49 -04:00
bryan sefcik
d205101cc8 Removed unnecessary private include modules.
#preflight 645da640cf788a25581110bb

[CL 25451545 by bryan sefcik in ue5-main branch]
2023-05-12 12:13:52 -04:00
bryan sefcik
91c57d395e Removed redundant module includes.
#preflight 645d4bf3aa3c584c0b5b3a67

[CL 25435653 by bryan sefcik in ue5-main branch]
2023-05-11 16:48:21 -04:00
aditya ravichandran
31830290ab Asset Editors: Deprecate OnClose and RequestClose in favor of similar functions that take in a close reason
Fix a crash in some asset editors when you force deleted an asset with pending changes and hit "cancel" on the save dialog

#jira UE-107248
#preflight 64517c880e33f2d51d6e3adb

[CL 25321878 by aditya ravichandran in ue5-main branch]
2023-05-03 14:45:26 -04:00
Rune Stubbe
737c77422f Nanite support for explicit tangents
#jira UE-166732
#rb brian.karis
#fyi graham.wihlidal, jamie.hayes
#preflight 644f9d045403400548450480

[CL 25282711 by Rune Stubbe in ue5-main branch]
2023-05-01 07:48:12 -04:00
florin pascu
0f6d9d9b28 Use PerPlatformProperties properly when in preview
#jira UE-175594
#rb Jack.Porter
#preflight 6408854ec13b7130d2aa2d5b

[CL 24559190 by florin pascu in ue5-main branch]
2023-03-08 09:39:07 -05:00
tiago costa
99ce024d70 Keep all Nanite settings controls in Static Mesh Editor enabled when Nanite is force enabled on the mesh.
#rb graham.wihlidal
#preflight 6402363a5515f4f57be55253

[CL 24508793 by tiago costa in ue5-main branch]
2023-03-03 17:36:09 -05:00
kevin ortegren
4b4f0aa5eb Adding cvar to determine the default collapse mode of Nanite Settings in the details panel of the Static Mesh Editor Tool.
#rnx
#rb jason.stasik, sara.zokaei
#preflight 64009775ef1b24bf94ffe8a2
#test editor

[CL 24493640 by kevin ortegren in ue5-main branch]
2023-03-02 20:26:10 -05:00
Florin Pascu
106ea7508c Preparation changes for removing FeatureLevel from World
FeatureLevel is Deprecated
Add Setter/Getter for FeatureLevel
NextStep: Make GetFeatureLevel returns DDSPI::GetFeatureLevel, remove FeatureLevel memberfrom UWorld
#jira UE-168551
#rb christopher.waters
#preflight 63ff5e49f43e53f6811c86a4

[CL 24461796 by Florin Pascu in ue5-main branch]
2023-03-01 09:41:33 -05:00
tiago costa
71f30ec582 Update which Nanite controls are exposed for Static Meshes in UEFN.
- Context: Nanite support is automatically enabled on all meshes so want to expose quality controls and hide controls to enable/disable Nanite support.
- Expose Nanite quality settings in Static Mesh Editor.
- Hide Nanite menu in Content Browser / Static Mesh Actions.
- Hide option to enable Nanite in FBX import options.

#preflight 63fd3bd3f43e53f6812f8067
#rb aleksander.netzel

[CL 24437086 by tiago costa in ue5-main branch]
2023-02-27 21:08:22 -05:00
brian karis
d1901ae146 Added Nanite static mesh setting: Fallback target.
This is an enum to say which target to reduce to for the fallback. It makes the default "Auto" which gives us more ability to change the default heuristic without needing to change uproperty defaults.

Along with this added r.Nanite.Builder.FallbackTriangleThreshold. Any mesh with source triangle count less than this threshold uses the source triangles directly for the fallback.

#rb graham.wihlidal
#lockdown marc.audy

#preflight 63f0041b1d71bcd26225228c

[CL 24330590 by brian karis in ue5-main branch]
2023-02-20 18:59:18 -05:00
Rune Stubbe
ac1c83ce92 Added new "Root Geometry" visualization. (r.Nanite.Visualize RootGeometry).
Changed Nanite visualization mode values from bits to consecutive numbers.
Removed temporary debug cvars r.Nanite.Streaming.Debug.TrimLockRegion and r.Nanite.Streaming.Debug.PersistPageUploadBuffer

Streamer now updates of cluster leaf flags using a custom shader that preserves the other flags, so we can now support multipe cluster flags.
Moved streaming shaders to separate files.

Format updates:
-Leaf flag subdivided into 3 different flags.
--Root leaf: Clusters that are leaves when only the root data is loaded. Needed for RootData visualization.
--Streaming leaf: Clusters that are leaves with the current streaming cut. Previous leaf semantics.
--Full leaf: Clusters that are leaves when everything is fully streamed in. Useful for VSM cache invalidation heuristics.

-Added root group flag for identifying groups that are fully inside the streaming cut (needed for RootData visualization).
-Added hierarchy depth to pages. Useful for bounding number of passes for multipass culling.

#rb graham.wihlidal
#fyi brian.karis, jamie.hayes
#preflight 63f36aed81646f1f249f2c76

[CL 24312697 by Rune Stubbe in ue5-main branch]
2023-02-20 08:07:14 -05:00
graham wihlidal
70fd7c02c5 Refactored places fetching the result of NaniteSettings.bEnabled to instead get the value from UStatic::IsNaniteEnabled() so it correctly includes the force flag (except places using it to determine whether settings should be set).
#fyi brian.karis
#preflight trivial

[CL 24291376 by graham wihlidal in ue5-main branch]
2023-02-17 16:35:05 -05:00
dave belanger
41f6b2e3bd Expose StaticMesh LOD ScreenSize property (a detail customization row)
#rb none
#preflight skip

[CL 24215602 by dave belanger in ue5-main branch]
2023-02-14 13:02:53 -05:00
Rune Stubbe
ffb5c81aad Added normal/TangentZ precision controls for Nanite meshes
#rb graham.wihlidal
#fyi brian.karis, jamie.hayes
#jira https://jira.it.epicgames.com/browse/UE-167934
#preflight 63d12f69be435f17b4d5eb51

[CL 23846959 by Rune Stubbe in ue5-main branch]
2023-01-25 09:05:47 -05:00
Patrick Boutot
4f85955998 Remove unneeded test to GIntraFrameDebuggingGameThread.
#jira UE-103290
#rb lauren.barnes
#preflight 63c2d13302024f93d8806236

[CL 23728218 by Patrick Boutot in ue5-main branch]
2023-01-16 07:20:04 -05:00
christopher waters
0d5b23e2e3 Adding includes to prepare for a header dependency cleanup.
#preflight 63b5e0bfff7b9ad7030f0f81

[CL 23581920 by christopher waters in ue5-main branch]
2023-01-04 17:07:40 -05:00
christopher waters
7215f7d4ec Fully moving MaterialDomain to its own header.
#jira none
#preflight 639b4dc335203bc7aa695078

[CL 23531533 by christopher waters in ue5-main branch]
2022-12-15 16:01:51 -05:00
JeanMichel Dignard
5fc36285ba Fixed typos reported by localization
#jira UE-170395
#rb none
#preflight 63939b065c5308d18c4adbab

[CL 23468692 by JeanMichel Dignard in ue5-main branch]
2022-12-09 15:54:23 -05:00
alexis matte
4897d11583 Add Absolute criterion to staticmesh FMeshReductionSettings.
#rb brian.karis , jeanluc.corenthin , richard.talbotwatkin
#rnx
#preflight 638e35291776b8c21c32026b

[CL 23399365 by alexis matte in ue5-main branch]
2022-12-05 16:24:30 -05:00
Brian Karis
6bbf24f314 Static displacement
Displacement map array added to UStaticMesh Nanite settings.
UI is still a bit WIP

#rb graham.wihlidal
#preflight 638a9e83cb3b754183a01555

[CL 23381627 by Brian Karis in ue5-main branch]
2022-12-02 20:22:17 -05:00
alexis matte
bcd48fa510 The fbx import option "Build Nanite" should be hidden from the UI when doing a reimport or when showing import setting in the staticmesh editor detail panel. After the initial import the user should see only the staticmesh "Nanite settings -> Enable".
#rb jeanmichel.dignard
#rnx
#preflight 6362d4509160784fc32c589c

[CL 22959178 by alexis matte in ue5-main branch]
2022-11-03 14:24:00 -04:00
jason stasik
222aef911e Add RowTags for StaticMeshBuildSettings customization
#rb none

[CL 22876442 by jason stasik in ue5-main branch]
2022-10-31 21:23:20 -04:00