Commit Graph

16215 Commits

Author SHA1 Message Date
Deve
cc92ee6ef3 One more tweak in SSAO.
Just use mod(x, 6.283185307179586) as suggested by mesa developer, instead converting it to degrees and back to radians.
2016-05-26 11:48:57 +02:00
Deve
cee0de3af3 Fixed a bug in my previous commit.
I forgot that sin and cos functions want angle value in radians.
Now the code looks a bit ugly, but generates proper values.
2016-05-26 02:39:35 +02:00
Benau
0c254dfa5d Try to make AI work like zidane 2016-05-26 08:24:45 +08:00
Deve
cdae595724 Fixed SSAO on intel.
In ssao.frag we are computing theta valaue and it looks that intel driver doesn't like too big values for sinus and cosinus computations.

I just used modulo 360 to store lower angle values in theta variable.
2016-05-25 23:16:01 +02:00
hiker
3ec56386df Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-05-25 21:35:17 +10:00
hiker
566df3dee6 Made more physics parameters for objects adjustable in the xml file
(for now to support a puck).
2016-05-25 17:21:31 +10:00
Deve
396bbd0199 Fixed an error message when unlocking texture in spherical harmonics.
On some tracks it was reporting following message:
[warn   ] GLWrap: OpenGL debug callback - API
[warn   ] GLWrap:     Error type : ERROR
[warn   ] GLWrap:     Severity : HIGH
[warn   ] GLWrap:     Message : GL_INVALID_VALUE error generated. Size and/or offset out of range.

This fixes #2504
2016-05-24 18:59:51 +02:00
Benau
221a757942 Merge branch 'arena_ai_profiling' 2016-05-24 15:52:32 +08:00
Benau
63a3b50bb7 More details on profiling 2016-05-24 15:50:34 +08:00
Benau
f4e297c415 Merge branch 'advanced_soccer_ai' into arena_ai_profiling 2016-05-24 15:49:25 +08:00
Benau
a18c53f4e7 Add more defense 2016-05-24 15:48:38 +08:00
hiker
5f6f1ec448 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-05-24 17:37:28 +10:00
Benau
625f403a6c Update CHANGELOG.md 2016-05-24 09:13:29 +08:00
hiker
de7ba54b90 Updated debug outpout (commented out). 2016-05-24 09:19:54 +10:00
Benau
02779e39a9 Merge remote-tracking branch 'origin/advanced_soccer_ai' into arena_ai_profiling 2016-05-21 11:41:02 +08:00
Benau
ae18983655 Fix wrong colon 2016-05-21 11:31:43 +08:00
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
Benau
390f45a9d1 Fix crashes in arena profiling mode
Notice: you need to merge arena_ai_profiling into here to test
2016-05-21 01:11:37 +08:00
Benau
0f9438d824 Use math formula to determine overtake position 2016-05-21 00:37:11 +08: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
Benau
a94fc6c1c3 Fix goal target not updated when going back
Also fix some unitialized value issue
2016-05-18 00:50:29 +08:00
Benau
de8d172c07 Improvements in soccer mode with minimap
1. Larger ball

2. Draw goal line of two teams in minimap
2016-05-17 16:01:27 +08:00
Benau
d2f26fe70d First playable advanced soccer ai 2016-05-16 15:24:05 +08:00
Benau
748051871c Get rid of two more member values 2016-05-16 07:54:03 +08:00
Benau
b5345c8b31 Remove unneeded memeber 2016-05-16 07:19:18 +08:00
Benau
7e8ca70bc6 First version of advanced soccer ai 2016-05-16 00:46:06 +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