Commit Graph

196 Commits

Author SHA1 Message Date
jeremy moore
859e5d4b56 Fix for vulkan buffer/structured buffer mismatch.
Also touched shader code to ensure that it layout is updated.

[CL 32147235 by jeremy moore in ue5-main branch]
2024-03-10 10:49:01 -04:00
jack cai
a2365d2b9c [Deformer Graph] fix copy kernel dispatched later than the kernels that depends on it. Previously all copy kernels were dispatched at the end, which causes regression in some old asset
+ minor fix , delete function graph was not working

#jira UE-209333, UE-209334
#rb halfdan.ingvarsson

[CL 32136805 by jack cai in ue5-main branch]
2024-03-08 18:21:34 -05:00
jack cai
abca86549f [Skeletal mesh & Deformer Graph] fix streaming for half edge buffers
#rb Jeremy.Moore, Laura.Hermanns

[CL 32132497 by jack cai in ue5-main branch]
2024-03-08 16:51:26 -05:00
jack cai
5b40900da0 [Deformer Graph] Fix editor crash when clearing preview mesh while the transform manipulator is shown in the viewport
#jira UE-208882
#rb halfdan.ingvarsson

[CL 32039179 by jack cai in ue5-main branch]
2024-03-05 17:57:35 -05:00
jack cai
1cd9e9d65b [Deformer Graph] Make sure subgraphs within a function is also uneditable
#jira UE-208866
#rb halfdan.ingvarsson

[CL 32007059 by jack cai in ue5-main branch]
2024-03-04 19:57:13 -05:00
jack cai
20af11225c [Deformer Graph] fix extreme lag when changing value on a constant node
#jira UE-208822
#rb halfdan.ingvarsson

[CL 32003693 by jack cai in ue5-main branch]
2024-03-04 17:49:49 -05:00
jack cai
6cb3546e51 [Deformer Graph] fix an issue with the unique name generator not generating unique names.
#jira UE-208825
#rb halfdan.ingvarsson

[CL 32003630 by jack cai in ue5-main branch]
2024-03-04 17:48:12 -05:00
jeremy moore
8bc8e2dfa8 Fix incorrect buffer type crash when falling back to default empty buffer.
This caused an assert on Vulkan.
#rnx
#rb jeannoe.morissette

[CL 31959111 by jeremy moore in ue5-main branch]
2024-03-01 17:27:42 -05:00
jack cai
fb7564ccc9 [Deformer] Fix Graph deletion not working with undo system
+ minor fix for expand and collapse node actions to deal with subgraph nodes

#jira UE-206234, UE-208460
#rb halfdan.ingvarsson

[CL 31927530 by jack cai in ue5-main branch]
2024-02-29 18:03:24 -05:00
henry falconer
af8da4f1dd Adds a project setting, r.GPUSkin.AlwaysUseDeformerForUnlimitedBoneInfluences, that allows you to enable Unlimited Bone Influences in a project without compiling extra shader permutations for GPU skinning. This saves runtime memory, disk space and shader compilation time.
When the setting is enabled, any mesh LODs using Unlimited Bone Influences that don't have a deformer assigned will use the DeformerGraph plugin's default deformer. This ensures that UBI meshes are always rendered with a deformer, and therefore the GPU skinning permutations for UBI aren't needed.

This change also adds a per-LOD setting that allows users to disable mesh deformers on a LOD, which could be useful for controlling performance, e.g. disabling an expensive deformer on lower LODs. Some changes to functions on USkinnedMeshComponent lay the foundations for having different deformers on different LODs as well.

#rb Jeremy.Moore, daniele.vettorel

[CL 31869089 by henry falconer in ue5-main branch]
2024-02-28 08:11:31 -05:00
jack cai
ffd7575e8e [Deformer Graph] avoid crash when the debug skm switches to CPU skinning when enabling "Character -> Advanced -> Normals" in the viewport buttons.
#jira UE-188918
#rb halfdan.ingvarsson

[CL 31814489 by jack cai in ue5-main branch]
2024-02-26 15:24:46 -05:00
jack cai
142aa763af [Deformer Graph] fix copy paste subgraph node leads to a new subgraph node with missing graph
#jira UE-208059
#rb halfdan.ingvarsson

[CL 31790547 by jack cai in ue5-main branch]
2024-02-24 09:52:06 -05:00
jack cai
4f2fe6a7ae [Deformer Graph] Fixed shader compilation error when constant nodes using the same name but in different subgraph lead to function name collision in the generated shader code.
This fix makes sure every data interface function associated with a constant node also uses a unique index in its name. And uses a soft obj ptr instead of the value name to establish mapping from constant node to values in the graph data interface to avoid ambiguity

#jira UE-207777
#rb halfdan.ingvarsson

[CL 31739566 by jack cai in ue5-main branch]
2024-02-22 18:09:15 -05:00
jack cai
2093537bda [Deformer Graph] fixed a bug where private functions are not listed in the graph context menu
#jira UE-207804
#rb halfdan.ingvarsson

[CL 31736138 by jack cai in ue5-main branch]
2024-02-22 16:56:27 -05:00
jack cai
b4b4de7390 [Deformer Graph] Fix adding function node of a unload graph failing
#jira UE-207684
#rb halfdan.ingvarsson

[CL 31696197 by jack cai in ue5-main branch]
2024-02-21 15:59:47 -05:00
jack cai
3f8f604f67 [Deformer Graph] fix compilation error
[CL 31597139 by jack cai in ue5-main branch]
2024-02-16 22:58:14 -05:00
jack cai
da1eca8c03 [Deformer Graph] fix SubGraph node duplication not working
[CL 31597076 by jack cai in ue5-main branch]
2024-02-16 22:50:15 -05:00
jack cai
4021c7a37e [Deformer Graph] Only rebuild halfedge at runtime if the index buffer grants CPU access
#rb Jeremy.Moore

[CL 31577428 by jack cai in ue5-main branch]
2024-02-16 15:26:33 -05:00
jack cai
652602ef39 [Deformer Graph] Added support for expanding function node
[CL 31574521 by jack cai in ue5-main branch]
2024-02-16 14:23:53 -05:00
jack cai
cca4f5484d [Deformer Graph] added "ConvertToSubGraph"
also fix subgraph rename not refreshing nodes in the graph editor

[CL 31568196 by jack cai in ue5-main branch]
2024-02-16 11:46:13 -05:00
jack cai
e411a4b21c [Deformer Graph]: Basic support for creating public functions in deformer graph
#jira UE-206731
#rb halfdan.ingvarsson

[CL 31440725 by jack cai in ue5-main branch]
2024-02-13 14:42:11 -05:00
halfdan ingvarsson
0280d12396 Optimus: Remove dependency on private headers.
#jira UE-194022
#rnx

[CL 31414175 by halfdan ingvarsson in ue5-main branch]
2024-02-12 23:12:26 -05:00
charles derousiers
7b42080b22 Change ShaderPrint underlying buffer to use typed buffer in order to address SPIR-V translation issue on certain platforms.
#rb Krzysztof.Narkowicz

[CL 31263225 by charles derousiers in ue5-main branch]
2024-02-07 12:56:18 -05:00
jack cai
ac82edcaec [Deformer Graph] Marked vert attribute node as immutable and supports unified dispatch
#rnx

[CL 31107307 by jack cai in ue5-main branch]
2024-02-01 17:52:12 -05:00
jack cai
7240051ce2 [Deformer Graph] Added ability to collapse nodes to subgraph and expand a subgraph node
#jira UE-205171
#rb halfdan.ingvarsson

[CL 31070849 by jack cai in ue5-main branch]
2024-01-31 18:05:44 -05:00