Einar Johan Trøan Sømåen
9647b9e707
GRIM: Initialize Model::_radius
...
It was left uninitialized if loadBinary was run,
presumably it was only used in use cases where that
was the loader that was run.
Fixes COVERITY: 1470688
2022-10-02 00:41:40 +02:00
Paweł Kołodziejski
06902574b4
GRIM: Janitorial
2022-06-08 01:12:00 +02:00
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
Joel Teichroeb
8ee62a9819
GRIM: Cut back on the number of glPushMatrix operations
...
Most graphics cards limit us to a stack size of 32. In some places
like the pigeons on the roof of the DOD, they will render too many
matricies pushed to the stack.
If we don't need to push it to the stack, skip pushing.
2017-12-20 10:11:15 -08:00
Joni Vähämäki
ae64297e3a
GRIM: Initialize animated pose to bind pose, so the model bounding box is calculated correctly. Fixes #1082
...
Also removed the yaw, pitch and roll fields from ModelNode as they are no longer needed after the rotation is converted to a quaternion.
2014-12-27 00:28:39 +02:00
Joni Vähämäki
dbfec3b1e8
GRIM: Use quaternions for animation.
2014-07-02 22:29:37 +03:00
Pawel Kolodziejski
8759900b6a
ALL: synced with ScummVM
2014-04-05 18:18:42 +02:00
Joel Teichroeb
cf44a26ff9
GRIM: Instead of using a assignment operator, just steal the data
...
This avoids potential memory leaks.
2014-03-30 15:33:27 -07:00
Joel Teichroeb
a010e06bec
GRIM: Make data in MeshFace private
2014-03-30 14:38:52 -07:00
Joel Teichroeb
2b90b75f87
GRIM: Make copyMeshFace an assignment operator
2014-03-30 14:20:47 -07:00
Joel Teichroeb
06546bd96d
GRIM: Clean up the MeshFace code
2014-03-30 14:02:32 -07:00
Dries Harnie
be53635c9a
GRAPHICS: Loading and updating of GRIM/EMI models [OpenGLS]
2014-01-14 00:26:39 +01:00
Dries Harnie
1ce121eee9
GRIM: Sort model faces by material
2013-11-05 07:29:54 -08:00
Dries Harnie
43fcfa765f
GRAPHICS: Pass Mesh* to GfxBase::drawModelFace
2013-11-05 07:29:30 -08:00
Joel Teichroeb
92c48e6637
GRIM: const more paramiters
2013-10-25 07:48:27 -07:00
Joel Teichroeb
bff22e4237
GRIM: Initialize all members of ModelNode
2013-10-24 18:59:49 -07:00
Einar Johan Trøan Sømåen
fe3883cecd
GRIM: Reformat code to be closer to convention.
2013-07-09 21:12:55 +02:00
Joel Teichroeb
21afde3846
GRIM: Move Sprite into it's own file
2013-07-07 17:25:35 -07:00
Einar Johan Trøan Sømåen
ad15aac2dc
GRIM: Initialize _meshes in Geoset.
2013-04-21 15:41:23 +02:00
Einar Johan Trøan Sømåen
8bada3d4dd
GRIM: Initialize all members of Mesh.
2013-04-21 15:39:39 +02:00
Paweł Kołodziejski
175620b62a
ALL: change license headers from LGPL to GPL, and few updates
2012-12-19 23:15:43 +01:00
Dries Harnie
60900c2e4a
EMI: Move sprite loading into Sprite::loadBinary
2012-11-28 00:28:48 +01:00
Joel Teichroeb
2b48f5c15d
GRIM: Reverted some of the changes I made to model as they were just wrong
2012-04-25 17:32:45 -07:00
Joel Teichroeb
4b5321b3cf
EMI: Remove old model code
2012-04-24 17:22:16 -07:00
Joel Teichroeb
228187b214
GRIM: Clean up model slightly
2012-04-24 17:21:18 -07:00
Joni Vähämäki
4fb4e0c320
GRIM: Only compute the world transform matrices for the joint node and its parents, not for every node of the character.
2012-04-08 12:54:42 +03:00
jj
fb0f68f634
GRIM: Rewrote Costume::moveHead to generate character head target orientations by using a lookat matrix construction.
...
Commented places where parent-child transforms are concatenated simply by summing up euler angles, which is not mathematically correct. Also more simplification on Costume::moveHead, and documented a hack in Costume::moveHead.
2012-03-21 11:32:17 +01:00
Joel Teichroeb
7ff91c5817
GRIM: Various cleanups to code
2012-02-04 18:07:24 -08:00
Paweł Kołodziejski
e350c7f777
renames
2012-01-06 23:29:45 +01:00
Andrea Corna
3032005aad
GRIM: Make Model load from a stream instead of a data Block
2011-12-30 17:17:08 +01:00
jj
6c002a2d3b
GRIM: Documented KeyFrameAnim and ModelNode type and flags fields.
2011-12-30 16:57:25 +01:00
Giulio Camuffo
4c030baf74
GRIM: No need to make a copy of the nodes hierarchy.
2011-12-12 19:18:33 +01:00
Giulio Camuffo
e6ccad7657
GRIM: Better handling of the bounding boxes for the actors' text objects.
2011-12-12 18:57:17 +01:00
Giulio Camuffo
d036ca27dc
GRIM: Use the new Math::Angle class.
2011-09-18 16:24:08 +02:00
Giulio Camuffo
0083c8619c
MATH: Move the math classes to their own math/ dir and Math namespace.
2011-09-14 23:05:52 +02:00
Giulio Camuffo
b065107263
GRIM: Partially implemented collisions between actors in walkForward().
2011-08-01 22:16:15 +02:00
Giulio Camuffo
cc4fcd3ffc
GRIM: Reload the shared materials with the new colormap. Fix #299
2011-07-27 18:07:35 +02:00
Giulio Camuffo
54e1478e85
GRIM: Calculate the bounding box of the meshes only if necessary.
2011-07-25 23:42:07 +02:00
Giulio Camuffo
784f9ce5b9
GRIM: Move Model::HierNode, Mesh and Face outside of Model.
2011-07-22 22:09:49 +02:00
Giulio Camuffo
62befd06f3
GRIM: Share the materials between models in the same hierarchy.
2011-07-18 23:43:01 +02:00
Giulio Camuffo
2730eb4a99
GRIM: Remove dead code.
2011-07-18 22:20:16 +02:00
Giulio Camuffo
cabd0d583f
GRIM: Make Material implicitly shared. Cleaned up Model a lot.
2011-07-18 22:16:40 +02:00
Joni Vähämäki
6a40b43f16
GRIM: Apply animations in priority order.
2011-05-24 19:47:39 +03:00
Joel Teichroeb
733b34febc
Changed const char * to const Common::String &.
2011-05-22 12:56:37 +08:00
Pawel Kolodziejski
356c9c8c07
sync with scummvm
2011-05-18 23:33:39 +02:00
Joni Vähämäki
68c3ce9d90
GRIM: Implemented SpriteComponent.
2011-05-15 16:47:09 +03:00
Joel Teichroeb
4751516279
Cleaned up dependencies between files.
2011-05-13 17:55:14 -07:00
Pawel Kolodziejski
7cb42a7595
EMI: import costume, model resource loaders from klusark fork with some modifications
2011-05-09 10:00:01 +02:00
Giulio Camuffo
e80a4234fc
GRIM: Rename Model's getters.
2011-05-05 11:43:04 +02:00