hiker
27b5409487
Use ticks (at the physics frame rate) for time measurement, which
...
avoids potential floating point errors (in networking).
2018-02-21 22:18:45 +11:00
hiker
208c5eb6d8
Merge remote-tracking branch 'origin/master' into fix-timestep
2018-02-21 08:35:58 +11:00
Benau
8daebe06e1
Allow creating wan server in command line
...
It can only be used with a saved online player, also fix a weird
crash if server failed to create (wan is NULL)
2018-02-20 15:11:58 +08:00
Benau
22c755a328
Show protocol name when it is terminated (easier for debugging)
2018-02-20 13:33:43 +08:00
Benau
14b401b54e
Use std atomic for server state
2018-02-20 11:14:57 +08:00
Benau
04a6f6d08b
Warn user about multiple instance of STK server
2018-02-20 10:11:09 +08:00
Benau
3223d05c6c
Merge remote-tracking branch 'origin/master' into network_improvements
2018-02-20 00:14:29 +08:00
Benau
4ab823cfbc
Move lan network socket to thread main loop, fixed leaking of it too
...
Also call enet_deinitialize when destroy STKHost
2018-02-19 11:36:32 +08:00
Benau
e393e3d4f0
With shared_ptr protocol is not leakable
2018-02-18 14:50:06 +08:00
Benau
e52ab5888c
Don't crash when close STK window directly
2018-02-18 14:13:24 +08:00
Benau
c5b986e874
Allow going back to online menu if server connection is lost
2018-02-18 14:06:17 +08:00
Benau
6fd7fb0e0e
Allow reconnecting to lan servers as many time as possible
2018-02-18 13:24:29 +08:00
Benau
0a5c1a69c7
Use shared_ptr for protocol to avoid leaking
...
With weak_ptr it's also possible to auto clear LobbyProtocol when
STKHost is shutdown
2018-02-18 12:39:05 +08:00
Benau
bcf8e4e5fe
Allow shutdown STKHost from dialog
2018-02-17 16:25:53 +08:00
Benau
4c1cc50955
Don't pause timer in network as it breaks rewind
...
Also remove the unneed protocol manager checking
2018-02-17 15:38:56 +08:00
Benau
372753f505
Use atomic flag to start / stop listening thread
2018-02-17 11:40:48 +08:00
Benau
cfeadf335c
Move some code to header
2018-02-17 10:51:33 +08:00
Benau
c5788a2c90
Move the cleaning of events to destructor of protocol manager
...
So that the last one who deletes it can clear all the remaining data
properly (ie if it's STKHost listening thread)
Remove the assert in async update thread as it may not be true for
the first thread creation
2018-02-16 00:48:27 +08:00
Benau
05f7c014dd
Create a prototype for thread-safe protocol manager
...
Using weak and shared_ptr, if !lock(), than it was atomtically
destroyed
2018-02-15 16:47:04 +08:00
Benau
3d8efcdfa1
Use >= for counter in case of some peer disconnect in between for completing race end
2018-02-15 15:33:18 +08:00
Benau
fa2a8bccd3
Reset available karts and tracks each selection
2018-02-15 14:07:58 +08:00
Benau
20a2bc3bbb
Terminate controller and game event protocols when exit result screen
2018-02-15 13:28:28 +08:00
Benau
e7d3658a53
Merge remote-tracking branch 'origin/network_improvements' into game_protocol
2018-02-15 10:36:14 +08:00
hiker
c0333fe0f7
Bugfix: TimeInfo objects were missing for substeps, resulting in
...
very stuttering game play.
2018-02-15 10:06:13 +11:00
Deve
959f33223e
Enable multitouch gui only if touchscreen is available
2018-02-14 22:28:55 +01:00
Benau
469f7d2fc5
Drop player if he has incompatible karts / tracks
2018-02-14 12:23:05 +08:00
auria.mg
e26239e364
Improve the input sensing text to be a bit clearer
2018-02-13 20:35:07 -05:00
hiker
4bd7848431
Removed duplicated update of the ProtocolManager, and only
...
update it when STKHost exists (otherwise STK will crash since
ProtocolManager can get called when it does not exist).
2018-02-14 09:27:13 +11:00
hiker
2a30f75b78
Avoid crash that can happen if the first DT is large and event
...
happens during that time.
2018-02-14 09:20:45 +11:00
hiker
df5adbc320
Fixed comment.
2018-02-14 09:20:27 +11:00
Benau
8a1ef31f4a
Allow remove unusable karts or tracks in network game
2018-02-14 01:57:05 +08:00
Benau
46416781fa
Make it possible to restart race after going back to lobby
...
At the moment the token is reset by client after each restart
2018-02-13 15:20:55 +08:00
auria.mg
196b5a2bbe
Minor ajustments to kart color screen, make kart slightly bigger, make XML cleaner
2018-02-12 20:22:35 -05:00
auria.mg
ceeb79f3a4
Restore accidentally removed resolution ajustment in kart color selection screen
2018-02-12 20:16:31 -05:00
auria.mg
2830dabfc1
Improve kart color selection screen, fixes #3122
2018-02-12 20:08:51 -05:00
hiker
26401972d2
Merge branch 'fix-timestep' into game_protocol
2018-02-13 08:41:49 +11:00
Deve
4cc57dd754
Fixed a crash when logging long messages
2018-02-12 21:31:32 +01:00
hiker
000b613b8b
Fixed compiler warnings.
2018-02-12 18:10:52 +11:00
hiker
4ce66e754b
Fixed compiler warnings.
2018-02-12 18:07:51 +11:00
hiker
fa20e4f866
Only issue sfx commands once per rendered frame (during the last
...
substep).
2018-02-12 18:01:05 +11:00
hiker
c7bc47f2e3
Fixed world update to be fixed at the physics frame rate.
2018-02-12 09:54:46 +11:00
hiker
4d03fbd1fb
Made the physics time step size configurable in the config file.
2018-02-12 08:23:06 +11:00
Benau
971db902a8
Fix queries stop working after changing resolution
2018-02-11 15:06:35 +08:00
Benau
0e3398a46b
Use eglGetProcAddress for debug function
2018-02-11 14:56:43 +08:00
Benau
7ebc33bcaa
Fix server only build
2018-02-11 02:03:09 +08:00
Benau
b42c540eed
Allow to save current GPU query string to apitrace
2018-02-11 01:53:30 +08:00
hiker
37d81be033
Made the physics time step size configurable in the config file.
2018-02-10 17:55:45 +11:00
hiker
4f54fb7898
Avoid crash in history replay (dirty workaround),
2018-02-10 17:51:12 +11:00
hiker
52e9330212
Removed debug output.
2018-02-10 17:34:10 +11:00
Benau
3290321c5d
PlayerController can become EndController anytime
2018-02-09 18:00:19 +08:00
Benau
366313d29d
Avoid an unknown value from attachment rewind
2018-02-09 17:59:48 +08:00
hiker
434a9c5dcc
Fixed compiler warnings.
2018-02-09 16:14:38 +11:00
hiker
4d75042f3b
Fixed compiler warnings.
2018-02-09 16:12:44 +11:00
hiker
113e3c0c09
Merge branch 'game_protocol' of github.com:supertuxkart/stk-code into game_protocol
2018-02-09 16:09:39 +11:00
hiker
8eddff3e34
Merge branch 'speed-cap-to-physics' into game_protocol
2018-02-09 16:03:58 +11:00
hiker
b3243a3589
Merge branch 'speed-cap-to-physics'
2018-02-09 09:38:34 +11:00
hiker
6c0f97261a
Fixed missing startup boost, improved maths to only use
...
velocity in the current plane for boosting.
2018-02-09 09:15:23 +11:00
Benau
9a5ce54c4f
Merge remote-tracking branch 'origin/master' into game_protocol
2018-02-09 00:53:02 +08:00
Benau
7210992e3d
Prevent local player == 0 when in network mode
2018-02-09 00:49:55 +08:00
Benau
19c705f27c
Make wrong way message always centered, fix #3115
2018-02-08 13:15:22 +08:00
Ben Krajancic
d96b6b92ce
Split screen regression fixes ( #3116 )
...
* Fix lapcount
* Fix selection box color
* Fix messages on screen
* Fix scaling
* Fix for icons
* Styling fixes
* fix style issue
* Fix calls
* Final call fix
2018-02-07 18:52:53 -05:00
Benau
0e5b7b532c
Further boost stk by writing 1 less framebuffer attachment
...
Now we can get determine the background color by depth, so
the alpha tricks in diffuse color fbo is not necessary
And using rgba8 to pack normal doesn't seem to cause visual glitches.
2018-02-07 12:49:45 +08:00
hiker
777435fb35
Merge branch 'master' of github.com:supertuxkart/stk-code
2018-02-07 09:58:22 +11:00
Deve
f101c9e366
Fixed android compilation
2018-02-06 23:17:34 +01:00
hiker
c37f2887c1
Fixed compiler warnings and coding style issues.
2018-02-07 08:54:15 +11:00
hiker
3788a3d90d
Merge remote-tracking branch 'origin/master' into speed-cap-to-physics
2018-02-07 08:36:48 +11:00
hiker
a72ed7ef30
Merge branch 'master' of github.com:supertuxkart/stk-code
2018-02-07 08:34:51 +11:00
hiker
1f7350822c
Added buffer flushing if a history replay is aborted. Don't print
...
data to stdout when using buffering (since it slows down flushing).
2018-02-07 08:32:22 +11:00
hiker
5a07739786
Prevented a crash when aborting STK (audio thread is not shut down
...
in this case, but is getting deleted - but the audio thread might
still try to insert an update event during that time).
2018-02-07 08:22:19 +11:00
Ben Krajancic
0f3518e71b
Unlimited Split-Screen ( #3104 )
...
* Initial SplitScreen
All are upside down and player 1, 5 player does 6 even...
* Working version of splitscreen
* black screen fix
* te fix
* Update race_gui.cpp
* Change item
* wrong way fix and refactorings
* Fix icon scale, cleaning code for lap count
* Remove tabs
* Add settings option
* Fix FOV
Right now the FOV gradually decreases when going from 1,2,3,4 players. Then after 4 players it wont drop any lower. This behaviour can easily be replaced in the future
* Prevent overflow
* Unlimited splitscreen
* Space out duplicate skins across additional players
* Update stk_config.cpp
* Update irr_driver.cpp
* Update options_screen_ui.cpp
* Update irr_driver.cpp
* Update options_screen_ui.cpp
* Update race_gui.cpp
* Update irr_driver.cpp
* Fix for empty pixels at edges
* Fix referring to template not int
* Fix compile errors
* Progress towards fixing selection screen
* Begin process for selections
* Fix selection screen for >4 people
Important GUI changes included
* Disable changing rows/cols ingame
* fix sp related crash
* Styling fixes
2018-02-05 20:01:32 -05:00
hiker
2e3e594967
Merge remote-tracking branch 'origin/master' into speed-cap-to-physics
2018-02-06 11:27:02 +11:00
Ben Krajancic
0c171bfc8d
Better rescue ( #3106 )
...
* Half of the rescue animation is now placing the kart back down
* Bit of cleaning
* Single Camera Cut
* Update rescue_animation.hpp
* Update rescue_animation.cpp
* progress to fixes
* potential fix
* broken implementation
* Latest attempt
* Instant camera snap when placing the kart down
* style cleanups
* Fix BACKSLASH
HYEH
2018-02-05 19:04:00 -05:00
hiker
d5938a2447
Replaced old zipper handling in physics with minSpeed setting.
2018-02-06 08:51:17 +11:00
hiker
1c2fdc1c14
Fixed compiler warnings.
2018-02-06 08:29:18 +11:00
hiker
884e966ab9
Added capability to handle setting the maximum speed first to 0, and then
...
later to a higher value (which happens in overworld, which sets max speed
to 0, but the value got later overwritten with the normal supertuxkart max_speed
handling.
2018-02-05 16:11:19 +11:00
hiker
baa0677b1a
Handle max- and min-speed capping in phyiscs (which is frame rate
...
independent).
2018-02-05 15:57:40 +11:00
hiker
55159fbdcd
Prevented a crash when aborting STK (audio thread is not shut down
...
in this case, but is getting deleted - but the audio thread might
still try to insert an update event during that time).
2018-02-05 09:39:40 +11:00
Deve
ff884852d7
Don't hardcode stk data dir on android
2018-02-03 22:18:42 +01:00
Benau
01c2680f73
Fix runtime typo
2018-02-04 01:07:42 +08:00
Benau
ac8294abdb
Clean up debug visualization
...
Allow toggle (triangle) normal / (bi)tangent / wireframe separately
2018-02-03 13:14:15 +08:00
Benau
9d9502e99c
Move glBindVertexArray(0) to a better place for deferred enabled
2018-02-03 11:27:53 +08:00
Benau
e81e16c6da
Fix possible vao crash
...
Some bindbuffer later will invalidate the previous bound vao
2018-02-02 13:41:11 +08:00
Benau
b26e62322f
Fix polycount without artist debug mode
2018-02-02 12:08:36 +08:00
hiker
c201483f5b
Merge branch 'master' of github.com:supertuxkart/stk-code
2018-02-02 13:09:15 +11:00
hiker
f29da60ac4
Coding style fixes.
2018-02-02 09:45:15 +11:00
hiker
59f28d3746
Fixed line ending style.
2018-02-02 09:16:34 +11:00
Benau
a137665916
Fix god rays in split screen
...
Also use rgba8 fbo for the glowing of sun
2018-02-01 15:39:06 +08:00
Benau
dbb82fea94
Clear default framebuffer when drawing from our rtt for first cam
...
Also remove unused IReferenceCounted in post processing
2018-02-01 13:46:42 +08:00
Benau
baff519a21
Use the correct vertex color for rubber band
2018-02-01 11:28:38 +08:00
Benau
4dd6f75998
Rename wrong profiler item
2018-01-31 10:31:25 +08:00
leper
47dc4bdbaa
Remove enet modifications. Fixes #21 .
2018-01-30 22:06:07 +01:00
Benau
154ad8d0db
Fix skybox blending with light scatter
2018-01-31 01:31:12 +08:00
Benau
af6b075450
Clear stencil buffer when possible
2018-01-30 14:49:26 +08:00
Benau
9399db6eba
Split glow to avoid re-bind color framebuffer
2018-01-30 14:25:50 +08:00
Benau
9e57bfb73f
Split point light scatter so it can be combined together
2018-01-30 13:42:50 +08:00
Benau
9ebcdc5af3
Set DeviceManager assign more to ASSIGN in network kart selection
...
Because input manager use this to determine backspace functionality
(for rescue in game or leave a screen)
This will be reset to NO_ASSIGN when you go back to main menu screen
2018-01-29 14:50:29 +08:00
Benau
f0c03b317e
Use std::make_tuple instead of list initialization
2018-01-29 00:08:28 +08:00
Benau
9737c2f950
Further clean up framebuffer
...
Avoid using hdr framebuffer in displace and glow
Also remove stencil test in mlaa (in the pass no stencil buffer
exists in FBO_MLAA* anyway)
2018-01-28 15:10:17 +08:00
Benau
ccc83a28f2
Clean up rtts and framebuffers
...
Use rgba framebuffer for tonemap and later, don't create
unnecessary rtts.
2018-01-28 14:07:03 +08:00
Ben Krajancic
f6f051e85b
Consistent split screen ( #3105 )
...
* Splitscreen positions are now consistent across rounds
* Fix tabs
* Remove unnecessary comments
2018-01-27 19:27:17 -05:00
Deve
8cd6f61e44
Restore information about license
2018-01-26 22:18:22 +01:00
Deve
0532a41ab3
Convert tabs to spaces
2018-01-26 22:03:04 +01:00
Igor Gnatenko
aec7ca0ce9
libs: update angelscript to 2.32.0
...
Fixes: https://github.com/supertuxkart/stk-code/issues/2528
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2018-01-26 21:19:01 +01:00
Sam
f5a0e6477e
put the correct convention
2018-01-26 11:10:16 +01:00
Sam
e75f1cb799
Merge branch 'master' of https://github.com/supertuxkart/stk-code
2018-01-26 10:52:23 +01:00
Sam
a1c9ad107f
Add the possibility to disable an object for shadow pass
2018-01-26 10:51:42 +01:00
Benau
a10b62b894
Use SPTextureManager to get displace.png
...
This will allow using texture compression for it
2018-01-26 16:02:51 +08:00
Benau
97fd634ed8
Allow auto-add usable uniforms to shader
2018-01-26 16:02:31 +08:00
Benau
9e2d649b55
Warn for failed shader compile or link in GUI when artist debug mode
2018-01-26 16:02:00 +08:00
Deve
74af810d50
Fixed compilation error.
...
It was failing with "'this' was not captured for this lambda function"
2018-01-25 21:43:19 +01:00
Benau
9041649a39
Don't check for reference counting in shader mananger
...
It will not be 1 if there are fallback shaders
2018-01-25 15:51:28 +08:00
Benau
297c66bf04
Remove unused cpp and hpp files
2018-01-25 15:41:30 +08:00
Benau
2448b10cd4
Fix correct spelling of deferred
2018-01-25 15:38:10 +08:00
Benau
ff38cb6423
Clean up advanced pipeline off code
...
Don't use RTT at all in game when it's off
2018-01-25 15:36:34 +08:00
Benau
5b4be274fb
Some more fallback for legacy pipeline
2018-01-25 01:51:10 +08:00
Benau
6bcee60a1c
Merge remote-tracking branch 'origin/master' into game_protocol
2018-01-24 10:20:06 +08:00
hiker
ecbb1db2c9
Flush buffer in case of a disconnect, which allows the server to use
...
buffered logging, which will be written when the client disappears.
2018-01-24 08:39:10 +11:00
Benau
d8511956f5
Only warn for possible undeleted opengl stuff when debug build
...
Happens when you press close button in stk window.
2018-01-23 16:18:48 +08:00
Benau
9ecf952057
Don't add instance data if missing shadow shader
2018-01-23 14:27:15 +08:00
Benau
40552b3fa0
Preload all visible spm (not including physics node) properly
...
Also change reset-button.spm to swatter_anim.spm, reset button
was replaced by thunderbird long time ago
2018-01-23 13:32:30 +08:00
Benau
95c12faa10
Use map for sorted name texture (easier for debug)
2018-01-23 11:55:54 +08:00
auria.mg
8c609c87d9
Fix compilation
2018-01-22 21:17:51 -05:00
Benau
dea6dc1f3f
Try to fix OSX build by using type index which is copy constructible
2018-01-23 09:53:23 +08:00
hiker
b4d9e03e5c
On GUI-less servers the frame rate can be <1ms. Previously the minimum
...
time-step size was 1 ms, which resulted in the world time advancing
faster than real time. This caused problems in the communication
and synchronisation with clients.
2018-01-23 08:30:23 +11:00
Benau
86393ba0a9
Use alphatest as a fallback shader for unlit
...
Adjust graph shader when advanced pipeline off, and no srgb prefilled
texture when advanced pipeline off
2018-01-22 13:27:21 +08:00
Benau
8fa5ad46c9
Use the original spm uv texture 1 and 2 for compare in scene manager
...
Because for splatting it will have some duplicated entries
Also remove never-working material code for splatting because of SP
2018-01-22 13:05:02 +08:00
Benau
45957af6f8
Remove !sRGB in shader which is always true now
...
Also don't use tonemap in RTT
2018-01-22 12:54:39 +08:00
Benau
39f4f8e966
Allow tracks and library objects to use custom shader
2018-01-22 10:34:49 +08:00
Benau
0ed74ac3e9
Add the ability to auto discard unused texture layer based on the compiled shader
2018-01-22 09:55:17 +08:00
Benau
0aa61ec746
Header clean up
2018-01-22 01:11:53 +08:00
Benau
9aae773e91
Use absolute path when caching
2018-01-22 01:09:58 +08:00
Benau
c85425c473
Only try to clean stuff if kart model is unique
2018-01-22 00:13:27 +08:00
Benau
f8c6de316a
Allow karts to have custom shader
...
Also implement proper cleaning for textures (mainly addons)
2018-01-21 16:31:49 +08:00
Benau
a39977d550
Use shared_ptr SPShader in mesh buffer
2018-01-21 15:35:38 +08:00
Benau
390554eca1
Add xml shader and the loader
2018-01-21 13:19:00 +08:00
Benau
b199b81427
Add the code required for reloading sp shader on the fly
2018-01-19 20:47:30 +08:00
Benau
0f95d36dbc
Add proper sharing and deletion of shader files
2018-01-19 14:41:33 +08:00
auria.mg
105935c645
Merge branch 'Fix3099'
2018-01-18 18:32:27 -05:00
auria.mg
8380e93e8d
FIx overflow
2018-01-18 18:02:26 -05:00
Benau
18fd12652d
Fix server build
2018-01-18 16:18:19 +08:00
Benau
5b440ae04b
Don't abuse the use of std::shared_ptr for moving texture
2018-01-18 13:49:35 +08:00
Benau
8a5994b9e3
Don't crash if missing texture image
2018-01-18 12:45:04 +08:00
Benau
0d74b1739b
Allow mesh textures to be reloaded
2018-01-18 12:35:41 +08:00
Benau
281b30dd5d
Fix invalid graph node sometimes detected
2018-01-17 13:52:40 +08:00
Deve
458ffd4617
Allow to force pot textures in graphical restrictions
2018-01-16 22:50:18 +01:00
Benau
c3d0db9856
Use normalized short for animated texture update
...
It should allow to have the maximum possible smooth animation
texture_trans_x,y is fmoded so it's guaranteed to be -1.0 to 1.0
2018-01-17 01:05:47 +08:00
Benau
7aaac81d0a
Disable backface culling for transparent material for legacy pipeline
2018-01-16 14:29:45 +08:00
auria.mg
10831b210e
Improve fix for #3099
2018-01-15 20:58:05 -05:00
auria.mg
1d9d628855
Try to fix #3099
2018-01-15 20:52:53 -05:00
hiker
a34b014fb5
Assign events to closest time step.
2018-01-16 08:53:45 +11:00
hiker
8d7ff2a948
Store event time explicitly, which makes network replay much easier.
...
Simplified update updateReplayAndGetDT function.
2018-01-16 08:43:59 +11:00
Benau
a37b60ac6e
Only add RenderInfo if the material has a list of random color
2018-01-15 15:43:50 +08:00
Benau
cbd7b3fd84
Add some fallback for legacy pipeline for SP
2018-01-15 13:46:37 +08:00
Benau
a3a00f70f8
Remove unused entries in materials and fog settings
2018-01-15 13:23:21 +08:00
Benau
681ef66d8d
Rename _nm to _Normal for normal map textures
2018-01-15 12:37:57 +08:00
Benau
9c2f91c11b
Don't crash for wip-tracks / karts (wrong shader name or incomplete terrain)
2018-01-15 11:07:58 +08:00
Deve
8698705468
Fixed android compilation
2018-01-14 00:14:31 +01:00
Benau
d0fb0500eb
Update to opengl 3.3 for SP
2018-01-14 01:28:30 +08:00
Benau
59045cd064
Merge remote-tracking branch 'origin/master'
2018-01-13 15:44:57 +08:00
Benau
4194977df5
Fix shadow visualization
2018-01-13 15:38:52 +08:00
Benau
9e90bd251d
Use hardware skinning GR in sp_mesh_node
2018-01-13 15:16:16 +08:00
Benau
24308ced03
Remove features in SP that give no performance boost at all
...
gl_Layer in vertex shader, bindless and array textures
2018-01-13 14:49:33 +08:00
Benau
7902e2ad06
Fix focusing of kart color slider dialog
2018-01-13 11:58:32 +08:00
Deve
2f7d7b677d
Don't fail to start if glx display in glew is not available.
...
It should be safe, because we check if display is available in irrlicht device anyway.
2018-01-13 00:06:37 +01:00
Benau
bb0cf72635
Add required code and color selector for rainbow karts
2018-01-13 00:38:46 +08:00
Benau
68e8da2353
Remove all unused shaders
2018-01-12 19:10:55 +08:00
Benau
e5fff9e65a
Reallocate the vertices vector for dynamic draw call when resize
2018-01-12 17:18:49 +08:00
Benau
feb1667acc
Precompute srgb to linear values to array
2018-01-12 13:58:49 +08:00
Benau
6071d2f983
Remove all unused / unstable opengl-related code
2018-01-12 13:04:40 +08:00
Benau
9ccb34c2a1
Adjust graphics presets for SP
2018-01-12 12:03:31 +08:00
Benau
7f3722d90b
Make supports SP checking global
2018-01-12 01:28:13 +08:00
Benau
4252895d8b
Remove old unused glsl code
2018-01-12 01:18:07 +08:00
Benau
49568f3fd9
Auto fallback to legacy pipeline if not supports all functions required by SP
2018-01-11 15:55:53 +08:00
Benau
26a481e478
Allow using system libsquish
2018-01-11 14:40:33 +08:00
Benau
7859a00967
Remove unused mesh code
2018-01-11 13:38:08 +08:00
Benau
68ceceb6e3
Remove unused texture code
2018-01-11 12:47:02 +08:00
Benau
3374ec66e3
Better memory management for vertex buffers
2018-01-11 11:30:55 +08:00
auria.mg
de8298f734
Try to fix #3089
2018-01-10 18:48:18 -05:00
hiker
7b21bb16e6
Remove debug output.
2018-01-11 08:21:40 +11:00
hiker
f6abdefe05
Removed debug output.
2018-01-10 18:37:56 +11:00
hiker
4c6a226968
Fixed index for steering events - physical replays now appear to be identical
...
to the original recording.
2018-01-10 18:37:12 +11:00
hiker
f5af65f4ef
Increased precision of written time step sizes, since otherwise
...
the floating point differences will cause a different number of
physics time steps to be taken (which causes replay differences).
2018-01-10 18:10:39 +11:00
Benau
4823c46ad9
Preload the container id of materials
2018-01-10 13:10:12 +08:00
Benau
f4fb2cb41c
Fix no graphics and server only run
2018-01-10 11:35:02 +08:00
hiker
bb9f2c6385
Fixed loop structure (which only worked with a single kart *blush*).
2018-01-09 08:00:17 +11:00
hiker
f242120cd1
Fixed difference from one replay to the next (caused by returning the
...
actual measured DT in certain cases instead of the recorded one).
2018-01-09 07:56:10 +11:00
Benau
54c7914cb5
Update graphical restrictions
...
Mesa 17.4 will use the correct normalization forumla
Disable GLSL on intel HD2000 / HD3000 due to broken opengl 3.3 support
2018-01-08 15:55:28 +08:00
Benau
57fad498f8
Fix traffic light when changing resolution
2018-01-08 14:31:47 +08:00
Benau
1604ca1daa
Use 2018 header for SP
2018-01-08 09:31:15 +08:00
Benau
aa9dce1672
Add texture compression cache
2018-01-08 09:28:11 +08:00
auria.mg
e3f3f7d291
Fix compilation on travis
2018-01-07 19:33:05 -05:00
auria.mg
6a21ca75fb
Improve text legibility
2018-01-07 19:09:42 -05:00
auria.mg
196117c41e
Bugfix when loading saved GP, but the GP has changed
2018-01-07 18:47:16 -05:00
auria.mg
3c591bcf39
Tweak text color to improve legibility
2018-01-07 18:47:01 -05:00
auria.mg
246d010895
Fix compilation
2018-01-07 18:31:37 -05:00
Deve
51e1153cc9
Fixed unsafe printf
2018-01-07 21:33:43 +01:00
Benau
262337bc13
Fix some leaking when switching resolution
2018-01-07 14:58:32 +08:00
Benau
157faaf616
Fix tracks with no skybox
2018-01-06 15:35:35 +08:00
Benau
0633099662
Add a quick fallback tangent computation
2018-01-06 12:47:22 +08:00
Benau
5293a0dbef
Add b3d loader for SP
2018-01-06 12:07:22 +08:00
Benau
a06d9e858b
Add some fallback
2018-01-05 23:46:23 +08:00
Benau
294f0d79d1
Port feature unlocked to use SP
2018-01-05 01:06:58 +08:00
Benau
60b173559a
Disable cull face after drawing mesh (for gui)
2018-01-04 14:39:32 +08:00
hiker
8e8567f6ee
In case of networking there might be no history frame for a given time -
...
restructure loop so that it is not always executed at least once in
networking, but is done once in case of history replay.
2018-01-04 09:02:03 +11:00
hiker
547e59e866
Avoid storing history information during a rewind.
2018-01-04 09:01:24 +11:00
hiker
cdf3dd8062
Prevented a crash when aborting STK (audio thread is not shut down
...
in this case, but is getting deleted - but the audio thread might
still try to insert an update event during that time).
2018-01-04 08:58:37 +11:00
hiker
8a25effa5c
While it does not make a difference in this case, it should be &&, not &.
2018-01-03 22:03:33 +11:00
hiker
92426606c0
Fixed profiler in case that rendering is not done from main thread.
2018-01-03 21:48:52 +11:00
Benau
d24796aa6f
Use win / lose animation in grand prix result screen
2018-01-03 16:33:55 +08:00
Benau
511c8e316b
Make skidding show curve compile
2018-01-03 15:35:25 +08:00
Benau
1de1cdf530
Port line debug to SP, removing all unicolor code too
2018-01-03 15:28:29 +08:00
Benau
2eabf87ffe
Remove stk_mesh*
2018-01-03 14:40:34 +08:00
Benau
345f2bc64b
Port god ray to use SP
2018-01-03 14:29:20 +08:00
hiker
373ec0f242
Made the history files use events for players (will break physics replay
...
for AIs for now). Useful for network debugging.
2018-01-03 16:29:35 +11:00
Benau
1400257a60
Port debug sphere to SP
2018-01-03 13:29:19 +08:00
Benau
df6fbc455b
Port show curve to SP
2018-01-03 12:46:35 +08:00
Benau
938e6629fc
Add a dummy normal for rubber band
2018-01-02 12:48:00 +08:00
Benau
d34277c35f
Hide shadow when kart eliminated
2018-01-02 12:47:42 +08:00
Benau
3a24d0ed1f
Port slipstream to SP
2018-01-02 12:19:36 +08:00
Benau
17c337284e
Make SPMeshBuffer uniform-assignable (for slipstream)
2018-01-01 14:24:11 +08:00
Benau
0da5922722
Use upper kart position to fix culling for rubber band
2018-01-01 12:27:44 +08:00
Benau
1400542194
Make dynamic draw call update independent of culling result
2018-01-01 11:00:45 +08:00
Benau
9f8475bda1
Fix fading
2017-12-31 12:57:28 +08:00
Benau
2bde6d1325
Use shared_ptr for dynamic draw call
2017-12-31 12:15:55 +08:00
Benau
c8aea0bf9e
Add bounding boxes visualization for SP
2017-12-31 10:34:55 +08:00
Benau
cce8abe6f3
Port billboard text
2017-12-30 15:28:04 +08:00
Benau
ec59e3f573
Don't delete vao each frame when update vertex buffer
2017-12-29 23:42:45 +08:00
Benau
63267391ef
BufferData with new size vector
2017-12-29 23:26:50 +08:00
Benau
8a93b07c5e
Don't clean the current skidmarking
2017-12-29 23:26:29 +08:00
Benau
8919f42894
Use dynamic draw call for rubber band
2017-12-29 19:41:17 +08:00
Benau
4ad7934a85
Clean sp framebuffer individually
2017-12-29 14:50:15 +08:00
Benau
1e0b611c7d
Draw kart shadow with dynamic draw call
2017-12-29 01:36:36 +08:00
Benau
590850eacf
Add dynamic draw call for skidmarks
2017-12-28 16:14:09 +08:00
Ben Krajancic
7c10a5559d
Ghost replay selection fix ( #3081 )
...
* Label unknown replay makers as "Unknown"
* Language neutral result
2017-12-27 21:08:34 -05:00
Benau
52b19dd83a
Use glVertexAttrib only in debug view
2017-12-27 13:50:17 +08:00
Benau
62e0effed6
Rename input variables
2017-12-27 12:31:21 +08:00
Benau
dbc3cd5ff5
Normalize in shader for broken drivers
2017-12-27 11:33:30 +08:00
Benau
891b053358
Add more functions to normal visualizer
2017-12-27 01:33:21 +08:00
Benau
ce45605c18
Use half float for texture matrix
2017-12-26 15:28:01 +08:00
Benau
daf1294e6f
Add minimap and adjust unlit shader for it
2017-12-26 14:34:34 +08:00
Benau
7797115867
Add SP for correct normal and easier shader system
2017-12-25 14:00:10 +08:00
Ben Krajancic
c35599f3e2
Flashing bubble gum ( #3080 )
...
* Initial Implementation
* Name values to give meaning
2017-12-22 19:06:24 -05:00
Deve
6f6ac84495
Fixed android compilation
2017-12-22 21:02:37 +01:00
hiker
c1a3d281f6
Merge remote-tracking branch 'origin/master' into game_protocol
2017-12-19 11:57:31 +11:00
hiker
9addcc4a55
Fixed handling of steering etc events: they are now properly
...
done at the closest time stamp, previously they were typically
exectuted too early on the server.
2017-12-19 11:14:33 +11:00
hiker
4d02e736f7
Started to add smoothing of errors - atm only for position, not angle.
2017-12-18 23:13:59 +11:00
hiker
51fd0c1e8e
Don't limit number of physics steps in networking, since otherwise
...
physics results can diverge.
2017-12-18 23:08:40 +11:00
hiker
f0d07a2de4
Execute rollback detection only on client; added comments
...
for potential future improvements.
2017-12-11 18:01:33 +11:00
Benau
a55e7d204a
Fix wrong newline in linux terminal
2017-12-11 11:00:06 +08:00
Benau
dc562103c5
Remove wrong commit
2017-12-10 00:12:35 +08:00