www.tombraiderforums.com  

Go Back   www.tombraiderforums.com > Tomb Raider Modding > Tomb Raider Modding

Reply
 
Thread Tools
Old 28-06-17, 09:49   #511
nakamichi680
Explorer
 
nakamichi680's Avatar
 
Join Date: Feb 2015
Location: Italy
Posts: 842
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 online now   Reply With Quote
Old 29-06-17, 09:07   #512
FreakRaider
Professor
 
FreakRaider's Avatar
 
Join Date: May 2011
Location: Austria
Posts: 3,519
Default

Quote:
Originally Posted by nakamichi680 View Post
Investigation continues...
Sherloc holmes
__________________
hi demi
FreakRaider is offline   Reply With Quote
Old 02-07-17, 22:52   #513
nakamichi680
Explorer
 
nakamichi680's Avatar
 
Join Date: Feb 2015
Location: Italy
Posts: 842
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 online now   Reply With Quote
Old 03-07-17, 06:16   #514
SLAYER
Archaeologist
 
SLAYER's Avatar
 
Join Date: Jun 2006
Location: Jordan
Posts: 2,158
Default

Quote:
4) Debug mode without SCU (useful if you want to use both Texmod AND debug mode)
One thing less to worry about
__________________
Right now, I'm losing patience
SLAYER is offline   Reply With Quote
Old 03-07-17, 10:28   #515
Alex Fly
Junior Member
 
Alex Fly's Avatar
 
Join Date: Dec 2006
Location: France
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
Explorer
 
nakamichi680's Avatar
 
Join Date: Feb 2015
Location: Italy
Posts: 842
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 online now   Reply With Quote
Old 05-07-17, 08:31   #517
SLAYER
Archaeologist
 
SLAYER's Avatar
 
Join Date: Jun 2006
Location: Jordan
Posts: 2,158
Default

I absolutely love it! Love the icon too
__________________
Right now, I'm losing patience
SLAYER is offline   Reply With Quote
Old 05-07-17, 13:51   #518
Alex Fly
Junior Member
 
Alex Fly's Avatar
 
Join Date: Dec 2006
Location: France
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
Relic Hunter
 
Mokono's Avatar
 
Join Date: Apr 2009
Location: Perú
Posts: 8,742
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
Explorer
 
nakamichi680's Avatar
 
Join Date: Feb 2015
Location: Italy
Posts: 842
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 online now   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 07:58.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.