127 Commits

Author SHA1 Message Date
Marianne Gagnon
58f509d953 Fix vlj's profiler code, only worked in single player 2014-08-14 19:08:21 -04:00
Vincent Lejeune
41cca2e56e Fix ambient handling. 2014-08-09 01:41:30 +02:00
Flakebi
55090a0566 Unify log output 2014-07-22 12:54:11 +02:00
Flakebi
af6c121a22 Run whitespaces.py 2014-06-04 15:10:20 +02:00
Marianne Gagnon
389ec42bde Improve flying mode 2014-04-28 19:55:30 -04:00
samuncle
04e5bb1239 Tweak the new camera 2014-04-13 01:01:24 +02:00
Marianne Gagnon
a2d60cc97d move camera closer to kart 2014-04-11 21:24:07 -04:00
hiker
fcedb80a89 Fixed some compiler warnings. 2014-04-12 09:49:46 +10:00
Dk
e0d22a28d6 Camera Moves Back Smoothly 2014-04-10 07:06:13 +05:30
hiker
b80e9217f5 Fix camera tilting (some debug left-over broke it). 2014-03-06 07:43:51 +11:00
hiker
f549b729df Remove camera tilting in flying mode. 2014-03-04 16:56:03 +11:00
Marianne Gagnon
a063d23b37 Fix intro cutscene 2014-03-03 18:57:10 -05:00
samuncle
e3f85ba41b Tweak the cam tilt 2014-02-17 23:47:07 +01:00
hiker
fb1c73718a Try to remove shaking of camera somewhat. 2014-02-18 08:51:03 +11:00
hiker
23301d822a Experimentally adjust camera up vector depending on kart roll, which means
the camera will now follow the gravity changes.
2014-02-18 08:18:33 +11:00
hikerstk
6ee751e3c3 Added new class to handle command line parameters, which
simplifies parameter handling in main (e.g. it's not
necessary to list and ignore parameters in the 2nd
pass, when they were handled in the first pass).
Removed some command line options for which there
is a guy (e.g. --weather), or which are not really
useful (--list-karts). 

All parameters to options must now consistently be
specified using '=', e.g.: --log=1 and --kart=tux.

Also removed support for 'classic' camera (which was
not used anymore). Removed now unneccessary #include
in user_config.hpp, which made some #include changes
in other files necessary.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14939 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2014-01-06 12:23:16 +00: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
d7319b766f Added new command line option "--camera-wheel-debug" which positions the
camera at wheel level (to better check if wheels are positioned at the right
height).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14392 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-11-06 06:08:31 +00:00
deveee
fa70318e11 Update rain also in debug and finish camera.
Now everything should work properly.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@13660 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-09-11 07:52:24 +00:00
deveee
a38d0f57bf Update rain while explosion animation.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@13655 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-09-09 20:37:24 +00:00
deveee
17a0b1848d Move updating rain below positionCamera(). It solves the problem with diseppearing rain - ticket
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@13653 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-09-09 19:59:13 +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
f2aeedc41f Fixed possible crash in debug mode, thanks to curaga.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12661 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-04-15 21:49:48 +00:00
hikerstk
502042432c Big refactoring: the camera for a kart is now not part of the
kart anymore, instead they are managed by static functions
in Camera. This allows us to have several cameras for one
kart now (can be useful for debugging; or for three-screen setup
where you have one monitor for left, right, and center; or potentially
for an back mirrir). Also 'rain' is moved into camera now (where it
belongs more naturally then in kart), and several loops over all
karts searching for a camera are now replaced by simpler loops over
all cameras (though a few loops were added to handle code for all
cameras now, while before there as no loop).
Main advantage: handling post-processing will be easier to do now.
Also this fixes a bug: in split screen mode, when a kart is eliminated
(ftl) the camera for this kart was supposed to show the
leader facing backwards, which didn't work (it just showed the previous
location of the elimintaed kart) - now it works.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12541 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-03-06 22:08:41 +00:00
hikerstk
cd8948902a Bugfix: if the first end camera was a static_follow_kart,
the position was not set in the first frame, resulting in
an odd 'zoom' effect.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12080 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-25 22:59:34 +00:00
auria
425a648af1 tweak end cameras and add them back to island
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12071 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-25 20:07:13 +00:00
hikerstk
260a06df0a This file was missing in r11589 - it is the actual camera change, so far
there was no difference.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11602 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-19 00:59:08 +00:00
hikerstk
7b99faeeb8 iDisable steering for players when a skid is stopped (till the physics are
aligned with the graphics again). That _may_ help with controlling the
kart better after skid. Testwise enabled by default - feedback welcome.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11587 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-16 22:50:59 +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
eca5b3e570 Refactored handling of kart animations: instead of
using a fixed object in the kart, now each animation
(rescue, explosion, canon) has its own object and 
implementation using a common interface. This
simplifies AbstractKartInterface, and makes it
easier to add new functionailty. 
Instead of using: kart->rescue(...),  or kart->explode(...)
you use new ExplosionAnimation(kart, ...) etc. Memory
handling is done by the object (and abstract kart).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11070 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-01 22:57:41 +00:00
auria
8dcc237c28 Fix tons of warnings when building with Mingw. Yes I know I did a few changes in bullet. I don't care, the warnings were too annoying
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11002 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-20 01:51:28 +00:00
hikerstk
ebbc1a71d8 Introduced an 'abstract kart' class, which is used to
de-couple kart implementation and its interface. This
significantly reduces compile time when changing kart.hpp,
but is at this stage still work in progress.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10997 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-19 20:21:11 +00:00
hikerstk
8108045c03 Adjusted debug camera somewhat to get a closer view
of the kart.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10972 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-15 05:56:23 +00:00
hikerstk
88c16e7cbe 1) Refactored skidding so that all skidding handling is now done
in a separate object (Skidding) of Kart.
2) Renamed m_drift of the kart control structure to m_skid
   to be consistent with the usage in STK.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10914 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-02 04:17:38 +00:00
hikerstk
15445f182c Adjust start position of camera (for initial camera movement) properly,
which especially fixes its position in reverse mode.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10851 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-15 05:27:27 +00:00
hikerstk
94be2cfec2 Automatically switch to camera 0 when the lap line is crossed. This
improved handling of end cameras for reverse mode (otherwise one
additional end camera would need to be defined to be used just
when the lap line is crossed).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10850 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-15 05:23:21 +00:00
hikerstk
4967ca992a Fixed one-frame jump when switching end cameras (esp. to
static camera). Main reason was that setPosition does
not update the absolutePosition of the camera, but also
that the camera position got switched without applying
all settings (like zoom).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10846 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-14 23:27:23 +00:00
hikerstk
8105b6ac0c Fixed end camera handling in reverse mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10844 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-14 21:15:37 +00:00
auria
92eb0ebd2a Ran a small bash script to remove all of those annoying strings. The only thing they gave us were the need to rebuild after committing
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10363 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-06 18:43:36 +00:00
hikerstk
5993f32f30 Allow to move the attached camera to all AI karts in profile mode
(press keys '1' to '9' to move the camera to kart 0 - 8).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9963 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-10 04:30:18 +00:00
hikerstk
29453de9fa Added referee in rescuing a kart. Note that at this
stage thunderbird still has the traffic light attached, and
the position of the bird in relation to the kart is not yet
ideal.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9903 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-27 11:46:27 +00:00
auria
ca4bffe34d Use funto's motion blur effect only when using a zipper, but more visibly so
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9456 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-10 01:46:58 +00:00
hikerstk
7ed13732e7 Only print warning when log-misc is enabled.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9380 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-28 22:23:12 +00:00
funto66
46dab63f2d Fixed motion blur at the end of the race and made it relative to the speed of the kart, not its current maximum speed
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9354 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-25 21:36:21 +00:00
funto66
1a0c45be42 Integrated the motion blur in game and adjusted the parameters
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9349 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-25 20:35:44 +00:00
auria
357af5a27d More work on 'thou shalt not include irrlicht.h everywhere carelessly'
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8663 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-22 19:29:52 +00:00
auria
717213a303 Fix listener position not updated when looking back
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8321 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-13 00:55:30 +00:00
hikerstk
7922459ca6 Fixed falling camera (ticket 102).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7933 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-16 05:38:03 +00:00
hikerstk
b36597ba1b Simplified camera settings, fixed jump in camera when rescue is triggered.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7773 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-28 22:35:30 +00:00