Commit Graph

17168 Commits

Author SHA1 Message Date
Benau
24f926b780 Merge remote-tracking branch 'origin/spare_tire_kart' 2016-10-18 14:32:44 +08:00
Benau
8eb8e805eb Fix dropping of normal map wheel in battle mode 2016-10-18 14:18:51 +08:00
Benau
f1caba7932 Make ArenaAI reverse more naturally 2016-10-18 10:33:27 +08:00
Benau
9aa92cfe30 Fix profiling mode framerate regression 2016-10-18 09:55:30 +08:00
auria.mg
8c0fe53ff2 Fix texture mirroring on alpha blend/test shaders. See #2167 2016-10-17 19:46:21 -04:00
auria.mg
9d1b115e59 Don't call OpenAL's position method when audio is disabled 2016-10-17 19:15:28 -04:00
auria.mg
513e32d9ff Fix bug that could cause reversible textures to be mirrorred twice when driving the track in reverse (see #2167) 2016-10-17 19:09:01 -04:00
Deve
28f04b472b Merge pull request #2654 from LoadingPleaseWait/redundant-includes
Remove duplicate include statements from kart.cpp
2016-10-17 11:02:38 +02:00
LoadingPleaseWait
eddf39b8a1 Remove duplicate include statements from kart.cpp 2016-10-17 03:36:29 -05:00
deve
5502fa4ebe Declare custom alpha also when bindless sampler is enabled 2016-10-17 08:23:27 +02:00
Benau
caf095ed60 Add improvements from auria and devee 2016-10-17 09:13:07 +08:00
Benau
af223ddf24 Try to use sun color to determine custom alpha for ghost karts
This may need more adjustments, also add custom_alpha uniform float
to transparent fragment shader to remove duplicated shader
2016-10-17 01:03:10 +08:00
Benau
23a1b08efe Allow normal map karts to be used in ghost race
Also split ghost karts out of additive shader, so fixed issues like
"drivers are facing backwards", "water in abyss affects ghost karts"

Todo: maybe transparency depend on current track color?
2016-10-16 15:40:40 +08:00
auria.mg
929b9b5c20 Stop world imer when game is paused 2016-10-15 20:28:48 -04:00
auria.mg
020edf1679 Add support for directional (forward-only or backwards-only) driveline segments 2016-10-15 18:56:13 -04:00
Benau
1f8149f138 Merge remote-tracking branch 'origin/skinned_mesh_normal_map' 2016-10-15 15:25:20 +08:00
Benau
604e454f33 Fix normal map in library and track objects if they are animated 2016-10-15 15:21:34 +08:00
Benau
efb6b7431a Try to make skinned mesh work with normal map 2016-10-15 00:17:09 +08:00
hiker
35e382b893 Remove unnecessary request for server address,since it is now included
for each server in the list of all servers.
2016-10-14 18:08:39 +11:00
Benau
f70a64f61a Fix controller and text billboard leaking in kart 2016-10-14 12:01:37 +08:00
Benau
e09fe6ff8a Fix memory leak of mesh tool 2016-10-13 14:08:58 +08:00
hiker
62b9b93d10 Merge branch 'master' of github.com:supertuxkart/stk-code 2016-10-13 14:06:48 +11:00
hiker
85e0fed9b7 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-10-13 11:14:40 +11:00
hiker
83ffbd96e1 Better error message in case of a failure to creaet a server. 2016-10-12 17:21:15 +11:00
hiker
061827a1ac Ported to use the new server (Issue65 branch). 2016-10-12 17:09:57 +11:00
Benau
965e901796 Fix typo 2016-10-12 14:00:51 +08:00
Benau
48e6128e12 Grab light in the correct place, fixed all leaking of lights 2016-10-12 11:48:50 +08:00
Benau
ddcf6fbb14 Fix memory leaking when changing resolution 2016-10-12 10:28:33 +08:00
Benau
76f32b4a41 Fix an unfree Atom 2016-10-12 09:52:34 +08:00
Benau
7df560ae63 Fix leaking of scripting engine 2016-10-12 09:30:08 +08:00
Benau
b2cdc8c97e Fix memory leak of unicolor texture
Also try to hold them until the last moment, this may need some
testing.
2016-10-11 16:25:22 +08:00
hiker
b0bb6ce00f Simplified structure. 2016-10-11 18:13:21 +11:00
hiker
3243f81f10 Avoid crash. 2016-10-11 18:02:11 +11:00
hiker
68f5259f4d Removed static variables and properly initialised in setup, which
should allow this protocol to work for more than one race.
Back-ported to master.
2016-10-11 17:58:43 +11:00
Benau
ef7201cf51 Remove an unneeded line 2016-10-11 12:24:36 +08:00
Benau
fb79cf3a6e Let spare tire karts follow bounding box points 2016-10-11 10:52:08 +08:00
Benau
28f1e45f79 Really fix model view widget 2016-10-11 09:09:09 +08:00
hiker
7b3fc04d26 Removed debug output. 2016-10-11 08:46:14 +11:00
hiker
09ce5515b0 Avoid extrapolation by making sure the client starts after receiving
a message from the server, and only updating the previous position
if the new previous position is indeed before the current client time.
Fixed conflicts, removed dumb-client related interpolation code, left
client starting in place.
2016-10-11 08:44:17 +11:00
Deve
850b23db1f Fixed setting viewport in multiplayer games.
It was broken in commit 5cfed1bc1c.

We mix irr_driver->getVideoDriver()->setViewPort() and glViewport(...) functions and thus the first one, which is executed during camera activation, in some cases doesn't work. It compares the viewport to values which has been set last time and thinks that nothing changed.

It only happens on single player (with single camera), so we just restore the viewport to fullscreen after scene rendering to workaround the issue.

Actually the problem was that it was set after camera activation, which overwrote proper values.

I also fixed SSAO, RSM and normals vizualization in multiplayer games.
2016-10-10 22:47:30 +02:00
Benau
6750fb3c94 Fix leaking of script engine 2016-10-11 00:11:45 +08:00
Benau
1a9a4c626e Properly add the model view widget
Use add() will set angle = 0 in ModelViewWidget
2016-10-10 14:38:30 +08:00
Benau
d1c1435b55 Use a better string 2016-10-10 05:16:19 +00:00
Benau
8e2d7c5499 Fix memory leaks and uninitialized values of ShadowMatrices 2016-10-10 13:04:40 +08:00
Benau
d39f5e487b Don't set position and target of camera the same
Otherwise NAN will be calculated in ViewArea of camera
2016-10-10 13:04:40 +08:00
Benau
aaa0e11770 Fix using uninitialized values when init() the first time 2016-10-10 13:04:40 +08:00
Benau
03f9fb35da Fix valgrind warning 2016-10-10 13:04:34 +08:00
Benau
4ed599403e Show a message when a life gained 2016-10-10 08:47:10 +08:00
hiker
91363f820b Disable slow-down of game time in case of very low FPS when networking
is used (this would desynchronise client and server).
2016-10-10 09:54:44 +11:00
hiker
d00f2abb0b Fixed item collection (token must not be tested by protocols anymore). 2016-10-10 09:54:11 +11:00