Commit graph

41 commits

Author SHA1 Message Date
Joseph Jezak
55f77fb92f EMI/GRIM/MYST3: Replace some Quaternions with Rotation3D. 2014-06-23 09:24:26 -04:00
Christian Krause
58833e15f0 EMI: Change frustum parameters for Overworld actors
- lower the distance to the near plane of the frustum for Overworld
  and change the other parameters accordingly

- this makes the following actors visible:
 - background of directions to Pegnose Pete's house (issue #869)
 - Murray in the murray_go easter egg
 - the trophies during the diving contest (upper left corner)
 - the screenshots for the save games (still with the wrong texture)
2014-06-21 23:59:07 +02:00
Christian Krause
bf8501fd37 EMI: Clear depth buffer before starting to draw the Overworld
- all actors of the Overworld should cover any non-Overworld drawings
- Overworld actors need to use the depth buffer so that e.g. the
pause screen is drawn above the inventory

- this fixes issue #927 (inventory is drawn above background of pause
  or menu screen)
2014-06-21 23:59:07 +02:00
Joel Teichroeb
a539832c78 Merge pull request #910 from JoseJX/FixGLTextureParams
EMI: Clamp sprites, repeat other textures.
2014-06-20 08:30:44 -07:00
Joseph Jezak
df3d63fc24 EMI: Add support for clamping sprite textures and repeating other textures. 2014-06-18 22:19:42 -04:00
Joni Vähämäki
b5cdd1240f EMI: Only draw models for actors inside the view frustum.
This adds math classes for doing frustum culling in software. These could be used for optimizing performance in many other places as well. For example, if an actor is outside the view frustum, it may not be necessary to do expensive keyframe animation and vertex skinning calculations for that actor.
2014-06-16 15:42:18 +03:00
Joel Teichroeb
42c5b0f16b Merge pull request #921 from Akz-/emi-contract-fix
EMI: Enable backface culling. Fixes #900
2014-06-11 13:13:18 -07:00
Joni Vähämäki
d80c84ad97 EMI: Enable backface culling. Fixes #900 2014-06-10 22:51:24 +03:00
Dries Harnie
99bab131bb MISC: Add copyright notice from glm 2014-06-10 19:05:47 +02:00
Dries Harnie
5c0d145509 EMI: Fix dark lines in the intro
Taken from #854 and #735.
2014-05-29 13:58:51 +02:00
Dries Harnie
9ec4a897ee MISC: Fix typo in comment 2014-05-05 15:00:39 +02:00
Christian Krause
47251c0c09 EMI: Change drawing order of faces
If multiple faces of one model are referring to the same triangles, let
them overwrite each other so that the latest one will be visible. For
this purpose glDepthFunc is changed from GL_LESS to GL_LEQUAL so
that subsequent drawing attempts for the same triangle are not ignored by
the depth test.

This fixes the issue of the colored leg of the monkey bot in the end
scenes: the leg is drawn using color maps by the first face and using
textures by a following face.
2014-05-03 00:22:35 +02:00
Pawel Kolodziejski
8759900b6a ALL: synced with ScummVM 2014-04-05 18:18:42 +02:00
Dries Harnie
b0fd0d3edc GRAPHICS: Image format must match internalformat for ES2 2014-04-02 20:38:15 +02:00
Dries Harnie
5dcf795fd7 GRAPHICS: Remove use of glMapBuffer (extension) 2014-04-02 20:38:15 +02:00
Joel Teichroeb
a010e06bec GRIM: Make data in MeshFace private 2014-03-30 14:38:52 -07:00
Dries Harnie
bf3fe18543 JANITORIAL: Use double instead of GLdouble 2014-03-11 21:37:43 +01:00
Dries Harnie
a72af36d93 EMI: Implement getBoundingBox [OpenGLS] 2014-03-10 23:37:30 +01:00
Dries Harnie
c87b6f859e GRIM: Fix display of movies [OpenGLS] 2014-03-04 21:22:24 +01:00
Pawel Kolodziejski
2dd5c24ab1 GRIM: shut up compiler warnings 2014-02-16 08:43:33 +01:00
Dries Harnie
30e3f5b019 Merge pull request #822 from chkr-private/item-drawing-fixes
EMI: Rotation of (attached) actors
2014-02-12 00:13:41 +01:00
Dries Harnie
32a232fd3e EMI: Update shader for actors and sprites [OpenGLS] 2014-02-11 02:30:29 +01:00
Joel Teichroeb
dbfd0efab6 GRIM: Don't bother checking if the value returned from new is nulll
It can never be null and will throw an exception if it can't allocate the
memory
2014-02-04 13:07:17 -08:00
Dries Harnie
ca20357bd5 GRAPHICS: Add shadow mode to grim actors [OpenGLS] 2014-01-23 20:03:22 +01:00
Dries Harnie
6c8a35e53b GRAPHICS: Transpose view/model matrices correctly 2014-01-23 20:03:21 +01:00
Dries Harnie
f618b90d31 GRAPHICS: Stencil for grim shadows [OpenGLS] 2014-01-23 20:03:21 +01:00
Joel Teichroeb
91f4e2681b GRIM: Add a vertex buffer object for blast text drawing
This makes it so that we don't have to destroy the VBO
that a blast text object uses. This fixes what is probably
a driver bug with the windows nvidia drivers.
2014-01-17 09:48:09 -08:00
Dries Harnie
3ab4fa601f GRAPHICS: Support Irises [OpenGLS] 2014-01-14 00:26:47 +01:00
Dries Harnie
85c94be5b5 JANITORIAL: Fix signed-unsigned warnings 2014-01-14 00:26:47 +01:00
Dries Harnie
583eafc2d6 GRAPHICS: Remove duplicate EBO [OpenGLS] 2014-01-14 00:26:44 +01:00
Dries Harnie
3a9af2dabc GRAPHICS: Add support for Grim primitives [OpenGLS] 2014-01-14 00:26:43 +01:00
Dries Harnie
00e72387e0 GRAPHICS: Use RGBA for all textures [OpenGLS] 2014-01-14 00:26:43 +01:00
Dries Harnie
2313ce4fb0 GRAPHICS: Support sprites (WIP) [OpenGLS] 2014-01-14 00:26:39 +01:00
Dries Harnie
fa2077626d GRAPHICS: Screenshots and specialty textures [OpenGLS] 2014-01-14 00:26:39 +01:00
Dries Harnie
4157f52eb2 GRAPHICS: Drawing of actors [OpenGLS] 2014-01-14 00:26:39 +01:00
Dries Harnie
be53635c9a GRAPHICS: Loading and updating of GRIM/EMI models [OpenGLS] 2014-01-14 00:26:39 +01:00
Dries Harnie
ad64bdcbf6 GRAPHICS: Background drawing [OpenGLS] 2014-01-14 00:26:39 +01:00
Dries Harnie
b8a4b1acc6 GRAPHICS: Support Smush [OpenGLS] 2014-01-14 00:26:39 +01:00
Dries Harnie
141cc5a42b GRAPHICS: Text drawing [OpenGLS] 2014-01-14 00:26:39 +01:00
Dries Harnie
f2ff416c5d GRAPHICS: Emergency font [OpenGLS] 2014-01-14 00:26:39 +01:00
Dries Harnie
5da8aa7144 GRAPHICS: Introduce GfxOpenGLS 2014-01-14 00:26:39 +01:00