5548 Commits

Author SHA1 Message Date
Joel Teichroeb
f832487ce4 GRIM: Only check collision on setPos in EMI
Fixes #1115
2014-11-07 20:40:15 -08:00
Joel Teichroeb
c1f79333f7 Merge pull request #1117 from chkr-private/walk-fixes
GRIM/EMI: Handle special case in Actor::walkForward()
2014-11-05 18:39:31 -08:00
Joel Teichroeb
be6d868b16 Merge pull request #1118 from chkr-private/movie-fixes
GRAPHICS: Reset GL's current color in drawDimPlane()
2014-11-05 18:38:52 -08:00
Christian Krause
1c43404192 GRAPHICS: Reset GL's current color in drawDimPlane()
Per convention, in residualvm the default GL current color
should be (1.0f, 1.0f, 1.0f). If a function changes the color,
it is required to reset it before returning.

This fixes the issue that some videos were not correctly displayed
until the next glColor call (e.g. when drawing the sub-titles) was
issued.
2014-11-05 20:59:56 +01:00
Christian Krause
268466bad6 GRIM/EMI: Handle special case in Actor::walkForward()
The walk chore of the monkey bot is simulating
a robotor-like walking style by setting _walkRate to
0.0f repeatedly. This prohibits walking forward
which results in stopping the walk chore eventually.

To avoid the walk chore in this case to stop, assume that
the actor has walked when calling Actor::walkForward() with
a _walkRate of 0.0f.
2014-11-04 21:01:33 +01:00
Pawel Kolodziejski
8b616ea590 GRIM: Fixes #1113 2014-11-02 13:37:19 +01:00
Dries Harnie
7ab623554e Merge pull request #1100 from chkr-private/emi-sound-volume-fixes
EMI: sound volume fixes
2014-10-27 08:14:39 +01:00
Christian Krause
e8190af548 EMI: Set movie volume to SFX volume setting
- movies are played as kPlainSoundType
- set the kPlainSoundType volume to the same value as
  the kSFXSoundType volume
2014-10-27 01:11:42 +01:00
Christian Krause
36b037c81d EMI: Refactor conversion of sound volume values
- LUA code uses a range of 0 .. 100
- the LUA group volumes are in the range 25 .. 100, otherwise the sound
  group is muted
- residualvm engine uses a range of 0 .. Audio::Mixer::kMaxChannelVolume
- do most of the conversion in lua_v2_sound.cpp
- most parts of the engine will solely use the engine internal range
- only when reading/writing the registry residualvm continues to use
  a special conversion for compatibility with the volume settings
  of the residualvm engine settings
- proper handling of volumes close to 0.0f in SoundTrack::updatePosition()
2014-10-27 01:10:29 +01:00
Joel Teichroeb
5ec5ba4389 Merge pull request #1108 from chkr-private/lava-puzzle-fixes
Bug fixes for the lava puzzle
2014-10-21 13:45:25 -07:00
Christian Krause
0fe9168944 MATH: Don't normalize a (0, 0, 0, 0) quat
- this fixes the issue of the vanished boats in EMI's lava puzzle
- without the patch, the division by 0.0f causes the quat's values
  to be NAN
- the floating point NAN value is ignored by OpenGL, so the vertices
  are not drawn at all
2014-10-19 01:21:34 +02:00
Christian Krause
b8cef18377 GRIM/EMI: Check for collissions in setPos
- check for collissions in setPos(), too
- the boats in EMI's lava puzzle need collission handling,
  but they are moved solely via putActorAt
2014-10-19 01:21:34 +02:00
Dries Harnie
26a37c1410 EMI: Reroute AttachActor/DetachActor to debug channel 2014-10-11 12:48:07 +02:00
Dries Harnie
0a73f11e9c GRIM: Enable screenshot saving on ES2 2014-10-11 12:48:00 +02:00
Einar Johan Trøan Sømåen
66bcfa4ca6 EMI: Make the MD5-check for german EMI use CD1s VoiceAll.m4b 2014-10-07 12:13:41 +02:00
Dries Harnie
06d077d00d TINYGL: Rename glColor3fv to tglColor3fv
Linking TinyGL and OpenGL into the same binary could cause conflicts
because both have a glColor3fv function.
It is currently not used in ResidualVM, so it is safe to change this.
2014-09-28 12:14:44 +02:00
Pawel Kolodziejski
395cbe24d4 AMIGAOS4: replace package lha to zip 2014-09-27 19:05:27 +02:00
Pawel Kolodziejski
6fc28fe37d TINYGL: gl -> tgl rename 2014-09-21 15:05:17 +02:00
Pawel Kolodziejski
8e51ec52ec MACOSX: added libiconv static lib 2014-09-20 17:32:55 +02:00
Pawel Kolodziejski
e42d28ec2c GRIM/EMI: workaround for compilation error 2014-09-20 16:35:43 +02:00
Pawel Kolodziejski
7c3a4cfb32 AMIGAOS4: use upper case for target 2014-09-20 09:13:19 +02:00
Pawel Kolodziejski
d17b54b553 AMIGAOS4: corrected cross building 2014-09-20 08:58:16 +02:00
Paweł Kołodziejski
09cb27382d Merge pull request #1096 from chkr-private/alpha-fixes
EMI: Enable alpha blending for global alpha values of actors
2014-09-18 05:18:47 +02:00
Joel Teichroeb
79772895be GRIM: SHADERS: Remove f literal suffix
Some Android shader compiler do not like it apparently
2014-09-17 19:18:55 -07:00
Bastien Bouclet
85d5551d3b MYST3: Properly reset the movie scripts 2014-09-17 21:11:10 +02:00
Christian Krause
11fee3d1d4 EMI: Enable alpha blending for global alpha values of actors
This fixes the problem, that all actors with a global alpha
value < 1.0f were not drawn with the correct transparency.
2014-09-17 20:59:50 +02:00
Dries Harnie
149f8f5739 Merge pull request #1095 from chkr-private/apitrace-fixes
GRAPHICS: OpenGLS bug fixes
2014-09-17 09:22:19 +02:00
Christian Krause
d9ade245d6 GRIM/EMI: Use the correct setUniform function for "alphaRef" 2014-09-17 01:24:31 +02:00
Christian Krause
598bfc5fe9 GRIM/EMI: Call glViewport for apitrace compatibility
glViewport needs to be called once to avoid the apitrace
error: "could not infer drawable size (glViewport never called)".

This fixes the problem that all apitrace framebuffer pictures
had a default size of 32x32 instead of the correct resolution used
in residualvm.
2014-09-17 01:17:29 +02:00
Pawel Kolodziejski
1b5d84a713 AMIGAOS4: added drawer icon 2014-09-16 17:40:29 +02:00
Paweł Kołodziejski
2dec9826b5 Merge pull request #1094 from raziel-/patch-1
AmigaOS: Add and make use of a new drawer icon
2014-09-16 15:14:07 +02:00
raziel-
36d0580403 AmigaOS: Add and make use of a new drawer icon
This PR is missing the actual binary icon files...they'll be added later
2014-09-16 15:45:04 +03:00
Paweł Kołodziejski
60a67b28f8 Merge pull request #965 from chkr-private/screen-dim-fixes
Use half-transparent plane to implement dimScreen in EMI
2014-09-16 06:21:50 +02:00
Dries Harnie
c2318c7153 EMI: Use half-transparent plane to implement dimScreen (OpenGLS)
- instead of re-calculating the color values when dimming the screen,
  better draw a half-transparent plane after drawing all non-overworld
  characters
- fixes the issue that overworld actors were dimmed and that the
  pause screen is transparent when the inventory is open
2014-09-15 20:44:35 +02:00
Pawel Kolodziejski
9ad0608e9c DEBIAN: fixed build package 2014-09-15 18:50:57 +02:00
Paweł Kołodziejski
e6aae9206f Merge pull request #1078 from JoseJX/CleanupRotation
MATH: Cleanup rotation naming and fix non-unique factorization
2014-09-13 12:19:43 +02:00
Bastien Bouclet
540d4d8ba7 MYST3: Build the zip-bit index at runtime
It can differ between versions
2014-09-13 11:48:30 +02:00
Bastien Bouclet
642b095379 MYST3: Don't open the executable several times on startup
This can be slow, especially if decompression / decryption is needed
2014-09-13 11:48:23 +02:00
Bastien Bouclet
6b29c6f1f7 MYST3: Don't call a child class implementation from a destructor 2014-09-13 11:44:19 +02:00
Pawel Kolodziejski
cfef964848 MYST3: fix compilation warnings 2014-09-13 11:11:17 +02:00
Christian Krause
d6ed076e5a EMI: Use half-transparent plane to implement dimScreen (TinyGL)
- instead of re-calculating the color values when dimming the screen,
  better draw a half-transparent plane after drawing all non-overworld
  characters
- fixes the issue that overworld actors were dimmed and that the
  pause screen is transparent when the inventory is open
2014-09-13 10:49:21 +02:00
Christian Krause
56e13b52ca EMI: Use half-transparent plane to implement dimScreen (OpenGL)
- instead of re-calculating the color values when dimming the screen,
  better draw a half-transparent plane after drawing all non-overworld
  characters
- fixes the issue that overworld actors were dimmed and that the
  pause screen is transparent when the inventory is open
2014-09-13 10:43:33 +02:00
Pawel Kolodziejski
e20ef7a4f8 TINYGL: added support for alpha channel for non texture triangles. 2014-09-12 06:50:17 +02:00
Joseph Jezak
274e11a68e MATH: Add const qualifier to getEuler. 2014-09-11 13:38:30 -04:00
Joseph Jezak
cfeff853be MATH: Add factorization for non-unique answers in Rotation3D. 2014-09-11 13:38:30 -04:00
Joseph Jezak
e34d0ddba3 MATH: Replace Quaternion XYZ with Euler. 2014-09-11 13:38:30 -04:00
Joseph Jezak
99fa91053c MATH: Rename XYZ Rotation Functions to Euler to better describe the function. 2014-09-11 13:38:28 -04:00
Paweł Kołodziejski
966641ef35 Merge pull request #1093 from bgK/iconv
COMMON: Add a function for converting strings using iconv
2014-09-10 21:26:48 +02:00
Bastien Bouclet
33d5705af4 CONFIGURE: Allow defining the prefix for iconv 2014-09-10 20:00:57 +02:00
Joel Teichroeb
6c01a3ca74 Merge pull request #1077 from JoseJX/StopTurning
EMI: Add stop turning to actor methods.
2014-09-09 09:01:33 -07:00