Commit graph

28 commits

Author SHA1 Message Date
Anatoly
827416f887
Meshswap refactor (#828)
* Work
* Fix TestMeshSwapFlags
* Rename callbacks
* Revert unrelated changes
* Update items.h
2022-11-11 14:47:20 +02:00
Sezz
6e0f144063 Use references 2022-10-09 23:25:48 +11:00
Sezz
389653f361 Merge branch 'master' into math 2022-10-01 19:20:54 +10:00
Sezz
720a8ac0fc Cleanup 2022-10-01 17:05:31 +10:00
Sezz
f51ec579b8 Use regular GetJointPosition() for Lara 2022-09-18 12:55:36 +10:00
Sezz
4d7bb256ba Use EulerAngles' ToQuaternion() and ToRotationMatrix() methods 2022-09-11 22:43:40 +10:00
Sezz
59014fcb77 Add methods to EulerAngles 2022-09-09 23:51:28 +10:00
Sezz
aa99fab70b Update GetJointAbsPosition() 2022-09-09 16:33:30 +10:00
Sezz
004e9d1651 Use reference instead of pointer 2022-09-08 18:08:48 +10:00
Sezz
f988e7c160 Organise joint position getters 2022-08-30 21:47:03 +10:00
hispidence
570759de0d Merge remote-tracking branch 'origin/ten_beta' into lua_funcs 2022-08-04 20:46:33 +01:00
hispidence
be4b98dc41 Merge branch 'ten_beta' into lua_funcs 2022-08-01 19:33:19 +01:00
Lwmte
b449f27b6e Remove UpdateEffects as it is updated on CollectEffects anyway 2022-07-31 01:21:01 +03:00
Lwmte
ea69f610fa Don't add same renderer objects on frameskip, fix room light collection 2022-07-24 16:28:52 +03:00
Lwmte
bc84a110b2 Implement clipping by draw distance 2022-07-18 21:56:11 +03:00
Lwmte
13c198fecc Merge branch 'ten_beta' into unified_mesh_shader 2022-07-14 21:22:56 +03:00
Lwmte
a7aafb891e Actually use LevelFarView 2022-07-12 18:30:27 +03:00
Lwmte
d2f5d57159 Use moveables shader for statics as well 2022-07-11 22:27:57 +03:00
Lwmte
89ee7dd0fe Add GetJointPosition method for moveables 2022-07-06 09:42:39 +03:00
Lwmte
562ecb477f Renderer cleanup and fixes (#579)
* Squashed commit of the following:

commit 3e8764439bd3ecea404b34fe38099dc3744fcaec
Merge: 2267b9663 264623a32
Author: Lwmte <3331699+Lwmte@users.noreply.github.com>
Date:   Fri Jul 1 23:58:04 2022 +0300

    Merge branch 'renderer_cleanup' into demagic_cbuffer_bindings

commit 2267b96636c0707a9be78703de758562bf4cb73c
Author: Lwmte <3331699+Lwmte@users.noreply.github.com>
Date:   Fri Jul 1 23:52:28 2022 +0300

    Use helper method everywhere to bind constant buffers

commit 3fe25d683ed307cd4faa63c37022783b1adae05f
Author: Lwmte <3331699+Lwmte@users.noreply.github.com>
Date:   Thu Jun 30 02:54:01 2022 +0300

    More cleanup

commit 54d7e16bdc6528192cda04d38b3884c04d663d42
Author: Lwmte <3331699+Lwmte@users.noreply.github.com>
Date:   Thu Jun 30 02:46:41 2022 +0300

    Clean up unused functions from renderer, move UW dust from renderer

* Fix merge error

* Fix velocity formulas for weather particles

* Remove unused variable

* Fix dust particle calculation formula

* Rename trmath functions to have consistent case

* Fix rain/snow falling too slow
2022-07-04 17:46:30 +03:00
Lwmte
aded24fa10 Vehicles cleanup before impacts were broken (#575)
* Enhance big gun rotation; vehicle cleanup

* Determine defaults for vehicle info members; keep camera elevation aligned with line of sight on big gun

* Organise constants

* Fix jeep/bike floor tilts

* Unify vehicle height calcs, fix bridges for vehicles

* Fix water vehicles

* Fix typo

* Introduce unified vehicle mounting mechanism and use it for the skidoo

* Ensure vehicle mounting occurs from correct side; modify skidoo and speedboat control inputs

* Update VehicleHelpers.cpp

* Fix kayak

* Standardise vehicle inputs

* Update vehicle acceleration input

* Make vehicle inputs constants

* Rename Airborne to IsAirborne

* Move generic vehicle functions to VehicleHelpers.cpp

* Also move constants

* Remove inaccurate vehicle mount condition

* Move vehicle constants to header; redo quad bike input replacement (further adjustment required)

* Establish vehicle mount constants for later; convert vehicle macros to constants

* Add condition to level start mount

* Organise and demagic some vehicle constants

* More cleanup and demagicking of vehicle constants

* Demagic and simplify UPV garbage

* Organise UPV angle macros and constants to make sense

* Organise a little more

* Final cleanup of UPV constants

* Add temporary vehicle velocity scale constant for easier removal later; demagic rubber boat velocity and turn rate values

* Cleanup, demagicking

* Cleanup

* Organisation

* Prototype vehicle turn rate modulation with skidoo and UPV

* Tentatively simplify UPV turn rate deceleration

* Fix UPV turning

* Tweak UPV turn rate macros

* Tweak UPV turn rate macros

* Complete vehicle mount function

* Use new vehicle mount function with quad bike

* Use new vehicle mount function with motorbike

* Add oneshot check to GetVehicleMountType()

* Prepare mechanism to allow starting a level already mounted on any vehicle

* Fix typo

* Cleanup and organisation

* Remove use of Lara global

* Use new vehicle mount function with minecart

* Fix spike deaths on vehicles

* Use new vehicle mount function with jeep

* Assess 2D distance for vehicle mounts instead of 3D for better fidelity around steps

* Cleanup

* Use new vehicle mount function with speedboat

* Fix mounts on boats

* Use new vehicle mount function with rubber boat

* Use new vehicle mount function with kayak

* Cleanup

* Use new mount function with UPV

* Fix motorbike nitro and remove useless flag checks

* Fix bike nitro, rotate wheels for vehicles

* Fix ItemPushStatic not to corrupt non-Lara items room number

* Remove unneeded clamps

* Fix typo

* Jeep: comply to tomb4 decompilation order

* Uncomment drift code for jeep, rename unknown2 to Gear

* Fix flag meanings

* Further backport of jeep from tomb4 project

* Use JeepBrakeLightJoints

* Update jeep.cpp

* Fix vehicle static collisions

* Add disabled option to insert nitro into motorbike

* Simplify UPV collision check

* Update comment

* Make vehicle function parameter ordering consistent

* Rotate UPV rudders when turning the vehicle

* Lean UPV when turning

* Simplify condition

* Simplify skidoo turn rate modulation

* Fix UPV turbine rotation

* Fix merge error

* Tentatively invert turning when moving in reverse on skidoo

* Add function to discard flares on vehicles to avoid copy-paste

* Add big reminder comment for savegames

* Fix another "epic" typo by me, convert enum hex values to shifts

* lara_struct.h cleanup

* UPV cleanup

* #include cleanup in vehicle headers

* Also brake quadbike with brake button

Co-authored-by: Sezz <seb.zych@outlook.com>
2022-07-02 21:12:40 +03:00
Raildex
84f93608bb Cubemap shadow (#558)
* Cubemap shadow WIP
* Fade out Point Light Shadow
* Fixed SpotLight Direction and Angle

Added Fadeout at the edges of Spot Light Cone

* Using Light.Out for Spot Light Projection Matrix
* Added Experimental Blob Shadows
* Fixed Crash with too many blob shadows.

Now using the 16 nearest spheres

* Remove long unused UNIT_SHADOW
* Fix merge
* Check cast shadows flag for dynamic shadows generation
* Make shadow spheres count customizable, add "shadows: all" setting
* Fix headers
* Fix copypaste error
* Fix shader compiling
* Format code, make subfunction for blobs rendering

Co-authored-by: Raildex <n@a>
Co-authored-by: Lwmte <3331699+Lwmte@users.noreply.github.com>
2022-06-29 17:54:48 +03:00
Sezz
e30eba578f Remove some instances of Lara global usage in motorbike.cpp; cleanup 2022-06-16 23:44:16 +10:00
Sezz
4b381fa048 Begin tr4_motorbike.cpp cleanup 2022-06-16 21:22:21 +10:00
Lwmte
1e4c686c3c Motorbike fixes 2022-06-16 03:29:33 +03:00
Lwmte
ba8adbf75d Rotate minecart wheels 2022-06-16 01:53:11 +03:00
hispidence
179848dfce Fix includes.
(cherry picked from commit 7095978be330604dfffa7b271663c9e5a85978b2)
2022-05-12 21:15:43 +01:00
MontyTRC89
f1e7c6fbfc All files under the same project; Renamed TR5Main to TombEngine; Cleaned repository; 2022-05-08 06:52:04 +02:00
Renamed from TR5Main/Renderer/Renderer11Helper.cpp (Browse further)