118 Commits

Author SHA1 Message Date
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
Bastien Bouclet
23339184ce GRIM: Clean up float data loading 2018-04-14 11:49:35 +02: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
Vincent Pelletier
84f83fe6ea ALL: Rename get_float to READ_LE_FLOAT
For consistency with other functions/macros from common/endian.h .
2017-05-12 13:57:16 +00:00
Pawel Kolodziejski
ae24374482 Revert "GRIM: Fix deleting material when it is still needed"
This reverts commit 8767a41294a24bc24b50adda12b19cadbdfc0515.
2014-12-31 12:09:22 +01:00
Joel Teichroeb
8767a41294 GRIM: Fix deleting material when it is still needed 2014-12-29 21:51:27 -08:00
Joni Vähämäki
e287fb4c8e GRIM: Initialize rotation quaternion also when loading text format model. 2014-12-27 00:30:09 +02: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
Joseph Jezak
e34d0ddba3 MATH: Replace Quaternion XYZ with Euler. 2014-09-11 13:38:30 -04:00
Joseph Jezak
60fa48490e EMI/GRIM: Rename getBoundingBoxPos to getScreenBoundingBox to better describe the behavior. 2014-07-30 15:23:53 -04:00
Joel Teichroeb
57a3142fd8 GRIM: Implement destroyMesh [OpenGLS] 2014-07-09 18:47:14 -07:00
Joel Teichroeb
77eef29e49 GRIM: Rename createModel to createMesh 2014-07-09 18:08:01 -07:00
Joni Vähämäki
dbfec3b1e8 GRIM: Use quaternions for animation. 2014-07-02 22:29:37 +03:00
Joseph Jezak
78772c999b MATH: Rename getVector3d and add comments for the Vector3d class. 2014-07-01 11:27:02 -04:00
Joseph Jezak
76d36f676b MATH: Add a selectable Euler Order to Rotation3D. 2014-06-23 09:04:25 -04:00
Joseph Jezak
df3d63fc24 EMI: Add support for clamping sprite textures and repeating other textures. 2014-06-18 22:19:42 -04:00
Joel Teichroeb
0f3da43694 GRIM: Change NULL to nullptr. 2014-05-30 17:43:08 -07: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
Joel Teichroeb
4af2b19577 GRIM: Initialize _userData in BitmapData and Mesh 2014-01-15 09:16:02 -08:00
Einar Johan Trøan Sømåen
d489dd937d GRIM: Set _filename by initializer-list in Model.cpp 2014-01-07 12:27:18 +01:00
Dries Harnie
1ce121eee9 GRIM: Sort model faces by material 2013-11-05 07:29:54 -08:00
Dries Harnie
4f099eb42d GRIM: Move Mesh::draw to GfxBase::drawMesh 2013-11-05 07:29:47 -08:00
Dries Harnie
d97ff82dea GRAPHICS: CreateModel in GfxBase 2013-11-05 07:29:40 -08:00
Dries Harnie
43fcfa765f GRAPHICS: Pass Mesh* to GfxBase::drawModelFace 2013-11-05 07:29:30 -08:00
Joel Teichroeb
c0cb2f1f9c GRIM: Use a consitent style for constructor initializers 2013-10-26 13:57:55 -07: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
Joel Teichroeb
23f1f4612d GRIM: Initialize Mesh::_faces 2013-07-07 14:37:02 -07:00
Einar Johan Trøan Sømåen
2861f76bca GRIM: Fix build (problem in Model.cpp) 2013-04-21 16:05:32 +02:00
Einar Johan Trøan Sømåen
8bada3d4dd GRIM: Initialize all members of Mesh. 2013-04-21 15:39:39 +02:00
Giulio Camuffo
920875909d GRIM: Make TextSplitter tell the file name on error 2013-02-04 21:36:38 +01:00
Giulio Camuffo
c31551c6f3 GRIM: Set ModelNode::_initialized to true on node loading. 2013-01-19 18:35:36 +01: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
02a30675a3 EMI: Support for composite sprites 2012-11-28 23:53:24 +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
Paweł Kołodziejski
1ffa2ed874 Merge pull request #593 from Akz-/joints
GRIM: Animate all three of the head joints
2012-04-08 08:49:25 -07:00
Joni Vähämäki
db74fcf1b1 GRIM: Disable lighting for faces that have _light == 0. Fixes #579 2012-04-08 17:53:03 +03: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
Giulio Camuffo
33e7e9ba7f GRIM: New parser for TextSplitter, locale agnostic. 2012-02-21 19:12:59 +01:00