Tomb Raider Forums  

Go Back   Tomb Raider Forums > Tomb Raider Level Editor and Modding > Tomb Raider Modding

Reply
 
Thread Tools
Old 28-06-17, 09:49   #511
nakamichi680
Member
 
nakamichi680's Avatar
 
Joined: Feb 2015
Posts: 874
Default

This is the function from the game:



The equation of the curve is:

f(x) = -ax^3 + 3bx^3 - 3cx^3 + dx^3 + 3ax^2 - 6bx^2 + 3cx^2 - 3ax + 3bx + a

where x stands for time (a value between 0 and 1).

The curve is described by four parameters:
a = position at first frame
d = position at last frame
b,c = curve control values

I've made an interactive graph of the curve: https://www.desmos.com/calculator/jzdoim1ckw

The problem I'm facing at the moment is that FBX file stores a and d values as keyframes but the shape of the curve is not calculated using b and c instead it uses the slope of the curve in a and d points.
To calculate the slope we need the first derivative of the functions, which is:

f'(x0) = -3ax^2 + 9bx^2 - 9cx^2 + 3dx^2 + 6ax - 12bx + 6cx - 3a + 3b

and then calculate the slope when x=0 and x=1. Unfortunately this isn't enough because there is one more step required to obtain the same value inside the FBX file (I've discovered that the number of frames is involved). Investigation continues...
nakamichi680 is offline   Reply With Quote
Old 29-06-17, 09:07   #512
FreakRaider
Member
 
FreakRaider's Avatar
 
Joined: May 2011
Posts: 3,816
Default

Quote:
Originally Posted by nakamichi680 View Post
Investigation continues...
Sherloc holmes
FreakRaider is offline   Reply With Quote
Old 02-07-17, 22:52   #513
nakamichi680
Member
 
nakamichi680's Avatar
 
Joined: Feb 2015
Posts: 874
Default

AoD Multipatcher release is approaching. Version 1.0 will include the following options:
1) Sunglasses
2) Subtitles
3) Kurtis farsee effect (if you have a better name for this fix, step up)
4) Debug mode without SCU (useful if you want to use both Texmod AND debug mode)
nakamichi680 is offline   Reply With Quote
Old 03-07-17, 06:16   #514
SLAYER
Member
 
SLAYER's Avatar
 
Joined: Jun 2006
Posts: 2,389
Default

Quote:
4) Debug mode without SCU (useful if you want to use both Texmod AND debug mode)
One thing less to worry about
SLAYER is online now   Reply With Quote
Old 03-07-17, 10:28   #515
Alex Fly
Inactive
 
Alex Fly's Avatar
 
Joined: Dec 2006
Posts: 31,967
Default

Quote:
Originally Posted by nakamichi680 View Post
AoD Multipatcher release is approaching. Version 1.0 will include the following options:
1) Sunglasses
2) Subtitles
3) Kurtis farsee effect (if you have a better name for this fix, step up)
4) Debug mode without SCU (useful if you want to use both Texmod AND debug mode)
OMG! Can't wait!
Alex Fly is offline   Reply With Quote
Old 04-07-17, 20:58   #516
nakamichi680
Member
 
nakamichi680's Avatar
 
Joined: Feb 2015
Posts: 874
Default

EXE Multi-Patcher uploaded. Go to The Angel of Darkness section, my definitive patch thread.
I've added more colors to the UI, I hope Alex Fly will appreciate this (and Slayer, don't kill me ).
nakamichi680 is offline   Reply With Quote
Old 05-07-17, 08:31   #517
SLAYER
Member
 
SLAYER's Avatar
 
Joined: Jun 2006
Posts: 2,389
Default

I absolutely love it! Love the icon too
SLAYER is online now   Reply With Quote
Old 05-07-17, 13:51   #518
Alex Fly
Inactive
 
Alex Fly's Avatar
 
Joined: Dec 2006
Posts: 31,967
Default

Loving the interface, the additions of other colors is a good idea too.
Alex Fly is offline   Reply With Quote
Old 07-07-17, 16:11   #519
Mokono
Member
 
Mokono's Avatar
 
Joined: Apr 2009
Posts: 8,922
Thumbs up

Fantastic work nakamichi680 !

I have updated the original post with a link to your thread and also to those which have sprung in my absence.

Thank you for keeping the AOD modding flame alive !
Mokono is offline   Reply With Quote
Old 09-07-17, 13:50   #520
nakamichi680
Member
 
nakamichi680's Avatar
 
Joined: Feb 2015
Posts: 874
Default

Quote:
Originally Posted by Mokono View Post
Fantastic work nakamichi680 !

I have updated the original post with a link to your thread and also to those which have sprung in my absence.

Thank you for keeping the AOD modding flame alive !
Thanks

I've just discovered how to remove dead bodies disappearance.
These two values control the disappearance timeout:
nakamichi680 is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 09:42.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Tomb Raider Forums is not owned or operated by CDE Entertainment Ltd.
Lara Croft and Tomb Raider are trademarks of CDE Entertainment Ltd.