Commit Graph

38 Commits

Author SHA1 Message Date
Daniel Wright
40f3bb2c62 Lightmass material properties are clamped to valid ranges before exporting, prevents light explosions with photon mapping
[CL 2313530 by Daniel Wright in Main branch]
2014-09-29 18:02:04 -04:00
Jaroslaw Palczynski
65ba5d456f TArray documentation and a coupld of methods deprecation.
Changes mostly in Array.h. The changes in other files are only renames for deprecated functions.

[CL 2312616 by Jaroslaw Palczynski in Main branch]
2014-09-29 04:23:44 -04:00
Daniel Wright
138434ac49 Fixed DiffuseColor input still being used when exporting translucent materials to lightmass
[CL 2311851 by Daniel Wright in Main branch]
2014-09-26 20:59:04 -04:00
Daniel Wright
1aa10889aa Lightmass kDOP preallocates less memory, supports Nodes array resize
* LandscapeMountains Lightmass usage went from 19Gb -> 10.5Gb

[CL 2306101 by Daniel Wright in Main branch]
2014-09-22 17:50:17 -04:00
Daniel Wright
f3e7791be0 Lightmass cached approximate lighting uses the normalmap, GI from low poly meshes with a baked normal map now matches the high poly
[CL 2291664 by Daniel Wright in Main branch]
2014-09-09 18:51:21 -04:00
Daniel Wright
fc5f3c10f6 New Rendering project setting 'bUseNormalMapsForStaticLighting'
* Disabled by default as it causes artifacts with detailed normal maps (when normal map features approach lightmap or material export resolution, some details get filtered out while others survive)

[CL 2291592 by Daniel Wright in Main branch]
2014-09-09 18:25:56 -04:00
Steve Robb
ee375abe53 LoadVector3* macros replaced with their componentwise equivalents from UnrealMathFPU.h to prevent GuardMalloc reports and/or page faults.
#codereview robert.manuszewski,gil.gribb,mike.troughton,michael.trepka

[CL 2280409 by Steve Robb in Main branch]
2014-09-01 08:48:53 -04:00
Daniel Wright
62fd3de470 Static meshes completely in shadow from a stationary light will toss their static shadowmap data and use a cheaper base pass permutation
[CL 2258307 by Daniel Wright in Main branch]
2014-08-15 16:15:20 -04:00
Daniel Wright
3e284792cc Fixed IndirectLightingSaturation not being applied to first bounce GI
[CL 2258305 by Daniel Wright in Main branch]
2014-08-15 16:14:56 -04:00
Lina Halper
e513ea2300 Named FMatrix/FTransform unsafe Inverse to InverseFast, and InverseSafe,InverseSlow to Inverse as people often use Inverse as default function.
- Inverse was one of the main reasons of crashes via lots of functions. Seems making default Inverse to be safer version seems better.

[CL 2255081 by Lina Halper in Main branch]
2014-08-13 15:29:41 -04:00
Gareth Martin
4d8ec2464c Fix lighting of landscapes with a negative x or y scale
[CL 2254539 by Gareth Martin in Main branch]
2014-08-13 09:48:15 -04:00
Daniel Wright
24367d0f3c Removed MaxTrianglesPerLeaf which was legacy
Restored Lightmass to parsing parameters passed on the commandline.  Mostly this fixes NumUnusedLightmassThreads to work again.
Changed -debug to -usedebug as it is a dangerous command, some projects have -debug on the commandline by default
Contains changes from PR #316

[CL 2253897 by Daniel Wright in Main branch]
2014-08-12 19:40:11 -04:00
Dmitry Rekman
72365c3ad9 Safe changes to Lightmass for Linux.
Part of PR #316.

#codereview Daniel.Wright

[CL 2252234 by Dmitry Rekman in Main branch]
2014-08-11 20:34:56 -04:00
Michael Trepka
4fb445c4e9 More fixes for Clang warnings
[CL 2244821 by Michael Trepka in Main branch]
2014-08-05 18:02:04 -04:00
Max Preussner
259dd3c351 Programs: NULL to nullptr
[CL 2239480 by Max Preussner in Main branch]
2014-08-01 02:40:54 -04:00
Marcus Wassmer
dfc7fdff68 Fix Rocket build.
#codereview gil.gribb

[CL 2226087 by Marcus Wassmer in Main branch]
2014-07-21 18:06:25 -04:00
Mikolaj Sieluzycki
f018e6e027 CIS build fix.
[CL 2219840 by Mikolaj Sieluzycki in Main branch]
2014-07-15 17:01:33 -04:00
Dmitry Rekman
dbdea559eb [Github] PR 242 (safe changes).
- Code cleanup and minor rearrangement (e.g. variable name changes).
- Additions.
- Case issues fixed.
- Minor fixes (init ordering).

[CL 2172690 by Dmitry Rekman in Main branch]
2014-07-08 00:06:17 -04:00
Daniel Wright
89bd266f25 Clamped static shadow depth map resolution on spotlights to be reasonable
* Allows building lighting in Infiltrator again which was generating a 23k x 23k shadowmap from a huge spotlight

[CL 2126742 by Daniel Wright in Main branch]
2014-07-02 21:15:35 -04:00
Brian Karis
05ad72683a Added tube light support to lightmass.
Includes pull request 142.

[CL 2123775 by Brian Karis in Main branch]
2014-07-01 15:46:05 -04:00
Robert Manuszewski
e6a88f66a4 UBT will no longer use ini file to get the list of plugins to compile for programs. Removed 'ScriptPlugins' ini setting (replaced with plugin category path).
[CL 2121693 by Robert Manuszewski in Main branch]
2014-06-30 06:19:02 -04:00
Daniel Wright
d0df86000a Static shadowing for translucency
* Each Stationary light gets a static shadow depth map generated by Lightmass, which is then used to shadow during translucent lighting volume injection

[CL 2118133 by Daniel Wright in Main branch]
2014-06-26 12:42:04 -04:00
Jaroslaw Palczynski
3a35a8dd0e Deprecate and remove checkAtCompileTime.
#ttp 337754
#codereview Robert.Manuszewski

[CL 2106862 by Jaroslaw Palczynski in Main branch]
2014-06-16 08:04:54 -04:00
Jaroslaw Palczynski
ebce413232 UE4 Refactoring. Changed OVERRIDE and FINAL macros to keywords override and final.
[CL 2104397 by Jaroslaw Palczynski in Main branch]
2014-06-13 06:14:46 -04:00
Max Preussner
3aece47882 Docs: Removed file comments and added missing code documentation
Please note that file comments had no purpose in nearly all cases and just added visual clutter. The two files that had meaningful file comments had their comments moved into the corresponding classes. There are still hundreds of file comments left in other files that will be removed over time.

Also cleaned up some random stuff along the way:
- relative paths to public headers within the same module are no longer necessary (automatically discovered by UBT now)
- header guards are deprecated, use #pragma once instead (all compilers support it now)
- space between multiple template brackets is no longer required (all compilers support >> now)
- NULL to nullptr, OVERRIDE to override
- spelling errors, whitespace, line breaks

[CL 2104067 by Max Preussner in Main branch]
2014-06-12 23:22:18 -04:00