Commit Graph

36 Commits

Author SHA1 Message Date
brett miller
8efef822fc GeometryCollection -- include StaticMesh.h to correct non-Unity build
#jira UE-108988
#rb none

#ROBOMERGE-SOURCE: CL 15486066 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v771-15082668)

[CL 15486117 by brett miller in ue5-main branch]
2021-02-21 16:04:49 -04:00
brett miller
f095abd02a GeometryCollection -- Added EmbeddedGeometry: the ability for somulated bones to carry instanced geometry that doesn't contribute to simulation but tracks with evolving rigid body transformation.
#jira FROST-1089
#rb brice.criswell

#ROBOMERGE-SOURCE: CL 15448342 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v771-15082668)

[CL 15454441 by brett miller in ue5-main branch]
2021-02-18 13:20:03 -04:00
brett miller
5f5ac7c11c Fracture Tool -- Merging Geometry Collections and baking in scale is now possible via the New button in the Fracture Tool.
#jira FROST-706
#rb brice.criswell

#ROBOMERGE-SOURCE: CL 15372847 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v771-15082668)

[CL 15372862 by brett miller in ue5-main branch]
2021-02-09 20:08:13 -04:00
mark lintott
d252d894c4 #rb trivial
Fix for uninitialized DamageThreshold warning.

[CL 15355365 by mark lintott in ue5-main branch]
2021-02-08 05:25:21 -04:00
Brice Criswell
71bff90bf4 Chaos : Destruction
- Added Size Specific damage thresholds.

#rb none
#jira FROST-1044

[CL 15260032 by Brice Criswell in ue5-main branch]
2021-01-29 00:35:21 -04:00
brett miller
45a7c4fb36 GeometryCollection -- Asset now has properties for default clustering behaviour. The properties are written to the actor on placement.
#rb none
#jira FROST-977

[CL 15176238 by brett miller in ue5-main branch]
2021-01-25 00:53:27 -04:00
ionut matasaru
a90718a7fb Fixed usage of TRACE_CPUPROFILER_EVENT_SCOPE macro(s) in various places.
Common mistakes:

a) TRACE_CPUPROFILER_EVENT_SCOPE("Foo") or TRACE_CPUPROFILER_EVENT_SCOPE("FClass::Foo")
    --> results in a timer named "Foo" or "FClass::Foo" (the quotes will be included in the name)

b) TRACE_CPUPROFILER_EVENT_SCOPE(TEXT("Foo"))
    --> results in a timer named L"Foo" (L and quotes will be included in the name)

c) TRACE_CPUPROFILER_EVENT_SCOPE_TEXT(TEXT("Other Foo")) or TRACE_CPUPROFILER_EVENT_SCOPE_TEXT("Foo")
    --> Slow! It will use dynamic string matching that adds an unnecessary overhead.

Correct usage:
    TRACE_CPUPROFILER_EVENT_SCOPE(Foo)
    TRACE_CPUPROFILER_EVENT_SCOPE(FClass::Foo)
    TRACE_CPUPROFILER_EVENT_SCOPE_STR("Other Foo") // when timer name has spaces
    TRACE_CPUPROFILER_EVENT_SCOPE_TEXT(*Foo.ToString()) // only if a dynamic name is really needed

#rb Catalin.Dragoiu
#fyi Marc.Audy, Krzysztof.Narkowicz, Rune.Stubbe, Michal.Valient

[CL 15134822 by ionut matasaru in ue5-main branch]
2021-01-19 06:29:15 -04:00
graham wihlidal
ee8f378f7b Geometry collection assets created from one or more static meshes will have Nanite automatically enabled now, as long as at least one of the input meshes had Nanite enabled originally.
#rb trivial
#fyi brian.karis, rune.stubbe
#jira UE-104791

[CL 15028299 by graham wihlidal in ue5-main branch]
2021-01-08 20:00:52 -04:00
Rune Stubbe
dc5e9cb018 Nanite support for geometry collection
The Nanite builder now accepts a set of meshes that will be built into a single resource with a hierarchy root for each input mesh.
Updated runtime code to use this feature for Geometry collection.
Each GC now takes up just a single root page.
Changed geometry collection serialization so Nanite data is now transient similar to how it is transient in RenderData for StaticMesh.
Added bogus serialization functions for parsing and throwing away the old Nanite data, so we don't crash when parsing old files.

#rb brian.karis, graham.wihlidal

[CL 14828108 by Rune Stubbe in ue5-main branch]
2020-12-01 11:18:19 -04:00
Jon Nabozny
cf1d1c03c2 Fix initialization order issue in GeometryCollectionObject.
#fyi Brett.Miller
#rb None
#jira None

[CL 14794705 by Jon Nabozny in ue5-main branch]
2020-11-20 01:16:51 -04:00
brett miller
4359cae5c0 GeometryCollection -- Added Apply Changes button to trigger Simulation Data rebuild.
#rb none
#jira none
#fyi brice.criswell

[CL 14794036 by brett miller in ue5-main branch]
2020-11-19 22:01:51 -04:00
Rune Stubbe
df3e21a55f Fix for LZCompression crash when building multiple platforms at once
#rb graham.wihlidal

[CL 14684712 by Rune Stubbe in ue5-main branch]
2020-11-07 07:15:58 -04:00
graham wihlidal
0e876d9805 Fixed Nanite Geometry Collection crashes and incorrect rendering on cooked platforms.
#rb rune.stubbe
#fyi brian.karis, benn.gallagher, michael.lentine

[CL 14638967 by graham wihlidal in ue5-main branch]
2020-11-02 21:12:24 -04:00
Marc Audy
68150e0be7 Merge UE5/Release-Engine-Staging to UE5/Main @ 14611496
This represents UE4/Main @ 14594913

[CL 14612291 by Marc Audy in ue5-main branch]
2020-10-29 13:38:15 -04:00
Marc Audy
4c1bb11c29 Merge UE5/Release-Engine-Staging to UE5/Main @ 14548662
This represents UE4/Main @ 14525125 + cherrypicked fixes
#skipundocheck

[CL 14551026 by Marc Audy in ue5-main branch]
2020-10-22 19:19:16 -04:00
Rune Stubbe
aa79139e4e Fix for Geometry Collection not registering Nanite meshes with Nanite streamer when using Fracture tool
#jira UESP-3618
#rb graham.wihlidal

[CL 14500224 by Rune Stubbe in ue5-main branch]
2020-10-15 05:19:18 -04:00
Marcus Wassmer
3b81cf8201 Merging using //UE5/Main_to_//UE5/Release-Engine-Staging @14384769
autoresolved files
#rb none

[CL 14384911 by Marcus Wassmer in ue5-main branch]
2020-09-24 00:43:27 -04:00
Rune Stubbe
42a3b7c43f Enabled LZ4 compression of Nanite data on platforms that don't support LZ decompression in hardware.
Nanite always generates LZ compressed data. All platforms share the same DDC key. Platforms that support hardware LZ decompress during platform-specific serialization.
Added LZ hardware decompression to platform properties and target platform.


#fyi Brian.Karis
#rb Graham.Wihlidal

[CL 14277717 by Rune Stubbe in ue5-main branch]
2020-09-09 04:50:52 -04:00
graham wihlidal
431df3102b Refactor of Nanite GeometryCollection serialization code to avoid the need to do tagged property versioning when Nanite::FResources is altered. This behavior now matches how regular StaticMesh serialization is working for Nanite resource data.
#jira UESP-3364
#rb benn.gallagher, rune.stubbe
#fyi brian.karis, michael.lentine

[CL 14229143 by graham wihlidal in ue5-main branch]
2020-09-01 12:46:08 -04:00
Brian Karis
8ad4d4a7cd Fixed determinism in build.
Fixed tangents not being derived resulting in no welding for mip0 of Nanite
Ignore bHasColor from mesh desc and check if any non-white.
Misc clean up

#rb rune.stubbe

[CL 14223322 by Brian Karis in ue5-main branch]
2020-08-31 17:49:41 -04:00
Rune Stubbe
4ddc2aff3a Geometry collection:
-Fixed issue where Nanite data would disappear because of serialization issues.
-Fixed issue where Nanite data would be deserialized twice on load.
-Added assert to Nanite streaming to make sure RootPages are valid.

#rb Graham.Wihlidal

[CL 14212566 by Rune Stubbe in ue5-main branch]
2020-08-28 16:47:53 -04:00
graham wihlidal
c6add29e45 Fix Nanite geometry collection rendering when the translucent "selected geometry" materials get added automatically.
#rb none

[CL 13924823 by graham wihlidal in ue5-main branch]
2020-07-22 13:12:31 -04:00
graham wihlidal
1ca1e3c438 Cleaned up numerous hacks when build Nanite geometry from outside the static mesh builder. Further improvements can be made, but a good first step.
#rb none
#fyi brian.karis

[CL 13914585 by graham wihlidal in ue5-main branch]
2020-07-21 17:01:45 -04:00
graham wihlidal
6eecffcc08 Correctly support geometry collection clustering with Nanite. Also fixed proxy recreation when EnableNanite is toggled in the editor.
#rb none
#fyi benn.gallagher, michael.lentine

[CL 13912300 by graham wihlidal in ue5-main branch]
2020-07-21 15:17:07 -04:00
graham wihlidal
88224aa13c Fix material TSB conversion for Nanite geometry collection data.
#rb none

[CL 13861650 by graham wihlidal in ue5-main branch]
2020-07-15 05:35:35 -04:00