Commit Graph

10797 Commits

Author SHA1 Message Date
Marianne Gagnon
1e8c2ff523 Use plain ofstream to write profiler CSV 2014-02-16 18:10:29 -05:00
Marianne Gagnon
289505d909 Add missing profiler 2014-02-16 17:42:06 -05:00
hiker
7b993cd210 Fixed VS compilation. 2014-02-16 21:31:41 +11:00
Vincent Lejeune
d5d57bbae0 Shadows: Softer edge and smoother cascade transitions 2014-02-15 20:45:47 +01:00
Marianne Gagnon
fd8496ffba Fix linux/gcc compilation 2014-02-13 18:57:51 -05:00
Marianne Gagnon
8227e1c092 Add first rudimentary way to dump profiler measurements to CSV. More work to do! 2014-02-12 21:06:12 -05:00
auriamg
0e722b30a3 Merge pull request #41 from sachith500/bug1118
Bugfix for 1118
2014-02-12 18:33:50 -05:00
Vincent Lejeune
57079cbff5 Shaders: Declare penumbraH/V and shadowgen 2014-02-12 23:32:18 +01:00
Vincent Lejeune
3d3333905d Some factorization. 2014-02-12 22:41:32 +01:00
Vincent Lejeune
0243546e4d Use an openGL 3.3 compatibility context when available. 2014-02-12 22:16:10 +01:00
Vincent Lejeune
3d61056b81 Revert "STKMesh: Force readonly materials."
This reverts commit 8c5a5b9b20.
2014-02-12 18:46:28 +01:00
Vincent Lejeune
8c5a5b9b20 STKMesh: Force readonly materials.
We never changed materials on the fly but better safe than sorry.
2014-02-12 18:31:21 +01:00
Vincent Lejeune
bff2208947 Remove rain effect.
Rain enabled map crashes with non glsl codepath, and having a particle
effect handled separatly from others effect made it unmaintainable.
Rain must be implemented using gfx file with eventually a custom
property.
2014-02-12 17:51:18 +01:00
Vincent Lejeune
0cf6e4266a Graphics: Clean some dead code.
Still leave some shadow related code as comment, I will need later to
port cand's work on penumbra shadow.
2014-02-12 17:51:17 +01:00
Sachith Hasaranga Seneviratne
56656b581d Bugfix for 1118
Hide countdown as soon as race ends to prevent the drawGlobalTimer() method in race_gui from checking for failed challenges.

https://sourceforge.net/apps/trac/supertuxkart/ticket/1118

Signed-off-by: Sachith Hasaranga Seneviratne <sachith500@gmail.com>
2014-02-12 22:04:21 +05:30
Vincent Lejeune
70f89a8bce Shadow: Use 4 cascades.
Now that we use GS and textures array it's easier to add a cascade.
4 is still not optimal but I'd like to avoid cascade count inflation as
much as possible ; 4 x 1024x1024 has the bandwidth requirement of the
single 2048x2048 shadowmaps we previously had.
2014-02-11 21:49:46 +01:00
Vincent Lejeune
934d1f10b8 Shadow: Use Geometry Shader for better perfs.
The 3 cascades are now rendered in a single pass, using 2D array texture and
a GS to do the dispatch ("layered rendering").
It's possible to use instancing instead but it requires the AMD_vertex_shader_layer
extension which is oddly part of opengl 4.2.
2014-02-11 21:07:44 +01:00
auriamg
b060b7651a Merge pull request #37 from KroArtem/master
Fix coverity issues (memleaks, copy-paste error)
2014-02-10 19:23:45 -05:00
Vincent Lejeune
da6e6daeaa Create a BO with texture_2d_array for shadows. 2014-02-10 19:01:24 +01:00
Vincent Lejeune
c8844486fa Shadow: Tweak bias 2014-02-10 15:58:09 +01:00
Vincent Lejeune
515bcbc750 Shadow: very crude csm support 2014-02-10 15:42:17 +01:00
Vincent Lejeune
ad2dcff431 Revert "Fixed running on hd3000 (8192 was too big for my system, not sure"
This reverts commit 748dcf1e15.
2014-02-10 15:39:52 +01:00
hiker
748dcf1e15 Fixed running on hd3000 (8192 was too big for my system, not sure
what values should be used best, I used the previous code here).
2014-02-10 21:35:13 +11:00
Vincent Lejeune
4fd130b2ac Shadow: Grass now cast shadows. 2014-02-09 23:24:01 +01:00
Vincent Lejeune
18896ff95e Shadow: Support for alpha tested meshes. 2014-02-09 22:56:50 +01:00
Vincent Lejeune
19d490a26d Lights: Remove unused export value. 2014-02-09 21:18:15 +01:00
Vincent Lejeune
1c510881a7 Shadow: Fix broken specular with shadows enabled. 2014-02-09 21:16:16 +01:00
Vincent Lejeune
5d5ac34648 Shadow: soften edge a little 2014-02-09 20:03:54 +01:00
Vincent Lejeune
63db565fd7 Shadow: Better bias. 2014-02-09 19:42:22 +01:00
Vincent Lejeune
f0ef8e9913 Shadow: reenable shadows
It's just plain basic shadowmaps, a lot of tweak is still necessary but
it gives a way to see how light values are affected in some places.
(cave in chocolate for instance)
2014-02-09 19:20:55 +01:00
KroArtem
dfe267e9ec Merge remote-tracking branch 'upstream/master' 2014-02-09 17:23:47 +04:00
KroArtem
33ea1a6ef5 fix coverity issues 2014-02-09 17:04:15 +04:00
KroArtem
452af6f423 fix typo 2014-02-09 02:16:14 +04:00
KroArtem
cdeab373c3 add assert in case ftell fails 2014-02-09 02:04:22 +04:00
KroArtem
49d14e5046 copy-paste error 2014-02-09 01:50:02 +04:00
KroArtem
c4fd2eda08 fixing some memleaks 2014-02-09 01:36:32 +04:00
Vincent Lejeune
ab05cb45b8 Shaders: Remove some unused shaders. 2014-02-08 18:19:16 +01:00
auriamg
3fdae349b2 Merge pull request #36 from KroArtem/master
Clean src/modes and src/karts from old logging code
2014-02-07 18:36:54 -05:00
KroArtem
1861c6533a small fix: mismatching allocation/deallocation 2014-02-08 01:21:39 +04:00
KroArtem
fde38a35af clean src/addons 2014-02-07 16:45:38 +04:00
KroArtem
591e421b10 clean src/io 2014-02-07 16:23:46 +04:00
KroArtem
746c1ddf5d clean src/items 2014-02-07 15:38:20 +04:00
KroArtem
c0b13b01ff clean src/modes from printf/cout/cerr 2014-02-07 02:17:49 +04:00
KroArtem
a61ee58a39 clean src/karts from cout, printf and cerr 2014-02-06 01:26:30 +04:00
Vincent Lejeune
653a695eda Fix fog looking weird on transparent.
But mixing alpha with 0 instead of 1.
2014-02-05 15:07:57 +01:00
Vincent Lejeune
62964430a6 Unset AF when not requested
AF was never unset thus making it enabled everywhere even when there was
a 1:1 fragment/texel mapping.
This makes a significant performance boost when AF is enabled.
2014-02-05 15:07:18 +01:00
auriamg
7d0216c110 Merge pull request #32 from KroArtem/master
Get rid of printf/cout in kart_selection.cpp, cppcheck fixes
2014-02-04 16:10:37 -08:00
KroArtem
ca4bfa525e revert changes in race_manager.hpp 2014-02-04 04:38:52 +04:00
KroArtem
ddbc2299b7 Merge remote-tracking branch 'upstream/master' 2014-02-04 03:50:08 +04:00
KroArtem
a7b2490be6 cppcheck fixes 2014-02-04 03:43:44 +04:00