Commit Graph

16190 Commits

Author SHA1 Message Date
Deve
41283ad408 Added a check for GL_ARB_explicit_attrib_location extension.
It is enabled by default for OpenGL 3.3, but we need it for some of our shaders in render_geometry.cpp (which are OpenGL >= 3.2) and also for InstancedColorizeShader.
2016-05-20 20:12:34 +02:00
hiker
53f9d9d1ba Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-05-19 13:26:20 +10:00
hiker
92be0c65ad Added support for setting the restitution for physical objects. 2016-05-19 13:25:29 +10:00
auria.mg
6f36bc5b34 Update changelog and credits 2016-05-18 20:01:21 -04:00
auria.mg
2c6e678929 Add new volcano track 2016-05-18 19:57:09 -04:00
Deve
edfc7d285c Fixed shadows and GI for mesa drivers.
The check for GL_ARB_geometry_shader4 doesn't have sense at all because we don't use this extension and our geometry shaders use functionality which is available in core OpenGL 3.2.

The reason that it wasn't working for older mesa versions must be a bug in mesa or maybe missing other functionality (but not GL_ARB_geometry_shader4).

I checked it with mesa 11.2 and current git version and it works fine on intel, nouveau and with software rendering.

It needs some testing because it potentially affects all drivers with OpenGL >= 3.2 on every platform.

If someone could test it with Radeon drivers, I would be really happy to enable it in upcoming release, at least on linux.
2016-05-18 22:19:31 +02:00
Benau
9a815b4e65 Fix x N items font size
It should depend on screen scaling.
2016-05-18 13:03:35 +08:00
Benau
12522cc99f Don't crash if missing texture 2016-05-18 10:05:12 +08:00
auria.mg
5b2cb52dc5 Add higher-res icon 2016-05-14 21:15:11 -04:00
Deve
c9f2de8155 Update dependencies for Ubuntu
- use officially supported pkg-config instead of pkgconf replacement
- add zlib library to dependencies
- remove GLU library which is not needed at all since this commit: 60dc171700
- add libgl1-mesa-dev and mesa-common-dev which contains OpenGL headers that we need
- use libcurl-gnutls instead of openssl because it is used by default in Debian/Ubuntu for STK and many other projects.
2016-05-14 23:17:13 +02:00
auriamg
6c2dc56f94 Merge pull request #2494 from qwertychouskie/master
Fix dependencies list for Ubuntu compilation
2016-05-13 18:48:51 -04:00
Deve
10488bc79a Don't link libGLU library.
This should allow to run linux static package even if libglu1-mesa package is not installed. And the utilities from GLU library are not used in STK anyway.
2016-05-12 23:38:56 +02:00
qwertychouskie
2077f4bd5e Remove Autotools 2016-05-12 10:12:08 -07:00
qwertychouskie
12a755f9fe Remove libgl1-mesa-dev
According to http://packages.ubuntu.com, `libglu1-mesa-dev` depends on `libgl1-mesa-dev` for all listed Ubuntu versions.
2016-05-11 18:15:33 -07:00
auria.mg
8fa902a748 Another attempt at fixing camera roll in cutscenes, hopefully the right one this time. See #2483 2016-05-11 20:18:07 -04:00
auria.mg
b84b28b3a7 Undo previous "bugfix", it doesn't work 2016-05-11 19:45:42 -04:00
auria.mg
dc885fbf05 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-05-11 19:35:08 -04:00
auria.mg
17f96ac9ef Fix camera roll in cutscenes 2016-05-11 19:35:00 -04:00
qwertychouskie
568ff1e0c2 libgl1-mesa-dev depends on libxxf86vm-dev 2016-05-11 12:08:09 -07:00
qwertychouskie
6bd3e69ddc fix dependencies 2016-05-11 12:05:04 -07:00
hiker
b3d59de288 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-05-11 00:04:11 +10:00
hiker
01ce2c32ef Properly fixed #1347. Made a global variable part of the
KartSelection object, to avoid the two instances of the
kart selection screen to interfere with each other. Removed
tearing down the kart selection screen. Also fixed crash
when starting the kart screen after a network kart screen.
2016-05-10 17:27:50 +10:00
Benau
9624d27f59 Try to fix lost control for soccer ai 2016-05-10 08:53:33 +08:00
Deve
58f7424b4f Add a workaround for skybox.
The problem was with shader-based pipeline with disabled "advanced effects" in options.

In this case we don't use RTTs and gl_FragCoord contains values in range of whole window. So fo 2 players we still get gl_FragCoord.y = 0..window_size instead of gl_FragCoord.y = 0..window_size/2.

The easiest way to solve it seems to be modulo it by current viewport size. It should be compatible with advanced pipeline as well as single-player games.

Atm. I'm not sure if this should be applied to 0.9.2 branch. It should work fine, but needs some testing.
2016-05-08 21:39:50 +02:00
Benau
bb01c83d6e Auto-balance the number of AIs
If there are uneven the number of human players in each team
2016-05-08 08:08:57 +08:00
auriamg
1af4853f40 Merge pull request #2489 from qwertychouskie/master
Update screenshots and description
2016-05-07 19:23:01 -04:00
qwertychouskie
87f3609b06 Update screenshots and description 2016-05-06 19:50:57 -07:00
hiker
898cefc91e Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-05-07 00:20:58 +10:00
hiker
bc418acb05 Fixed second location where the kart/playe rname was used. 2016-05-07 00:16:36 +10:00
Benau
264e5af3ee Fix determineTurnRadius in ArenaAI
Before this function always return nan/inf/too large number of
radius, now this function will calculate the radius of curvature
correctly.
2016-05-06 22:03:01 +08:00
hiker
6c9f3d73b5 Show the name of the player in the grand prix result screen. 2016-05-06 16:47:36 +10:00
hiker
c92f369cdd Allow 0 laps GP in artist debug mode. 2016-05-06 16:47:05 +10:00
Benau
db6ea0e740 Add help for translator 2016-05-06 08:37:05 +08:00
hiker
ef4b200dca Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-05-06 09:13:50 +10:00
auria.mg
ce6bc4a3fe Document new command-line option 2016-05-05 19:12:27 -04:00
hiker
43c2cb37c9 Use a #define SkiddingAI TestAI in the TestAI to make this file
as close as possible to the SkiddingAI, which makes it easier to
compare the two AIs to find significant differences.
2016-05-06 08:52:46 +10:00
hiker
e8c54bbdcd Use getControllerName instead of hard coded to string, minor
coding style fixes.
2016-05-06 08:52:19 +10:00
hiker
c1bdfabc89 Fixed comment. 2016-05-06 08:25:46 +10:00
hiker
ff561aa679 Fixed steering when avoiding a collision (see 79b3864511
for same patch on skidding ai).
2016-05-06 08:24:45 +10:00
hiker
79b3864511 Fixed incorrect steering direction when trying to avoid a crash. 2016-05-06 08:12:58 +10:00
hiker
ca379d921d Left the comments in, but reset the test ai to be identical to the
skidding ai again.
2016-05-05 18:42:11 +10:00
hiker
101611af3e Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-05-05 12:51:40 +10:00
auria.mg
8496352133 Make it easier to launch cutscenes, see #2482 2016-05-04 19:44:26 -04:00
hiker
45184a0322 Fixed line endings. 2016-05-05 09:40:41 +10:00
hiker
57bbf30d76 Improve new AI performance on math class (and others), but
this makes it worse on some other tracks (xr591, zen).
Maybe we should tweak AI per track?
2016-05-04 17:54:38 +10:00
hiker
f0c35965af Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-05-04 08:51:01 +10:00
hiker
8c25addda5 Changed item display from "item N x" to "item x N". 2016-05-04 07:52:40 +10:00
Deve
d989ae1d4a Update graphics restrictions for mesa:
- Increase version for sRGB-capable visual workaround because it doesn't look that it will be fixed anytime soon
- Enable compute shaders because it works fine now
- Enable texture compression because it works now too.

Texture compression for intel should work fine also for older versions, but it's hard to say which one version is the first working one.
2016-05-03 21:48:21 +02:00
Deve
62ea873373 Fixed compute shaders on mesa.
It was reporting an error:
[error  ] GLWrap: Error in shader gaussian6h.comp
[error  ] GLWrap: 0:77(1): error: storage qualifiers must come after precise, invariant, interpolation, layout and auxiliary storage qualifiers
2016-05-03 21:48:21 +02:00
hiker
2e6eeb15ea Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-05-03 21:31:49 +10:00