Commit graph

23 commits

Author SHA1 Message Date
Paweł Kołodziejski
20cb0ae228
ALL: Cleanup ResidualVM -> ScummVM 2021-12-26 21:19:38 +01:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Paweł Kołodziejski
b9115e9286
STARK: BigEndian fixes 2021-11-20 22:57:01 +01:00
Bastien Bouclet
b163d999a8 STARK: Don't blend incompatible animations after a model switch
Fixes a crash after giving the ring to April's father and then
repeatedly skipping time using escape.
2019-05-28 21:25:55 +02:00
Bastien Bouclet
6a7e99c4b9 STARK: Models and animations can have a different number of bones
It seems like some aniamtions have not have been properly exported and
have a different number of bones when compared to their models. This is
the case for the Alatien child.

Fixes #1527.
2019-02-28 19:32:33 +01:00
Bastien Bouclet
bb6c92034f STARK: Don't blend animations for models with incompatible number of bones
Both the new and previous animation need to have the same number of
bones as the model to be able to blend the animations.

Fixes #1517.
2019-02-01 08:58:55 +01:00
Bastien Bouclet
e3c6748a7f STARK: Rework skeletal animation blending control
The previous animation blending system had some flows. The
AnimationHandler was owned by the model which was incorrect, since it's
possible to change models during an animation sequence. The
AnimationHandler is now owned by the item, ensuring there is only one
per character instance.

We now ignore animation change requests for one frame. This is because
the scripts often cause an animation change, and request another one the
very next frame. This used to cause issues because we were blending the
latest animation with the previous one which was only active for one
frame, causing a discontinuity. This new solution is kind of a hack.
Hopefully it is good enough and there is no need to implement animation
blending for more than two animations at once.
2019-01-25 09:48:31 +01:00
Bastien Bouclet
3c80722658 STARK: Use the center of item's bounding rect as the scroll target 2018-12-02 19:51:35 +01:00
orangeforest11
c0a06258ad STARK: Set default keyframe for bone animations
Mitigates #1436. Glitches were appearing at old lady in the forest because wasn't getting a key frame

Now, if no key frame found, defaults to last key frame with warning message.
2018-08-15 14:04:00 +02:00
Bastien Bouclet
d4a890a36e STARK: Fix biff mesh texture coordinates
For some reason, the doubleSided material flag seems to affect what
texture coordinates transform needs to be applied.
2018-04-14 09:29:25 +02:00
Bastien Bouclet
883755b5f8 STARK: Use the same data structures for props and actors
Faces and materials only
2017-06-10 14:35:53 +02:00
Bastien Bouclet
ca32ebef74 STARK: Further simplify actor models in-memory representation 2017-03-19 08:30:25 +01:00
Bastien Bouclet
61edb671cb STARK: Load actor model into a format that's easier to render
As a result less OpenGL bindings need to be changed when rendering.
2017-01-29 10:44:09 +01:00
Bastien Bouclet
f5e082d13a STARK: Implement skeletal animation blending 2016-04-10 11:35:30 +02:00
Bastien Bouclet
7a090fd5e7 STARK: Move the skeletal animation code around 2016-04-09 17:23:07 +02:00
Bastien Bouclet
8753e090e0 STARK: Simplify the skeleton anim code a bit 2016-04-09 08:42:00 +02:00
Bastien Bouclet
f7681fc6f7 STARK: Fix some coverity warnings
No actual bugs should be fixed
2016-01-07 21:50:53 +01:00
Bastien Bouclet
37ae96d7ba STARK: Fix animating bones with only one keyframe 2016-01-03 17:26:10 +01:00
Pawel Kolodziejski
f9e78dc731 STARK: formating code - whitespaces 2016-01-01 07:30:11 +01:00
Bastien Bouclet
a1ccbab41b STARK: Handle models with format = 16 2016-01-01 07:30:03 +01:00
Bastien Bouclet
993eadccc2 STARK: Fix actor direction placement
Finally!
2016-01-01 07:29:57 +01:00
Bastien Bouclet
7e621e13f6 STARK: Add mouse picking for 3D items
This works at the bone bounding box level, whereas the original does
pixel-perfect picking.
2016-01-01 07:29:56 +01:00
Bastien Bouclet
3498e65818 STARK: Move the 3D model related classed to the model directory 2016-01-01 07:29:54 +01:00