Commit Graph

61 Commits

Author SHA1 Message Date
Zak Middleton
c1b300de77 #ue4 - FRandomStream.GetUnitVector() generates new sample if vector length is very small (improving precision and avoiding potential NaN).
[CL 2247803 by Zak Middleton in Main branch]
2014-08-07 19:39:50 -04:00
Lina Halper
e6b1f7feb3 294048 Add Support for exporting custom curves from DCC apps into UE4
[CL 2237422 by Lina Halper in Main branch]
2014-07-30 15:42:17 -04:00
Martin Mittring
b58ae4285d * added new shading model Subsurface_Profile, can specify SubsurfaceProfile asset on the material, create it in content browser
no backscattering yet, might replace Preintegrated and Subsurface shading models, can be optimized, postprocess pass only runs if an object on the screen is using it, uses SeparableSSS by Jorge Jimenez and Diego Gutierrez

[CL 2236313 by Martin Mittring in Main branch]
2014-07-29 17:33:28 -04:00
Ryan Gerleve
ccba746ce9 Fix Xbox compile
[CL 2235860 by Ryan Gerleve in Main branch]
2014-07-29 11:04:00 -04:00
Peter Sauerbrei
b2b827490f implementation of VectorGetComponent (CIS fix)
#ue4

[CL 2235777 by Peter Sauerbrei in Main branch]
2014-07-29 09:59:03 -04:00
Peter Sauerbrei
e49c7d7263 fix for Android build error with VectorGetComponent
#ue4
#android
#codreview olaf.piesche

[CL 2235283 by Peter Sauerbrei in Main branch]
2014-07-28 20:47:12 -04:00
Olaf Piesche
249495e8c7 Implementing stub VectorGetComponent for DX math to fix build breakage; actual implementation will follow
[CL 2235217 by Olaf Piesche in Main branch]
2014-07-28 19:26:51 -04:00
Chris Gagnon
3444d084ab Removed "InterpreteAsLinear", Deprecated FColor DrawColor and added FLinearColor LevelColor to replace it. Changed the underlying FColor's to FLinearColor in the rendering classes, cleaned up a bunch of color conversions.
#codereview matt.kuhlenschmidt

[CL 2235025 by Chris Gagnon in Main branch]
2014-07-28 17:16:21 -04:00
Olaf Piesche
f08837cca9 Fixing iOS build - VectorGetComponent was missing from UnrealMathNeon
#codereview: peter.sauerbrei

[CL 2234858 by Olaf Piesche in Main branch]
2014-07-28 15:35:47 -04:00
Jaroslaw Palczynski
d82f782140 [GitHub] 275 : FVector::ToDirectionAndLength not marked as const
TTP# 340773

[CL 2222070 by Jaroslaw Palczynski in Main branch]
2014-07-17 08:49:38 -04:00
Jaroslaw Palczynski
91512747b5 [GitHub] 279 : FMath::RInterpConstantTo, Essential Const Fix, Can't use FApp:GetDeltaTime() without it!
TTP# 341128

[CL 2222069 by Jaroslaw Palczynski in Main branch]
2014-07-17 08:49:24 -04:00
Nick Penwarden
de33a96244 CPU optimizations in the GPU particle simulation code.
1) Micro-optimizations when building the tile vertex buffer.
2) Added unsafe FP32 -> FP16 conversion that doesn't perform checks. This is now used when building a GPU particle vertex buffer because the inputs are known to be within [0,1].

Integrated from GitHub pull requests 102 and 122 by Pablo Zurita

[CL 2176157 by Nick Penwarden in Main branch]
2014-07-08 13:54:34 -04:00
Benn Gallagher
91f937cd77 CIS Fix - Fixed mismatched name between vectorized and non-vectorized FTransform for Android and HTML5
[CL 2176021 by Benn Gallagher in Main branch]
2014-07-08 12:09:11 -04:00
Nick Darnell
4802564a81 Math - Adding some additional utility methods spelled out in the Vector2D class. (Distance, Cross Product)
[CL 2115546 by Nick Darnell in Main branch]
2014-06-24 14:07:17 -04:00
Steve Robb
544bd99d24 TBigInt fixes.
Originated from here: https://answers.unrealengine.com/questions/57349/tbigint-has-issues-shifting-by-multiples-of-32-bit.html

#add Added some tests for multiple-of-32-bits shifts.
#add Added compile-time NumWords constant for everywhere that was duplicating the same calculation.
#change Changed the IsEqual function to be less weird.
#fix Implemented a rotating implementation for shifts of exactly a multiple of the word bits.
#fix ToString was writing out incorrectly for zeroes in the lower-order words.

#codereview robert.manuszewski

[CL 2113862 by Steve Robb in Main branch]
2014-06-23 06:37:01 -04:00
Richard TalbotWatkin
24345aa70c Improvements to SplineComponent, and added a new way of handling UI Command Lists.
#add Added a new FUICommandList::ProcessCommandBindings overload, which can be called from a Viewport Client's InputKey() method (in the absence of an FKeyboardEvent object).
#add Fixed key binding handling in SplineComponentVisualizer so that it works through the FUICommandList, instead of being hardcoded.
#change USplineComponent - changed method by which spline reparam table is created (now uses the old method of splitting each segment into a fixed number of steps, instead of using fixed arc length reparameterization, which doesn't lead to such good results where the distance between control points varies largely throughout the spline).  The ReparamStepsPerSegment parameter remains, although I'd like to remove it when I can hit upon a better way to adaptively step through the spline.  Merged UpdateSplineReparamTable and AutoSetTangents into a single UpdateSpline method.
#add Added a parameter to FInterpCurve::AutoSetTangents - bStationaryEndpoints - which determines whether the endpoints should be assigned zero tangents, or whether the tangents should be set in order to extrapolate the curve beyond the endpoints, essentially providing a constant velocity at the start/end.
#add Added bStationaryEndpoints as an editable parameter to USplineComponent.  Use this if you only wish to traverse the spline at constant velocity, as it will lead to more accurate results.
#codereview James.Golding, Michael.Noland

[CL 2112073 by Richard TalbotWatkin in Main branch]
2014-06-20 14:38:07 -04:00
Michael Noland
5f738dc130 Core: Made FBox2D Min and Max public to match how FBox works
[CL 2111277 by Michael Noland in Main branch]
2014-06-19 22:48:24 -04:00
Thomas Sarkanen
bce8623387 Added FRotator as new BT blackboard type
Added explicit constructor for FRotator which takes a single float
Added FAISystem::IsValidRotation
Added BlackboardKeyType_Rotator
Allow to filter by FRotator in FBlackboardKeySelector
Added Get/Set rotator functions in BlackboardComponent
Fixed typo
Updated BlackBoardComponent to check type of the key in the functions which take the keyid and not the FName

GitHub pull request #227
https://github.com/EpicGames/UnrealEngine/pull/227

reviewed by Lukasz.Furman

[CL 2108992 by Thomas Sarkanen in Main branch]
2014-06-18 04:24:50 -04:00
Josh Adams
b552e2d883 Urban->Main
#codereview jeff.campeau,nick.penwarden,rolando.caloca

[CL 2108642 by Josh Adams in Main branch]
2014-06-17 18:27:26 -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
Michael Noland
cf0137df75 Core: Fix crash when using EvalSecondDerivative near the last point on the curve
[CL 2102701 by Michael Noland in Main branch]
2014-06-12 00:11:46 -04:00
Laurent Delayen
cb09346ee6 Relaxed check in FMatrix::Inverse() to a non fatal ensure, since it's non fatal in shipping and test builds.
#codereview peter.knepley

[CL 2098587 by Laurent Delayen in Main branch]
2014-06-09 11:10:12 -04:00
Laurent Delayen
33148c6c29 Fixed FQuat::IsNormalized() not using same threshold as FTransformVectorized::IsRotationNormalized()
Also aligned normalization threshold value w/ PhysX, so we speak the same language.
Normalize LocalAtoms and SpaceBases transforms before they leave the internals of the animation system. Repetitive concatenation introduces errors (long bone chains transformed from local to world space). We don't want to pass that to PhysX, gameplay, etc.
Made vector and quaternion normalization thresholds explicit defines, so we can better manage them and make sure different code paths don't get out of sync.

#codereview lina.halper

[CL 2097705 by Laurent Delayen in Main branch]
2014-06-06 19:31:14 -04:00
Laurent Delayen
06cc2aef62 Back out changelist 2087101. That wasn't very useful, we're going to do this differently.
[CL 2097672 by Laurent Delayen in Main branch]
2014-06-06 19:01:09 -04:00
Max Preussner
fe790391c8 Core: Documentation and formatting cleanup pass on commonly used types
[CL 2095323 by Max Preussner in Main branch]
2014-06-04 23:09:04 -04:00