Commit Graph

133 Commits

Author SHA1 Message Date
Benau
08b2e27ed9 More clean up 2015-12-19 16:23:18 +08:00
Benau
74c547cb1d Remove duplicated code, plus some more cleanup 2015-12-19 02:09:37 +08:00
hiker
e5a7f27f19 Renamed files to follow our coding style. 2015-05-30 12:16:11 +10:00
hiker
8d07d26c25 Updated (c) year to include 2015. 2015-03-30 11:42:50 +11:00
Vincent Lejeune
f644543bc1 Move all gfx related config to a separate file 2014-12-27 03:14:16 +01:00
Marianne Gagnon
526e565c4d Fix memory leak found by vlj 2014-12-23 19:57:29 -05:00
hiker
006a7f95c9 Cherrypicked pull request #1743 (cppcheck performance fixes). 2014-12-01 15:14:27 +11:00
Marianne Gagnon
047c6fc760 Add debug name to meshes and mesh buffers, helps debugging 2014-10-24 19:25:24 -04:00
Marianne Gagnon
0025f908db Add cleanup post-minimap-RTT. Appears to fix #1470 . Hard to know for sure since this bug is random :( 2014-10-20 20:38:37 -04:00
Vincent Lejeune
b56901bacd Fix minimap halo second time it is rendered. 2014-10-04 01:42:25 +02:00
Marianne Gagnon
22a884828a Use unlit material for minimap, to avoid dark minimap segments 2014-10-02 18:52:17 -04:00
hiker
ad20635cce Applied patch for #600 (support 64 bit compilation on windows). 2014-09-23 14:41:32 +10:00
Vincent Lejeune
ad6728ce51 Apparently fix minimap 2014-09-20 01:31:11 +02:00
Marianne Gagnon
2d847cb6b9 Fix overworld minimap 2014-07-09 23:34:39 -04:00
vlj
14cfa57f2a Change "faceness" of lap line. 2014-06-28 16:05:21 +02:00
Marianne Gagnon
9ed57bdd46 Set ambient light when rendering minimap 2014-06-23 20:09:54 -04:00
Marianne Gagnon
e9acaa8e4d Do not hardcode minimap size 2014-06-23 19:34:29 -04:00
Vincent Lejeune
4d6aa9d942 Override clear color inside makeMiniMap
Track clear color was used, resulting in wrong alpha channel value.
2014-06-23 14:54:16 +02:00
Marianne Gagnon
d5e1bb6631 Make progress on new minimap RTT : it was actually 2 issues. First the new code calls camera->setAspectRatio which resets the matrix; second, we rendered the minimap from the back, and backface culling is now active 2014-06-22 21:28:25 -04:00
Marianne Gagnon
ca2ee5d226 New minimap rtt branch : now something is visible 2014-06-22 20:06:58 -04:00
Marianne Gagnon
cd9c2653b6 Initial work on porting minimap to new RTT 2014-06-17 19:26:12 -04:00
konstin
7cc83e1475 running whitespaces.py update 1 2014-03-29 11:33:43 +01:00
konstin
663fffdebb Revert "Running whitespaces.py; no more trailing whitespaces & tabs -> 4 spaces"
This reverts commit 65e2dcf2f0.
2014-03-29 11:32:04 +01:00
konstin
65e2dcf2f0 Running whitespaces.py; no more trailing whitespaces & tabs -> 4 spaces 2014-03-28 20:08:39 +01:00
Vincent Lejeune
ce12ebe9ce Bring back minimap. 2014-03-15 20:05:04 +01:00
Vincent Lejeune
c9ad17cae1 OGL32CTX: Fix draw of karts and minimap
But it is rendered upside down...
2014-01-22 01:45:21 +01:00
auria
5899a26aad Merge cand's graphical improvements branch!! There are many known issues folks, so don't cry victory just now, this is just the beginning. Especially, shadows do not work correctly at this time
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14590 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-11-30 21:33:06 +00:00
hikerstk
c5b8732087 Probably biggest commit (in terms of number of files) ever -
updated the (c) line of all files to -2013, added missing (c), 
changed format in some cases so that it will be easier in
the future to change them by script. No actualy code change.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14447 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-11-15 11:43:21 +00:00
hikerstk
effc7049a2 Avoid infinite recursion when a track with looped shortcuts
is loaded.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14300 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-10-24 06:04:22 +00:00
auria
485551aa89 Apply patch by KroArtem to fix minor issues : unused variables and other minor warnings from cppcheck, crash when launching from terminal with AI karts in a mode where AI is not supported
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12857 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-06-09 20:04:07 +00:00
curaga
b56bf4dc53 Remove trailing space, git doesn't like it
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12797 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-29 22:04:35 +00:00
hikerstk
c144d0a932 Fix #963 (replace printf), thanks to m0leman.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12783 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-24 23:51:08 +00:00
hikerstk
5648939d8f Fix clang warnings (#922).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12668 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-04-17 12:09:04 +00:00
hikerstk
6058c3bcfc Committed Steel's patch for #708 (endless loop).
Thanks!


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11735 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-22 04:01:51 +00:00
hikerstk
4a8a40c7e8 Removed unnecessary warning; made debug mesh less transparent.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11702 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-17 21:48:42 +00:00
hikerstk
eaedc47ddc Fixed findOutOfRoadSector to take the height into account
(previously incorrect quads were found in FortMagma, when
driving slightly off track beneath a different part of the
track - and while this did not affect the kart's steering
in this case, it could cause problems in other places).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11637 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-30 13:11:07 +00:00
hikerstk
b972a2b2a3 Renamed GraphNode::getIndex to getQuadIndex.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11487 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-08 06:57:55 +00:00
hikerstk
9b15b22ef5 Fixed minimap, which was also shown transparent after r11435.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11437 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-25 22:09:12 +00:00
hikerstk
6c72b1c401 Make the debug driveline mesh transparent so that the karts can be
better seen (esp. in camera debug mode when the drivelines are
higher than the track).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11435 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-24 07:18:39 +00:00
hikerstk
3ec6682fb4 Added alternative implementation of findNoNCrashingPoint
which should be faster and 'more correct' (the old implemenation
only tests discrete points for being on/off track, which means
AI can cut corner and not realise that it will be off track).
The new implementation uses lines and intersections to detect
this condition correctly. Since the new implementation is
as a result not as aggressive in cutting corner, it's not
as fast as the old AI, and is for now disabled (see end of
SiddingAI::handleSteering if you want to switch).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11405 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-19 07:00:57 +00:00
hikerstk
cebae627c8 Keep track of all predecessor of a node, not only the first one.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11382 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-11 06:48:31 +00:00
hikerstk
c11fdc0bd8 Removed debug code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11370 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-06 02:05:37 +00:00
hikerstk
b3c0eeab80 Skidding AI now estimates the turn radius of a curve, and is
able to brake if it should be too fast. Avoid using nitro
when braking (otherwise AI might be pushed out of curve).
Added new --ai-debug command line option that will display
the name of the AI on top of each kart (when compiled with
debug). See world.cpp lines 249 on how to select the new 
(or any other AI, including the option to use all AIs,
which is nice to compare them).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11368 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-05 22:37:57 +00:00
hikerstk
fcdf44c764 1) Fixed computing of checkling requirements to work properly with
reverse tracks. Simplified code by moving some functionality
   from QuadGraph to CheckManager.
2) Added comments, renamed some functions to better indicate
   what they are doing.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10843 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-14 20:51:29 +00:00
hikerstk
8a0fe903a4 Use singleton constructions for check manager.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10837 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-12 21:25:06 +00:00
hikerstk
45bb8ceb40 Bugfix: In reverse mode, distance along track started with the wrong
graph node, causing the first lap crossing not being detected.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10831 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-09 11:21:07 +00:00
hikerstk
92ef262bb0 Removed reversal of quads, instead fixed handling of the data structures
that depend on the orientation to properly handle reverse tracks.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10821 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-07 05:15:19 +00:00
hikerstk
3659b14667 Redone 'distance from start' calculation to use the proper graph structure
(and not to assume that the quads/graph nodes will be added in a specific
order, i.e. in the order in which they are connected).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10819 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-07 03:10:43 +00:00
hikerstk
b5bb733e19 Make the karts start just ahead of the starting line in reverse mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10810 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-05 22:33:17 +00:00
hikerstk
80ec893758 Use singleton-like constructs instead of static
pointer to quad set etc.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10809 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-05 22:24:20 +00:00