329 Commits

Author SHA1 Message Date
sebastien hillaire
2b1bc19037 Substrate - fixed crashes when right clicking on a substrate node pin => "promote to parameter".
- Only ask for graph refreshing without reconstructing node.
- Also use the correct StrataEnable function

#rb none
[FYI] charles.derousiers

[CL 26053328 by sebastien hillaire in 5.3 branch]
2023-06-16 11:21:39 -04:00
charles derousiers
cc63eec190 Add Subsutrate topology previsualization on the Substrate node within material editor.
#rb none
[FYI] sebastien.hillaire

[CL 26035369 by charles derousiers in 5.3 branch]
2023-06-16 01:11:14 -04:00
massimo tristano
33e8cca80e Optimizations in Material translation code amounting to 50% speed up.
Optimized function UMaterialExpression::GetInputs() with highest exclusive run-time during material translation from 19.79% to 1.79% exclusive run time.

This change caches the inputs upon expression creation by default and return a TArrayView instead of always creating a new transient dynamic array. The optimization also simplifies code for some Expression types.

Also optimized ContainsInputLoopInternal() to use a linked list of stack allocated nodes instead of Pushing/Popping from a dynamic array.

#rb jason.nadro
#preflight 6478b849c26e3b2449ff8608

[CL 25735070 by massimo tristano in ue5-main branch]
2023-06-01 14:48:38 -04:00
massimo tristano
d11cc38546 [Backout] - CL25722170
[FYI] massimo.tristano
Original CL Desc
-----------------------------------------------------------------
Optimizations in Material translation code amounting to 50% speed up.

Optimized function UMaterialExpression::GetInputs() with highest exclusive run-time during material translation from 19.79% to 1.79% exclusive run time.

This change caches the inputs upon expression creation by default and return a TArrayView instead of always creating a new transient dynamic array. The optimization also simplifies code for some Expression types.

Also optimized ContainsInputLoopInternal() to use a linked list of stack allocated nodes instead of Pushing/Popping from a dynamic array.

#rb jason.nadro
#preflight 64776ef44a277ca8f0b9a538

[CL 25722294 by massimo tristano in ue5-main branch]
2023-06-01 05:50:43 -04:00
massimo tristano
fff9f2ef54 Optimizations in Material translation code amounting to 50% speed up.
Optimized function UMaterialExpression::GetInputs() with highest exclusive run-time during material translation from 19.79% to 1.79% exclusive run time.

This change caches the inputs upon expression creation by default and return a TArrayView instead of always creating a new transient dynamic array. The optimization also simplifies code for some Expression types.

Also optimized ContainsInputLoopInternal() to use a linked list of stack allocated nodes instead of Pushing/Popping from a dynamic array.

#rb jason.nadro
#preflight 64776ef44a277ca8f0b9a538

[CL 25722174 by massimo tristano in ue5-main branch]
2023-06-01 05:32:59 -04:00
Sebastien Hillaire
621f548c98 Substrate - Fixed some editor poping message due to bad bitfield macro.
#rb none
#preflight https://horde.devtools.epicgames.com/job/647709d62e6c1a0737ca9652

[CL 25699902 by Sebastien Hillaire in ue5-main branch]
2023-05-31 08:16:13 -04:00
wouter dek
9c6d2f0930 Add LWC function usage statistics to material translator
#preflight 646e5a891b241f07484f6bf6
#rb kevin.ortegren

[CL 25617338 by wouter dek in ue5-main branch]
2023-05-25 04:34:25 -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
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
sebastien hillaire
9662bc33d8 Move ResetLoaders wwhen duplicating material to a more correct place: UpdateOriginalMaterial, called when duplicating materials on apply, save or else.
Follow up to 25171370.

#rb Francis.Hurteau
#preflight https://horde.devtools.epicgames.com/job/6450dc6f1c2846595c92feec

[CL 25301476 by sebastien hillaire in ue5-main branch]
2023-05-02 10:32:39 -04:00
Sebastien Hillaire
0af535c3b0 Substrate
- deleted details output from message log
- material in Substrate HUD no display details
- Simplification button is next to the tick box.
- !! not using bitfield which seems to cause some weird bit shift sometimes. Reported !!

#rb none
#preflight https://horde.devtools.epicgames.com/job/644a18a80f12404fb7507280
#fyi dan.elksnitis, charles.derousiers

[CL 25211397 by Sebastien Hillaire in ue5-main branch]
2023-04-27 02:53:34 -04:00
Sebastien Hillaire
f95f61d42d MaterialEditor - Fixed LOCTEXT conflict
#rb none
#preflight none

[CL 25211185 by Sebastien Hillaire in ue5-main branch]
2023-04-27 01:38:44 -04:00
Sebastien Hillaire
12875a6491 Substrate - Editor HUD upgdate.
#preflight https://horde.devtools.epicgames.com/job/6448f21cf451a62211e8eef3
#rb none
#fyi charles.derousiers

[CL 25195523 by Sebastien Hillaire in ue5-main branch]
2023-04-26 06:16:31 -04:00
Florin Pascu
cd8651734e UX: Remove user-visible ES31 editor references and replace with Mobile
#jira UE-134173
#rb Jack.Porter
#preflight 6447ac2e641e2c3cb4227930

[CL 25178065 by Florin Pascu in ue5-main branch]
2023-04-25 07:05:08 -04:00
sebastien hillaire
9a93a465b8 Removed bad disable optimisation that stayed behind after some more debugging...
#prelfight none

[CL 25175534 by sebastien hillaire in ue5-main branch]
2023-04-24 23:30:00 -04:00
sebastien hillaire
4ce5ee6677 Fix for duplicated material applying multiple times data conversion after a duplicate when it is in fact not needed since it has been done on load already.
#rb Francis.Hurteau
#preflight https://horde.devtools.epicgames.com/job/6446de5d2804595a0448d0b5

[CL 25175528 by sebastien hillaire in ue5-main branch]
2023-04-24 23:29:40 -04:00
kirill zorin
a469aafd78 Update callsites to prepare for upcoming TArray/TArrayView<TObjectPtr<...>> restrictions
#rb zousar.shaker
#rb devin.doucette
#rb steve.robb
#rb robert.manuszewski
#rb saam.barati
#preflight 643f4c09a35280ed4f53ccb3

[CL 25100071 by kirill zorin in ue5-main branch]
2023-04-18 22:39:29 -04:00
jonathan bard
833d0005e4 Prevent all RVT from being invalidated when entering landscape mode just because we build a thumbnail material
#rb jeremy.moore
#preflight 6435a3e12909bc56c8e337ec

[CL 25018235 by jonathan bard in ue5-main branch]
2023-04-12 19:01:11 -04:00
graham wihlidal
e1db51128e Nanite (WIP) scalar displacement UX support in material editor.
#rb jason.nadro, arciel.rekman, brian.karis
#preflight 6435a2e7127980724bfb7e4e

[CL 24997884 by graham wihlidal in ue5-main branch]
2023-04-11 16:48:54 -04:00
Jon Cain
23d0cf3f93 Retain details of assigned texture and other params when converting between Texture Object and Texture Object Parameter material expression.
#rb Jason.Nadro
#jira UE-182284
#preflight 6435971a1f33a0b34accc2dc

[CL 24994170 by Jon Cain in ue5-main branch]
2023-04-11 13:40:36 -04:00
Sebastien Hillaire
5cbd073d3e Fixed Strata material preview on nodes to account for the sub strata tree from the previewed node only.
this fixed material function input / output, reroute nodes and everything in between that is not directly connected to FrontMaterial.

#rb none
#preflight https://horde.devtools.epicgames.com/job/642d61708f078cc703e628f2
#fyi charles.derousiers

[CL 24926071 by Sebastien Hillaire in ue5-main branch]
2023-04-05 08:13:43 -04:00
fpwong
0049e0ef6f PR #10158: Generate new Guid for material expressions after they are pasted (Contributed by fpwong)
#rb Jon.Cain
#preflight 641b1386a6092dfb8daceb95

[CL 24747858 by fpwong in ue5-main branch]
2023-03-22 10:58:01 -04: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
charles derousiers
0fad76c4d7 Rename all user/editor-facing Strata name into Substrate.
This CL address only user-facing part, i.e. Property field, view modes, tool tips, ...) mentioning Strata. All internal (host code, shaders code, CVars) still contains the 'Strata' name.

#rb sebastien.hillaire
#jira UE-175169
#preflight 63f4db68cf37615300e71db5
#lockdown juan.canada

[CL 24350396 by charles derousiers in ue5-main branch]
2023-02-21 16:52:23 -05:00
charles derousiers
5229394cfe Fix incorrect material appearance on raytracing material with Strata enabled
* Add adaptive RT material payload for Strata.
* Centralize all Strata settings in RenderCore/RenderUtils.h to ensure consistency

#rb chris.kulla
#jira none
#preflight 63d43bcff626715201a0ed1d
[FYI] sebastien.hillaire

[CL 23923301 by charles derousiers in ue5-main branch]
2023-01-31 01:12:18 -05:00