Commit Graph

148 Commits

Author SHA1 Message Date
Andrew Davidson
3ddc3a4da3 Merge up from //UE5/Dev-LargeWorldCoordinates
#rb none

[CL 16211417 by Andrew Davidson in ue5-main branch]
2021-05-05 15:07:25 -04:00
charles bloom
a5ee4d69bf remove duplicate Color::ComputeLuminance , use GetLuminance
also fix bug in ProxyLOD AverageColor , iterating on Size instead of 4

#rb none

[CL 16047335 by charles bloom in ue5-main branch]
2021-04-18 13:54:06 -04:00
charles bloom
6331ae849c remove MemStack constructor with unused int argument
#rb none
#fyi yuriy.odonnell

[CL 16047263 by charles bloom in ue5-main branch]
2021-04-18 13:06:22 -04:00
Matt Peters
10a3e11b48 #jira UE-110028
SplitTriangleList: Fix loop conditions to avoid off-by-one dereference of end of the list.
#rb Kriss.Gossart
#rnx

[CL 15802956 by Matt Peters in ue5-main branch]
2021-03-24 13:13:04 -04:00
Sebastien Lussier
d52aa4ee35 #jira UTA-694, UE-24337, UE-39611, UE-21840, UT-1713
kDOPTree - Fix lost precision in mean/variance computation when accumulating using a float
Would end up crashing with an OoB access as the code would put all triangles on the left of the splitting plane, which was not expected

Also optimized SplitTriangleList() to avoid going through the triangle list 6x...
#rb richard.malo

[CL 15388280 by Sebastien Lussier in ue5-main branch]
2021-02-11 12:01:01 -04:00
Andrew Davidson
9313e569b2 Double math ambiguity Engine further fixes
#rb trivial

[CL 14975276 by Andrew Davidson in ue5-main branch]
2021-01-04 11:19:23 -04:00
Marc Audy
ada7c144fa Merge //UE5/Release-Engine-Staging @14903491 to //UE5/Main
[CL 14906022 by Marc Audy in ue5-main branch]
2020-12-11 14:21:20 -04:00
christopher waters
4102ce0311 Removing unused d3d9 code from Lightmass
#jira none
#rb zach.bethel

[CL 14891025 by christopher waters in ue5-main branch]
2020-12-09 15:44:05 -04:00
Uriel Doyon
b9444f338f Added support for UVolumeTexture and UTexture2DArray streaming.
Texture 2D array streaming is implemented through FTexture2DArrayMipAllocator_Reallocate
Volume texture streaming is implemented through FVolumeTextureMipAllocator_Reallocate.
New generic stream out implementation in FTextureStreamOut.

Fixed different issues in FTexture2DMipDataProvider_IO relatively to optional bulks and IO errors.

Added UTexture::GetSurfaceDepth() for 3d textures.
Added UTexture::GetSurfaceArraySize() for array textures (where cubemaps return 6).

Moved UTexture2D::CancelPendingTextureStreaming() and UTexture2D::LevelIndex to UTexture.

Renamed UTexture2DArray::GetNumSlices() to UTexture2DArray::GetArraySize().

Fixed missing "virtual" keyword in base class UTextureMipDataProviderFactory.

Updated the texture editor UI so that it shows Texture2DArray array sizes and Texture3D depth.
Unified the UI for cubemaps so that it shows as an array with size 6.

Reimplemented "LODGroups" command to make it coherent with latest changes.

#rb jian.ru, danny.couture, matt.peters
#fyi mihnea.balta
#jira 	UE-97975, UE-81395, UE-102061, UE-84427

[CL 14832616 by Uriel Doyon in ue5-main branch]
2020-12-01 20:32:18 -04:00
zach bethel
984e70e61a Fix for lightmass assert in debug mode.
#rb none
#jira none
#rnx

[CL 14589909 by zach bethel in ue5-main branch]
2020-10-27 13:47:32 -04:00
Marc Audy
50a3d7d368 Merge Release-Engine-Staging to Main @ CL# 14467590
This represents UE4/Main @ 14432125 + some cherrypick fixes

[CL 14468207 by Marc Audy in ue5-main branch]
2020-10-09 22:42:26 -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
Marc Audy
11f5b21210 Merging //UE5/Release-Engine-Staging @ 13752110 to Main (//UE5/Main)
#rnx

[CL 13753156 by Marc Audy in ue5-main branch]
2020-06-23 18:40:00 -04:00
Arne Schober
ee6d0ecb20 M - More renameing the Octree to Octree2 in preparation to add a deprecation for the original class
#RB

[CL 12972489 by Arne Schober in Main branch]
2020-04-21 23:23:12 -04:00
Arne Schober
61bf307e6e M - Rename the Octree to Octree2 in preparation to add a deprecation for the original class
#RB

[CL 12965782 by Arne Schober in Main branch]
2020-04-21 20:01:52 -04:00
yujiang wang
88042f236e Fix Lightmass backface detection to also consider two sided materials
#rb none
#jira none

#ROBOMERGE-SOURCE: CL 12131786 in //UE4/Release-4.25/... via CL 12131816
#ROBOMERGE-BOT: RELEASE (Release-4.25Plus -> Main) (v659-12123632)

[CL 12140391 by yujiang wang in Main branch]
2020-03-11 17:10:19 -04:00
yujiang wang
a740a15017 Lightmass: revert the lighting cache sample radius change as it is causing entries in thin walls to leak outside due to their radius being larger than the thickness of the wall
#rb none
#jira none

#ROBOMERGE-SOURCE: CL 11938419 in //UE4/Release-4.25/... via CL 11938514
#ROBOMERGE-BOT: RELEASE (Release-4.25Plus -> Main) (v656-11643781)

[CL 11938594 by yujiang wang in Main branch]
2020-03-05 12:15:09 -05:00
JeanMichel Dignard
84facd6d15 Copy from dev-enterprise cl 11097196
#rb none
#rnx

[CL 11099277 by JeanMichel Dignard in Dev-Tools-Staging branch]
2020-01-23 16:28:59 -05:00
Ryan Durand
74c879d5f3 Updating copyrights for Engine Programs.
#rnx
#rb none
#jira none

#ROBOMERGE-OWNER: ryan.durand
#ROBOMERGE-AUTHOR: ryan.durand
#ROBOMERGE-SOURCE: CL 10869242 in //Fortnite/Release-12.00/... via CL 10869536
#ROBOMERGE-BOT: FORTNITE (Main -> Dev-EngineMerge) (v613-10869866)

[CL 10870960 by Ryan Durand in Main branch]
2019-12-26 23:06:02 -05:00
yujiang wang
acfd436b8b Account for texel size to avoid creating tiny irradiance cache entries and post-aliasing issues
#rb none
#jira UE-80036
#lockdown cristina.riveron

#ROBOMERGE-SOURCE: CL 10482502 in //UE4/Release-4.24/...
#ROBOMERGE-BOT: RELEASE (Release-4.24 -> Main) (v606-10482310)

[CL 10482504 by yujiang wang in Main branch]
2019-12-02 08:13:54 -05:00
yujiang wang
14c67a5c3d Improve dark corner mitigation by storing backfacing hits fraction inside irradiance cache records and marking texels as unmapped when their interpolated backfacing fraction > 0.5
#jira UE-80036
#rb none

#ROBOMERGE-SOURCE: CL 9763259 in //UE4/Release-4.24/...
#ROBOMERGE-BOT: RELEASE (Release-4.24 -> Main) (v545-9751379)

[CL 9763270 by yujiang wang in Main branch]
2019-10-23 16:26:50 -04:00
Marc Audy
9cafbed515 Remove unused code causing deprecation warning
#jira UE-81746
#rb
#rnx
#fyi Yujiang.Wang

[CL 9561193 by Marc Audy in Main branch]
2019-10-11 20:54:54 -04:00
Stefan Boberg
1f813eb516 Copying //UE4/Dev-Core to Main (//UE4/Main)
#rb many

[CL 9405827 by Stefan Boberg in Main branch]
2019-10-03 16:26:48 -04:00
Steve Robb
5ce580cbbb More UE_ARRAY_COUNT fixes.
#rb none
#jira none

[CL 9281326 by Steve Robb in Main branch]
2019-09-28 09:14:52 -04:00
steve robb
14cab21e0c Deprecating ARRAY_COUNT and changing it to UE_ARRAY_COUNT.
Replicated from CL# 7924370.

#rb none


#ROBOMERGE-OWNER: steve.robb
#ROBOMERGE-AUTHOR: steve.robb
#ROBOMERGE-SOURCE: CL 9279060 via CL 9279063
#ROBOMERGE-BOT: (v443-9013191)

[CL 9279836 by steve robb in Main branch]
2019-09-28 08:19:35 -04:00