Commit Graph

12965 Commits

Author SHA1 Message Date
hiker
5640436aa8 Support cannons in reverse tracks. 2017-03-10 08:38:03 +11:00
hiker
c8b69cecb6 Merge remote-tracking branch 'origin/master' into fix-cannon 2017-03-09 23:05:03 +11:00
hiker
12e6bab90a Merge branch 'master' of github.com:supertuxkart/stk-code 2017-03-09 22:42:06 +11:00
auria.mg
2d6cf4c487 Remove a few more string allocations/manipulations 2017-03-08 20:42:16 -05:00
auria.mg
571832fbbc Make all material names and path lowercase upon loading them, moving several string allocations and modifications outside of hot loops 2017-03-08 20:30:45 -05:00
hiker
87950c9a94 Adjust up vector of kart slowly so that the kart is upright (even
when it was not upright at the start of the cannon).
2017-03-09 08:56:01 +11:00
Deve
21cb853079 One more tweak for hiding story mode icon if it's not available.
Now it should work properly, sorry for the mess.
2017-03-08 22:09:47 +01:00
Deve
d339d9acef Fixed ambient light for legacy pipeline.
TODO: It should be possible to convert it once together with spherical harmonics computations.
2017-03-08 21:41:53 +01:00
Deve
11255cb2b8 Fixed wrong lights color for legacy pipeline.
SColor is ARGB, but SColorf is RGBA... WTF?
2017-03-08 21:12:24 +01:00
hiker
bedb565f24 Simplified maths. 2017-03-08 17:57:03 +11:00
hiker
2436161b05 Approximate bezier curves better to avoid stuttering in cannons. 2017-03-07 22:24:46 +11:00
hiker
ae375c50b6 Allow the player to go to the left and right when in a cannon. 2017-03-07 22:11:15 +11:00
Deve
35139877f6 Fixed a crash on changing resolution 2017-03-06 23:10:29 +01:00
Deve
d4cecd5a8b Show story mode icon only if overworld track exists.
It allows to decrease apk size a bit.
2017-03-05 23:31:53 +01:00
Deve
6c472660a1 Some additional checks for android assets manager.
If data was already extracted somewhere, then use this directory as preferred path. This is to avoid a situation that we have data extracted in two different places after STK upgrade.
2017-03-03 21:57:55 +01:00
Deve
f6cdf79b1e Avoid spamming with errors 2017-02-27 00:58:43 +01:00
Deve
2ff79141a0 Don't show exhaust emitter for legacy pipeline 2017-02-27 00:58:43 +01:00
Deve
6d395d4510 Some fixes for GLES renderer 2017-02-27 00:58:43 +01:00
Benau
c7eeb8338d Try to fix for gles 2017-02-24 19:03:14 +08:00
Deve
46619ec62a Fixed gaussian blur 2017-02-23 20:40:06 +01:00
hiker
a7d1a312ad Merge branch 'fix-cannon' of github.com:supertuxkart/stk-code into fix-cannon 2017-02-23 17:19:30 +11:00
hiker
bf61b98444 Merge branch 'master' of github.com:supertuxkart/stk-code 2017-02-23 17:18:10 +11:00
hiker
b884f6429d Fix stuttering of camera/kart when usnig a cannon (caused by the cannon
animation updating the (physical) kart position after the graphical position
was taken from the physical position, causing a stuttering because of the
differences between those two values.
2017-02-23 17:12:15 +11:00
Deve
b34e749198 Fixed nitro bar in multiplayer game when uniform buffer object is not available 2017-02-22 23:33:11 +01:00
hiker
f0efce62b1 Added debug view of target cannon line. 2017-02-23 09:00:07 +11:00
Deve
0767abe2bc Draw a touch steering button that allows to run challenges.
It was broken because the fire button uses now the icon of collected weapon, so that it's not displayed at all when there is no weapon.
2017-02-22 21:43:36 +01:00
Deve
db4d11a0c5 Disable kart shadow for legacy pipeline in GLES renderer because it's broken 2017-02-22 21:04:28 +01:00
Deve
2ef6652183 Create a kart shadow only of shadow texture exists.
If the image doesn't exist, in some cases it can draw non-transparent square below the kart, which is unwanted.
2017-02-22 21:04:28 +01:00
Benau
02d3bd2c2b Take item on walldriving tracks into account 2017-02-21 15:06:26 +08:00
Benau
3898678e76 Use raycasted position for point 2
Fix #2796, #2774
2017-02-21 13:36:00 +08:00
Benau
0cf0002c08 Header clean up 2017-02-21 12:09:22 +08:00
auria.mg
eb9f656b44 Add config flag to persist GUI visibility state at samuncle's request 2017-02-20 19:16:49 -05:00
Deve
668e10d8ca Don't use srgb format in gles 2017-02-20 21:56:33 +01:00
Deve
875d5d8ef9 Some tweaks to the arrows size in dynamic ribbon widget.
- arrow size now depends on screen size, so that it's now easier to click it on high resolutions
- it's additionally scaled on Android for easier usage
2017-02-20 21:56:33 +01:00
hiker
41df6afbf9 Fixed compilation. 2017-02-20 09:22:09 +11:00
hiker
a17b537699 Make cannon smoother. 2017-02-20 07:48:43 +11:00
hiker
30cff00757 Reduce internal physics timestep to test if collision handling improves. 2017-02-20 07:48:25 +11:00
hiker
8e8de3c5e2 Merge branch 'master' of github.com:supertuxkart/stk-code 2017-02-20 07:45:26 +11:00
Benau
131dc4bfad Fix #2786 2017-02-18 14:30:35 +08:00
Deve
299a4dc5f2 Don't check the TBO extension 2017-02-17 06:31:15 +01:00
Deve
251c46dcc4 Always call bind sampler function.
This fixes errors for Intel HD4000 on Windows.

My understending of this issue is following:
- a shader assigned two textures, i.e. texture1 = sampler1, texture2=sampler2
- then next shader (i.e. importance sampling specular) assigned two textures: texture1=sampler1, texture2=without_sampler
- when we executed setTextureUnits, the glBindSampler function wasn't called at all, so the drivers were trying to use combination texture2=sampler2, even though the sampler2 was prepared for different texture and most likely was already deleted.

We can just always call the glBindSampler function, so that if texture doesn't have a sampler, it will execute it with sampler_id=0 param, which is practically an "unbind" function.
2017-02-17 01:03:39 +01:00
Benau
c635e8d1c4 Get rid of some srgb conversion in shader, see #2787 2017-02-13 10:06:35 +08:00
Benau
d3cbc6ca0e Fix GLES 2017-02-13 00:45:18 +08:00
Benau
ca0a605b0e Don't use texture buffer object if not supported, see #2571
Also allow to use setTextureUnits for texture buffer
2017-02-12 15:42:22 +08:00
Benau
4af255431c Fix opengl warning about glTexSubImage2D buffer of null pointer
For example, whitespace in freetype glyph has no bits buffer
2017-02-12 10:23:18 +08:00
Benau
48f27df1c9 Fix wrong angle when normal is exactly 0, -1 ,0 2017-02-11 16:05:10 +08:00
Benau
0ddada2897 Fix --track-debug crash 2017-02-11 14:42:24 +08:00
Deve
3f214c1bb7 Find textures once on race gui initialization 2017-02-11 00:51:22 +01:00
Deve
a877cb848f Added better icons for touch steering.
Thanks to jymis!
2017-02-11 00:51:22 +01:00
Benau
ea95ffe424 Remove compiler warning 2017-02-10 18:21:27 +08:00