Commit Graph

13269 Commits

Author SHA1 Message Date
Benau
10909b9556 Remove m_scale_rtts_factor == 1.0f in image quality for now
Because not working in advanced pipeline
2017-07-20 10:19:30 +08:00
Deve
11b2409fab Activate accelerometer only if needed 2017-07-18 21:43:45 +02:00
Deve
d44802a482 Add a workaround for some qualcomm devices on android 4.4 2017-07-11 00:37:31 +02:00
Deve
70c481cb26 Add a possibility to set android version in graphics restrictions. 2017-07-10 22:54:38 +02:00
Benau
8653d410f8 Option 1 for fixing android 4.4
Reinit vertex attribute pointer each time, performance may hurt
2017-07-09 00:46:42 +08:00
QwertyChouskie
7b185ce2f1 Add new GPwin cutscene (#2875)
* Add new cutscene

* Cleanup

* Make all podiums arrive at the same time
2017-07-06 20:54:42 -04:00
Deve
6fc285b794 Show only native resolution in settings on android.
Changing resolution is atm. not available, so adding 1024x768 doesn't have a sense.
2017-07-06 23:18:43 +02:00
Deve
9fc1acc4c0 Allow to draw steering wheel on the right side 2017-07-05 21:21:33 +02:00
Deve
2cda14686d Simplify touch device settings 2017-07-05 20:43:57 +02:00
Deve
09262a606b Add missing copyright.
The EGL context manager has been written from scratch, so our copyright should be fine.
2017-07-04 22:55:08 +02:00
Deve
f13f69851f Fixed black screen on some GLES 2.0 devices.
It affects only GLES 2.0. The GLES >= 3.0 and OpenGL allow sized internal formats.
2017-06-29 23:00:08 +02:00
Deve
8462c552d1 Add a warning for very low screen resolutions.
There are some android devices that are 320x240, 400x240 etc... Bare minimum to run STK is 640x480. Otherwise some important gui elements are not displayed and it may crash in guiengine.
2017-06-28 21:32:12 +02:00
Deve
68cfdfbf17 Minor fix for android progress bar that probably doesn't make any difference anyway 2017-06-24 21:41:36 +02:00
Matthew Trescott
1d8a709e38 Fix the --cutscene=<cutscene> commandline flag (#2861)
If the menu is shown, there's this ugly purple background (the OpenGL default, I think) and the cutscene won't play.
2017-06-17 18:49:00 -04:00
Matthew Trescott
3dee6ce5dd Add option to unlock everything (and disable that option) from the command line
This was a complaint of Michael Larabel from Phoronix and is why he doesn't use STK in benchmarks; because the new tracks are mostly locked from the start and unavailable even with the --track flag
2017-06-17 11:45:57 -04:00
QwertyChouskie
10e439b6a1 Clean up output (#2856) 2017-06-13 20:50:13 -04:00
QwertyChouskie
be00283b2e Fix a few compiler warnings (#2854)
* Fix compiler warnings in gpwrap.cpp

* Fix compiler warning in skybox.cpp
2017-06-11 15:59:12 -04:00
Deve
c8137fc0fa Add a possibility to set a window class in irr device.
This makes one ugly #ifdef less in the irr_driver.cpp.
2017-05-25 21:26:31 +02:00
Deve
ce0a7bde84 Correct the rule for Polish plural forms.
It's already fixed in transifex.
2017-05-25 16:17:38 +02:00
Deve
8968706c09 Merge branch 'wayland' 2017-05-18 21:25:53 +02:00
Deve
1966d3f072 Use x11 functions in irr_driver only if x11 device was created 2017-05-14 00:05:36 +02:00
hiker
91bad37939 Fixed incorrect position for a rubber ball in a cannon. 2017-05-13 21:38:59 +10:00
hiker
bdbc7fd728 Reduce the height of a rubber ball in a cannon over time, so that
it starts closer to the ground when released after the cannon.
2017-05-12 17:52:15 +10:00
hiker
490bef516e Fix crash: the ProjectileManager must be cleared before the CheckManager
(since a rubber ball will emove itself from all cannon checklines, so
a crash happens if the checklines are gone).
2017-05-12 17:39:53 +10:00
hiker
1b75ed9b4c First fix for the basket-ball in cannon - make the ball follow
the cannon.
2017-05-12 17:11:46 +10:00
Deve
23c428160f Some fixes 2017-05-12 00:57:01 +02:00
hiker
03f4b76a32 Fixed various compiler warnings. 2017-05-09 09:34:37 +10:00
hiker
3a176f818c Merge remote-tracking branch 'origin/master' 2017-05-09 09:26:30 +10:00
auria.mg
dbd0cfa7d0 Expose the time of day to scripting, see #2315 2017-05-06 18:48:18 -04:00
auria.mg
242c8be90c Pause the bomb during animations, fixes #2846 2017-05-06 18:46:25 -04:00
Deve
e02a8f4448 Allow to make single build with both x11 and wayland device 2017-05-06 21:53:32 +02:00
QwertyChouskie
58a170b4b7 Update string (#2824)
* Change message

* Update string in another file.

* Update addons_manager.cpp

* Update news_manager.cpp
2017-05-04 19:17:08 -04:00
auria.mg
553207fc11 Fix assertion failure if a bomb explodes while in a cannon, see #2846 (the bug is not quite fixed) 2017-05-04 19:12:17 -04:00
Deve
fc79ee50d0 Add the ping/pong events to avoid non-responding window and few other minor fixes 2017-04-28 23:04:34 +02:00
Deve
035c33f960 Merge branch 'master' into wayland 2017-04-22 21:11:10 +02:00
hiker
db71824804 Minor documentation update. 2017-04-19 23:33:31 +10:00
hiker
752b0645fb Merge branch 'master' of github.com:supertuxkart/stk-code 2017-04-18 23:17:04 +10:00
hiker
c23873da37 Properly fix driving no physical objects to enable smoothing (e.g.
volcano in both directions).
2017-04-18 23:07:24 +10:00
Benau
31f9acf7ed Update config.xml with libopenglrecorder
Consider use mjpeg / h264 (DIY compile) for HQ video
2017-04-18 14:08:30 +08:00
auria.mg
3fcf62a84a Add support for multiple crah sounds, update sfx credits 2017-04-17 20:42:20 -04:00
Benau
fd07df4251 Merge remote-tracking branch 'origin/libopenglrecorder' 2017-04-17 09:49:36 +08:00
Benau
6911db0ac2 Remove duplicated code 2017-04-17 09:28:41 +08:00
auria.mg
2da86cab08 Cleanup hack that seems unecessary 2017-04-16 21:17:13 -04:00
Benau
487d007b17 Try to use progress bar to indicate the encoding progress
Need an updated libopenglrecorder
2017-04-15 16:30:43 +08:00
Benau
f3e0d2f9e9 Revert move capture right before glfencesync if possible 2017-04-13 15:13:47 +08:00
Benau
4de0ca83aa Move capture right before glfencesync if possible 2017-04-13 13:59:36 +08:00
hiker
158a771363 Merge branch 'master' of github.com:supertuxkart/stk-code 2017-04-13 00:22:10 +10:00
hiker
4dce66ba6d Worked around incorrect normal calculation if the kart was driving
on a physical object.
2017-04-13 00:21:35 +10:00
Benau
fe0fe828a0 Fix travis build 2017-04-12 13:41:14 +08:00
Benau
b1f9ce2dbd Remove libwebm and recorder code 2017-04-12 11:51:59 +08:00
auria.mg
ad092f0213 Add missing language 2017-04-11 18:42:32 -04:00
deve
6599ceddec Fixed server only build 2017-04-10 06:15:01 +02:00
Benau
f30962b944 Use lambda to workaround __stdcall issue 2017-04-10 10:00:34 +08:00
Benau
bcf996e291 Fix callback 2017-04-10 08:53:55 +08:00
Benau
ab10f335e9 Remove glew include in libopenrecorder 2017-04-10 01:26:52 +08:00
Benau
c69ea65ac2 Use RGBA for capture 2017-04-09 16:19:09 +08:00
Deve
c06ea3447d Revert "Move loadSfx to the SFXManager thread"
This reverts commit ce426d82cc.
2017-04-09 09:29:25 +02:00
Benau
a5759afac7 Improvements from Stragus and leyyin 2017-04-09 15:28:28 +08:00
Benau
156b799011 Remove STK headers in recorder and use c++11 thread library 2017-04-09 14:16:45 +08:00
Deve
9efe8ae4fa One more fix for mingw 2017-04-07 21:34:28 +02:00
Deve
724cb100e0 Make grass material more bright in legacy pipeline 2017-04-07 00:02:31 +02:00
Benau
b2d3817de3 Merge remote-tracking branch 'origin/master' into advanced_recording 2017-04-06 09:43:36 +08:00
Benau
ab554315b5 Remove non-supported video format 2017-04-06 09:37:32 +08:00
hiker
96bdf77050 Merge branch 'physics-tweaks' 2017-04-06 00:06:22 +10:00
hiker
00bba293ad Merge remote-tracking branch 'origin/master' into physics-tweaks 2017-04-05 23:59:34 +10:00
hiker
6c4f6d1cf5 Merge branch 'master' of github.com:supertuxkart/stk-code 2017-04-05 23:14:29 +10:00
Benau
391d31659b Remove hardcoded 44100 samplerate 2017-04-05 15:43:47 +08:00
Benau
bb529c011e Add message queue for result callback 2017-04-05 12:31:39 +08:00
Benau
1a072d609f Add vp9 encode support, though it encodes very slowly 2017-04-05 01:10:44 +08:00
Benau
85de10ffb5 Fix memory leak 2017-04-04 23:53:44 +08:00
Benau
b7c709c709 Allow muxing mjpeg with vorbis audio with mkv
Not sure if playable in with all players
2017-04-04 16:12:09 +08:00
Benau
b0d0a0739e Add CMake flag to enable / disable recorder 2017-04-04 14:23:04 +08:00
Benau
0bb5bfb930 Don't use dlloaded function in pulseaudio recorder namespace 2017-04-04 12:19:29 +08:00
Benau
ea6719990a Move all recording code into recorder folder 2017-04-04 10:04:55 +08:00
Benau
19f88e3939 Allow stk to be built with 64bit msvc
Please use lastest adv_recording_64 branch in repo
2017-04-03 01:33:13 +08:00
hiker
fdcb39b8fc Fix #2812 (non-smooth cannon behaviour). 2017-04-02 21:06:10 +10:00
Benau
8a5e28251e Fix mingw build 2017-04-02 14:55:55 +08:00
Benau
adf889a885 End vorbis encoder thread more properly 2017-04-02 10:36:21 +08:00
Benau
ab2ce24914 Reduce cpu usage 2017-04-02 10:28:46 +08:00
Benau
9bfe4200c4 Only use TJFLAG_FASTDCT if supported 2017-04-02 00:43:31 +08:00
Benau
7f23d062b7 Use turbo jpeg for compression 2017-04-01 16:41:06 +08:00
Benau
8a8b388170 Allow pulseaudio to be loaded dynamically 2017-04-01 15:21:58 +08:00
Benau
294aa3ad48 Allow recording 16bit pcm data with any channels 2017-04-01 11:02:14 +08:00
Benau
cfea104a50 Apply camera fix from Stragus 2017-04-01 10:33:48 +08:00
Benau
cacbdbd668 Allow recording audio in windows using wasapi 2017-04-01 00:52:38 +08:00
hiker
794f1b59ed Removed unused code. 2017-03-31 23:30:55 +11:00
hiker
db31237d19 Removed old workaround for uneveness in tracks, which contributed
to karts sometimes being able to drive up walls.
2017-03-31 23:13:38 +11:00
Benau
29d0839162 Move libvpx parameters to user config 2017-03-31 12:22:21 +08:00
Benau
21ff135b04 Merge remote-tracking branch 'origin/master' into advanced_recording 2017-03-31 11:50:24 +08:00
Benau
9039324145 Allow muxing into webm using libwebm 2017-03-30 13:30:21 +08:00
hiker
1cd5bb66c9 Try to better handle small 'gaps' (or perhaps floating point
rounding errors) in tracks that can cause odd physics behaviour
(e.g. being able td drive upp the walls).
2017-03-30 00:08:30 +11:00
hiker
3da2c07d62 Enable friction to be changed per wheel: previously sliding was only
enabled once the whole kart chassis was tilted enough, but karts could
still end up driving on a wall (one wheel on a wall would not tilt the
chassis enough to trigger sliding, but give the kart an up velocity
which allowed it to drive on the wall). Friction is now determined
by the normal of the triangle hit by the raycast.
2017-03-29 08:32:50 +11:00
Deve
af98b526d6 Give few more fps in GLES renderer by pre-computing diffuse/specular color 2017-03-28 22:15:33 +02:00
QwertyChouskie
0123228c20 Set menu FPS to 60 (#2823)
Smoother, see https://github.com/supertuxkart/stk-code/issues/2302.
2017-03-27 21:56:20 -04:00
Benau
df758669d3 Use high resolution timer for AV sync 2017-03-28 00:44:12 +08:00
Deve
0f9151e5d2 Move recording settings to separate group 2017-03-27 00:31:55 +02:00
Deve
075afde636 Fixed kart particles for GLES with disabled advanced lighting 2017-03-27 00:25:39 +02:00
Deve
a7f0d3762c Some fixes for GLES renderer.
- Don't use BGRA format at all. It doesn't work with non-typical cases (i.e. with srgb or compressed textures) and also casues artifacts on some android devices. I kept the extension in central settings, but it probably won't be used.
- Use sRGB texture format when advanced lighting is enabled. This makes it closer to the original OpenGL renderer and also avoids to have even more #ifdef's for sRGB conversions.
- Keep RGBA textures for non-advanced lighting to make it simpler.

Now advanced lighting in GLES looks almost the same as in OpenGL 3.x (without shadows/GI)
2017-03-25 22:23:46 +01:00
Benau
be103dd666 Implement real time vp8 encoding 2017-03-25 16:30:41 +08:00
Deve
5931e20f8b Use highp precision qualifier.
For OpenGL 3.x renderer it only matters for some buggy drivers (i.e old AMD driver that complains about missing precision qualifier). Based on specification is should have no effect and was added for compatibility with GL ES.

In our case vertex and fragment must have the same precision because we use common header for both shader types and the precision for uniform variables must match.
Also "precision highp float;" is defined by default for both vertex and fragment shaders, so it seems to be more proper.

This will hopefully solve the problem with nvidia driver that tries to use f16vec4 instead of just vec4, see:
https://forum.freegamedev.net/viewtopic.php?f=17&t=7397&sid=06682ddb05ee9fbf48a2984d0bd48d5b
2017-03-24 22:21:09 +01:00
Benau
a68c085e95 Use pulseaudio + vorbisenc for sound recording (linux for now) 2017-03-24 21:51:17 +08:00
hiker
9fdd39b075 Removed unused code. 2017-03-24 16:35:45 +11:00
Marianne Gagnon
8461ffcc68 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2017-03-23 21:03:10 -04:00
Marianne Gagnon
b85d84c9dd Remove outdated Apple-specific code 2017-03-23 21:02:16 -04:00
Benau
372ce6923c Log in terminal if recording isn't supported 2017-03-24 08:51:42 +08:00
hiker
b26d833e84 Fixed compiler warnings. 2017-03-24 08:41:17 +11:00
hiker
b8655e53cc Added support to modify the angular factor of a kart. The angular
factor can be used to reduce the effect of an impulse for roll
and pitch - keeping karts more parallel to the ground.
2017-03-23 19:07:34 +11:00
Benau
2660a5b332 Allow message queue to be able to do linebreak
Also set "/" and "\" to be breakable
2017-03-23 00:51:50 +08:00
Benau
81c6735ba2 Fix when getNumProcessors return 0 2017-03-22 20:47:34 +08:00
deve
a3a8289836 Fixed a hang on startup under cygwin 2017-03-22 13:17:04 +01:00
hiker
f55c39b3b1 Support setting of friction for karts, moveable and track in stk_config.xml
and kart_characteristics.xml (for now no changed settings, all are at
tbe default of 0.5).
2017-03-22 19:52:03 +11:00
Benau
41e66bef37 Allow keeping target name after changing resolution 2017-03-22 12:44:32 +08:00
Benau
9a69859c8f Fix crash when deleting AVIWriter with file closing 2017-03-22 11:34:42 +08:00
Benau
7e9f723038 Allow recording video with ctrl + printscreen 2017-03-22 10:43:02 +08:00
Benau
4b663a08ce Use array deallocation 2017-03-22 09:58:22 +08:00
Benau
9034d89a31 Add the missing clear() 2017-03-22 09:53:02 +08:00
Benau
58c665efc6 Merge branch 'avi_writer' 2017-03-22 09:14:35 +08:00
Benau
740bf19446 Fix grammar 2017-03-22 09:08:44 +08:00
Benau
6ef70e2e7c Use message queue to inform users about recording status 2017-03-22 09:02:21 +08:00
Benau
2b9a84253a Make MessageQueue thread-safe 2017-03-22 08:40:58 +08:00
Benau
668b28f632 Allow to config whether to limit game framerate with recordings 2017-03-22 07:43:00 +08:00
Deve
4ef8ec3af2 Fixed a warning in shaders compilation 2017-03-21 19:42:53 +01:00
Deve
583b858860 Handle #stk_include in better way.
It allows to use it recursively.
2017-03-21 18:41:18 +01:00
Benau
f58cf2d9cc Better handling with thread 2017-03-22 00:39:24 +08:00
Benau
3ed52e26d0 Call createFile only in AVIWriter thread 2017-03-21 16:16:10 +08:00
Benau
e2482e602c Don't use irrlicht image 2017-03-21 14:35:20 +08:00
hiker
5bbacfc72d Allow tracks to set their friction (defaults to the bullet default 0f 0.5). 2017-03-21 16:24:29 +11:00
Benau
449d63c0d8 Save record option in user config 2017-03-21 13:08:08 +08:00
Benau
547d28a9e4 Use jpeg-turbo library in msvc 2017-03-21 09:17:39 +08:00
samuncle
8265bb14f3 Revert, the high frequency noise has it's own branch 2017-03-20 15:15:51 -05:00
Sam
16c0736f8b Add base for detail map with splatting 2017-03-20 20:49:54 +01:00
Benau
3087a7c856 Don't call malloc for each frame 2017-03-21 01:09:20 +08:00
Benau
78dcabb143 Try to maintain a better synchronization with game framerate 2017-03-20 16:16:26 +08:00
Deve
2a64ce94c8 Some fixes for scale rtts.
- Don't force using rtts when advanced lighting is disabled because it actually makes the game slower
- Keep the minimap and kart selection screen in high quality
2017-03-18 22:26:35 +01:00
Benau
88cbcd202c Don't enable AVIWriter if PBO is not usable 2017-03-18 16:06:38 +08:00
Benau
8259026ac1 Make AVIWriter threaded and get pixel with 3 async PBOs
Also try to record at a fixed 24fps
2017-03-18 15:50:18 +08:00
Benau
21cbcd9185 Load speedmeter texture before rendering the first frame 2017-03-18 08:30:50 +08:00
Benau
d3d7c95b4d Fix msvc build 2017-03-17 17:19:46 +08:00
Benau
65da13fc52 Merge remote-tracking branch 'origin/threaded_tex_loader' into avi_writer 2017-03-17 16:31:32 +08:00
Benau
41844de6a5 Apply real fix from Stragus for normal map 2017-03-17 13:08:08 +08:00
hiker
6ac6d9ebfe Fixed compiler warnings. 2017-03-17 15:56:47 +11:00
Benau
e1a563612f Avoid calling gamma correction on non-srgb png 2017-03-17 10:15:06 +08:00
Benau
40a94b5562 First try to use Stragus's normal map filter on normal map texture 2017-03-17 09:57:45 +08:00
Benau
de3c9d7411 Allow to preserve more texture config 2017-03-16 16:20:05 +08:00
Benau
0f218cff32 Allow re-create ThreadedTexLoader with suitable capacity 2017-03-16 13:15:33 +08:00
hiker
9a5eec3761 Try tp reduce sudden rotation after a collision, and reduce frequencies
of kart being pushed into the air.
2017-03-16 16:14:48 +11:00
hiker
0f37f7cdc0 Merge branch 'master' of github.com:supertuxkart/stk-code 2017-03-16 15:59:10 +11:00
Benau
ce76abf4fe Merge remote-tracking branch 'origin/master' into hq_mipmap_generator 2017-03-16 11:23:27 +08:00
Benau
ce426d82cc Move loadSfx to the SFXManager thread 2017-03-16 11:01:46 +08:00
Benau
e0fcf7c613 Fix build for real 2017-03-16 10:52:12 +08:00