Commit Graph

1529 Commits

Author SHA1 Message Date
Benn Gallagher
8757cb3641 Physics interface cleanup.
* Removed deprecated or dead code paths
* Simplified build system setup for physics support
* Deprecated build system flags and unsupported macros

#jira none
#rb Chris.Caulfield, Kriss.Gossart
#preflight 62963ec0fe779f23c8ea0c5e

[CL 20450744 by Benn Gallagher in ue5-main branch]
2022-06-01 06:59:18 -04:00
jonathan bard
400e9290b5 Sanitized suggested landscape layer info package name when creating a landscape layer info file associated with a layer name (which doesn't have the same restrictions that package names have)
#rb luc.eygasier
#jira UE-154106
#preflight 629516933f058e13b5ef0f4f

#ROBOMERGE-AUTHOR: jonathan.bard
#ROBOMERGE-SOURCE: CL 20432616 via CL 20432663 via CL 20432668
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v949-20362246)

[CL 20434170 by jonathan bard in ue5-main branch]
2022-05-31 01:21:48 -04:00
roey borsteinas
22dec5fa91 [Backout] - CL20432015
[FYI] roey.borsteinas
Original CL Desc
-----------------------------------------------------------------
Select the lowest required landscape LOD when rendering the water info texture to prevent massive overdraw of landscape quads

#rb jonathan.bard

#ROBOMERGE-AUTHOR: roey.borsteinas
#ROBOMERGE-SOURCE: CL 20431998 via CL 20432010 via CL 20432322
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v949-20362246)

[CL 20434153 by roey borsteinas in ue5-main branch]
2022-05-31 01:21:16 -04:00
roey borsteinas
ac62819c49 Select the lowest required landscape LOD when rendering the water info texture to prevent massive overdraw of landscape quads
#rb jonathan.bard

#ROBOMERGE-AUTHOR: roey.borsteinas
#ROBOMERGE-SOURCE: CL 20431998 via CL 20432010 via CL 20432015
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v949-20362246)

[CL 20434138 by roey borsteinas in ue5-main branch]
2022-05-31 01:20:54 -04:00
julien lheureux
3af7a02872 Added delegate for changes on landscape proxy.
Added some robustness/validation to the GetCompleteBounds call.

#rb jonathan.bard
#preflight 6294c4294c7bcac173ce31bd

[CL 20430596 by julien lheureux in ue5-main branch]
2022-05-30 09:34:41 -04:00
jeremy moore
51a19ec415 Expose landscape virtual texture pass type to blueprint setter
#preflight 62910ed8936293d61a81d737
[FYI] JeanSebastien.Guay

#ROBOMERGE-AUTHOR: jeremy.moore
#ROBOMERGE-SOURCE: CL 20396142 via CL 20396151 via CL 20396173
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v949-20362246)

[CL 20398801 by jeremy moore in ue5-main branch]
2022-05-27 16:52:23 -04:00
luc eygasier
31bba2a82d Fixes include warning
#preflight none
#rb trivial
#jira UE-155142

#ROBOMERGE-AUTHOR: luc.eygasier
#ROBOMERGE-SOURCE: CL 20395885 via CL 20395901 via CL 20395913 via CL 20395933
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v949-20362246)

[CL 20398763 by luc eygasier in ue5-main branch]
2022-05-27 16:51:38 -04:00
luc eygasier
a4580ce238 Adds default layer info object setting. Allowing to automatically create Layer Info by cloning the default object when creating a new landscape:
* Unifies the different places creating a Layer Info Object or accessing "sharedassets".
* Fixes UEFN not able to access created LayerInfo objects in the ContentBrowser
* Adds the ability to create Landscape Layer Info Object as a regular asset (ie: without the landscape editor). Needed for example to create a Default LandscapeLayerInfoObject

#preflight 628ff637911f194ea743c6f3
#rb Jonathan.Bard

#ROBOMERGE-AUTHOR: luc.eygasier
#ROBOMERGE-SOURCE: CL 20395352 via CL 20395370 via CL 20395392 via CL 20395403
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v949-20362246)

[CL 20398733 by luc eygasier in ue5-main branch]
2022-05-27 16:50:43 -04:00
semion piskarev
6f447394e9 Landscape: Adding landscape texture height patches, with support for internal and external texture source modes, additive and alpha blend modes, custom alpha, circle and rectangle falloffs, blueprint support, and initialization from existing landscape.
#rb Jonathan.Bard
#preflight 62906401d24a7fc585dfdb65

#ROBOMERGE-AUTHOR: semion.piskarev
#ROBOMERGE-SOURCE: CL 20390405 via CL 20390414 via CL 20390416
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v949-20362246)

[CL 20390583 by semion piskarev in ue5-main branch]
2022-05-27 02:36:27 -04:00
semion piskarev
d78f6490ed Submitting on behalf of Jonathan.Bard, see review 19835889
Landscape: added utility function to render the merged heightmap from anywhere in world space. This is done in 2 steps : render the heightmaps  of all landscape components overlapping with the requested region into an atlas texture (uncompressed) subsection by subsection, skipping the duplicated rows/columns. Then resample the atlas at the requested location.
If the render target is 8bits/channel, the resulting heightmap will be compressed on the R and G channels. If the target is 16 bits uint, the output will contain the uncompressed height value.
The function supports heightmaps with different minimum mip level and will use the best available mip level. However, currently the intermediate atlas render target is always allocated using the landscape's full resolution.
This is meant to be compatible with runtime but is not at the moment, because it relies on ULandscapeInfo members which are not editor-only but are not available at runtime (yet). This will be fixed later on.

#rb semion.piskarev
#preflight 629007c98c23e52ef0097189

#ROBOMERGE-AUTHOR: semion.piskarev
#ROBOMERGE-SOURCE: CL 20389454 via CL 20389469 via CL 20389478
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v949-20362246)

[CL 20390053 by semion piskarev in ue5-main branch]
2022-05-26 23:03:03 -04:00
patrick enfedaque
94c6af5840 New Landscapes will always have GridSize in their name
#rb richard.malo, jeanfrancois.dube
#preflight 628e3510eb57f851e2271607

#ROBOMERGE-AUTHOR: patrick.enfedaque
#ROBOMERGE-SOURCE: CL 20364116 via CL 20364141 via CL 20364179
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v949-20362246)

[CL 20366287 by patrick enfedaque in ue5-main branch]
2022-05-25 12:09:23 -04:00
patrick enfedaque
6e14bf225a Landscape:
- Allow changing bIsSpatiallyLoaded flag on ALandscapeStreamingProxy and ALandscapeSplineActor
- New flag in ALandscape used to set the bIsSpatiallyloaded flags on newly created AlandscapeStreamingProxy and ALandscapeSplineActor (bAreNewLandscapeActorsSpatiallyLoaded)

#rb richard.malo, jeanfrancois.dube
#preflight 628d1404b378b39d419041cf

#ROBOMERGE-AUTHOR: patrick.enfedaque
#ROBOMERGE-SOURCE: CL 20351658 via CL 20351677 via CL 20351695
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v948-20297126)

[CL 20353647 by patrick enfedaque in ue5-main branch]
2022-05-24 15:21:03 -04:00
JeanFrancois Dube
a2f7024803 Landscape: fix relative location mismatch detection.
#jira UE-153865
#rb patrick.enfedaque
#preflight none
#rnx

[CL 20351118 by JeanFrancois Dube in ue5-main branch]
2022-05-24 13:17:18 -04:00
Rolando Caloca
1d2beccda3 Deprecated ChaosVersionString for ChaosVersionGUID to avoid a memory allocation per DLL (Found during Insights trace analysis)
#rb Ian.Fox, Benn.Gallagher
#jira none
#preflight 628ced3bc22f607f305c54db

[CL 20348406 by Rolando Caloca in ue5-main branch]
2022-05-24 10:59:08 -04:00
dmitriy dyomin
35dc9373cd Fixed: Water surfaces are not aligned between seams across the map on Android
Use Landscape LOD1 for water texture capture. Inline bottom 5 LOD for landscape mesh, similar to texture based landscape which always has 64x64 mip available

#ROBOMERGE-AUTHOR: dmitriy.dyomin
#ROBOMERGE-SOURCE: CL 20339695 via CL 20339785 via CL 20339815 via CL 20340013 via CL 20340045
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v948-20297126)

[CL 20341634 by dmitriy dyomin in ue5-main branch]
2022-05-23 19:36:03 -04:00
luc eygasier
57e32c3377 Fixes compilation. Added forward declaration.
#rb Jonathan.Bard

#ROBOMERGE-AUTHOR: luc.eygasier
#ROBOMERGE-SOURCE: CL 20294286 via CL 20294295 via CL 20294737 via CL 20294854
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v948-20297126)

[CL 20305137 by luc eygasier in ue5-main branch]
2022-05-20 18:55:05 -04:00
luc eygasier
6923e981eb Adds Default Landscape Material to be used in LandscapeEditor when creating a new landscape
#preflight 6286aff4286cf1867a0ccf40
#rb Jonathan.Bard

#ROBOMERGE-AUTHOR: luc.eygasier
#ROBOMERGE-SOURCE: CL 20294036 via CL 20294043 via CL 20294053 via CL 20294056
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v948-20297126)

[CL 20305112 by luc eygasier in ue5-main branch]
2022-05-20 18:54:31 -04:00
zach bethel
c176b233da Renamed CopyTextureWithTransitions to TransitionAndCopyTexture.
#preflight 6287ddfe8828ea88c8701eea

[CL 20303093 by zach bethel in ue5-main branch]
2022-05-20 17:14:41 -04:00
jaco vandyk
4d43a91de2 UE-120740: Crash in async trace related to landscape data lifetime
Fix from UDN report

#rb Benn.Gallagher
#fyi Michael.Lentine
#jira UE-120740

#review-20260160 @Benn.Gallagher
#preflight 628776b78828ea88c84c217e

[CL 20292656 by jaco vandyk in ue5-main branch]
2022-05-20 07:22:46 -04:00
jonathan bard
64f30d41a2 Added support for non-square heightmaps in landscape edit layers local merge
#rb luc.eygasier
#jira UE-145722
#preflight 6284fb021f474f0660ecbf70

#ROBOMERGE-AUTHOR: jonathan.bard
#ROBOMERGE-SOURCE: CL 20281291 via CL 20282922 via CL 20283132
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20285715 by jonathan bard in ue5-main branch]
2022-05-19 15:37:35 -04:00
Jeremy Moore
56c1635428 Landscape fills in velocity in view relevance.
This allows it to write velocity when editor moving or when r.Velocity.ForceOutput is set.
#preflight 628668fc2b53e2be4cafd7b4

[CL 20282648 by Jeremy Moore in ue5-main branch]
2022-05-19 12:51:53 -04:00
jonathan bard
b6620fed9b Changed landscape edit layers streaming textures tracking to weak object pointers in order to avoid preventing worlds being dynamically unloaded (e.g. world composition) to hold references to internal landscape textures
#rb luc.eygasier
#jira UE-150092
#preflight 6283c1fb114e08fa2f20c011

[CL 20244624 by jonathan bard in ue5-main branch]
2022-05-17 11:56:30 -04:00
sebastien lussier
d9833695e0 FortSplineStreaming - Properly replicate Collision Profile Name from source splines to streamed splines
* Deprecated CollisionProfileName from ULandscapeSplineSegment & ULandscapeSplineControlPoint
#rb patrick.enfedaque, jeanfrancois.dube
#preflight 62832a2ef9510a3ac6f2a0b1

#ROBOMERGE-AUTHOR: sebastien.lussier
#ROBOMERGE-SOURCE: CL 20241083 via CL 20241087 via CL 20241091 via CL 20241095
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20242394 by sebastien lussier in ue5-main branch]
2022-05-17 10:22:02 -04:00
jonathan bard
62f566009a Fixed random crash ocurring in HLOD builder commandlet, where we're hashing landscape texture source data while potentially asynchronously building textures. UTexture2D::GetSizeX() / UTexture2D::GetSizeY() should be prevented in those cases, since unlike in the landscape editor, nothing ensures that FinishCachePlatformData() is called on those textures and the returned sizes end up being wrong / thread-unsafe.
Also fixed a couple of places where we were not using the FTextureSource's data (even though those calls should be fine since they happen in a place where texture compilation is done)

#rb paul.chipchase
#jira UE-150653
#preflight 62829ff6216d06861f3b7ca9

[CL 20239776 by jonathan bard in ue5-main branch]
2022-05-17 05:21:54 -04:00
luc eygasier
8f5e6ffb66 Adds Landscape resolution restriction when in Restricted Mode (example: UEFN), preventing to create landscape if the wanted resolution exceed currently supported safe limits.
Applied to:
* New Landscapes, new imported landscape
* Import Landscape tool
* Add component tool

#jira UE-149015
#preflight 627e98d97c26e247735ca7d1
#rb Michael.Balzer, Jonathan.Bard

#ROBOMERGE-AUTHOR: luc.eygasier
#ROBOMERGE-SOURCE: CL 20187875 via CL 20189504 via CL 20189506 via CL 20189507
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20191648 by luc eygasier in ue5-main branch]
2022-05-13 18:58:05 -04:00