Commit Graph

366 Commits

Author SHA1 Message Date
auria
59b43cdbaf Bugfix : particle emission direction now rotates along the node
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7343 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-09 16:42:52 +00:00
auria
47add64448 Fix weird opaque particles
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7325 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-07 02:25:34 +00:00
auria
9413b7e97e Improve render order of particles. They're still wrong looknig though (WHY?? the same code worked moments ago)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7322 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-07 01:37:34 +00:00
auria
9f4e949874 Made per-material particles almost a reality. Sadly now we have terrible problems with irrlicht's render order
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7321 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-07 01:32:46 +00:00
auria
e76aace67c There was a name clash with my new proeprty. Oops\!
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7318 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-06 23:39:41 +00:00
auria
332209fde8 Support improved syntax in materials.xml
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7317 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-06 23:29:18 +00:00
auria
279e551371 Remove outdated FIXMES + fix possible crash if section is missing in XML file
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7316 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-06 21:11:32 +00:00
auria
8724502d91 We now have only one spread angle
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7298 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-06 02:47:34 +00:00
auria
4e5e7f96a8 Removed particle visualisation, which was accidentally committed
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7297 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-06 02:39:34 +00:00
auria
89346d58f1 Stop using our hack of moving the emission direction around, when you fire lots of particles this hack is very obvious. Use only what irrlicht provides
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7296 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-06 02:37:55 +00:00
auria
4a6793178d Fix bug in emitter visualisation
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7295 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-06 02:00:41 +00:00
auria
1e3515be04 Minor cleanup + add code to visualize emitter
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7294 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-06 01:58:45 +00:00
auria
2847f8527e Now respecting rate in XML file for nitro (Kart was hardcoding rate...)+
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7293 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-06 01:40:00 +00:00
auria
b6b9f2810d Make more particle parameters configurable
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7292 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-06 01:25:46 +00:00
auria
aa6c225684 Fix centering issues
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7291 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-06 01:06:52 +00:00
auria
3eeca13ce3 Add key to get free nitro + minor tweaks to particle code
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7290 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-06 01:01:12 +00:00
auria
cd850cf300 Improvements to particle system, now fade out works as it should \o/
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7288 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-06 00:07:58 +00:00
auria
052a1664b3 Remove FIXME, add documentation itself, I found why things are like they are
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7287 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-05 23:49:50 +00:00
auria
c1c0a34897 Add braces in switch to please GCC
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7280 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-05 20:57:05 +00:00
auria
e627ccc8f8 Fixed glitch in box emitters
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7279 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-05 20:56:30 +00:00
auria
fc19059006 Add support for box emitters, use it back for nitro
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7278 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-05 20:54:36 +00:00
hikerstk
cd8ea2eead Removed compiler warning, updated VS project file.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7263 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-05 05:27:59 +00:00
auria
fcba432e39 Cleaned up logging
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7260 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-05 02:57:17 +00:00
auria
c669a425e5 More particles tweak + eye candy : add additive blending to materials.xml, now the nitro looks awesome
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7256 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-05 02:38:24 +00:00
auria
ec3c1f76a0 New XML-based particle system. May need a few tweaks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7255 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-05 01:39:18 +00:00
auria
38a8248fea Merge nitro and smoke emitters, as their code was almost identical. Next steps will likely involve allowing to specify particle effects in XML files. Note that atm nitro is slightly different from before, can be tweaked to be like before if wanted
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7253 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-04 22:14:51 +00:00
auria
470832cd19 Minor documentation of particle code (since I may be looking at extending this soonish)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7251 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-04 20:34:21 +00:00
auria
e472d7459c Fix typo
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7133 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-21 21:30:28 +00:00
hikerstk
eee27834d1 Fixed line endings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7030 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-15 22:52:59 +00:00
auria
9d854c7301 Fixed leak (Joerg: I'm not 100% sure on this one, can you check if what I did makes sense?)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6967 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-12 02:14:29 +00:00
auria
243c9f37c0 Fixed rare crash with explosions, when m_remaining_time is exactly equal to explosion_time
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6908 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-09 01:22:22 +00:00
auria
d737425fe5 Fixed gamepad input after changing resolutions
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6905 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-08 23:42:10 +00:00
auria
7f97094b87 Fixed numerous leaks, especially audio leaks + add debug functions to be able to easily check for audio leaks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6903 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-08 22:18:55 +00:00
auria
a0a85ed1c2 Fixed little glitch that could cause explosions to be cut before they had time to fade out
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6888 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-08 02:04:00 +00:00
hikerstk
9cddb351cd Bugfix: paths were looked up using the file manager
even if is_full_path was true (and where then not found).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6843 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-01 05:57:04 +00:00
hikerstk
a1e6c01dae Reverted commit that added backface culling ... which was already supported
(also the patch did not initialise memory).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6769 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-29 11:31:07 +00:00
hikerstk
7e4257e689 Allowed transparency, and usee setFlag instead of directly accessing the attributes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6764 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-29 05:24:31 +00:00
auria
5b7d055f2c Applied patch by samuncle to support disabling backface culling, thanks! (even though I helped quite a bit ;)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6735 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-26 01:02:33 +00:00
hikerstk
d4eae38349 Fixed line endings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6728 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-25 21:52:01 +00:00
hikerstk
ce3c115a86 Removed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6717 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-24 22:18:47 +00:00
hikerstk
8c129ccde6 Fixed quick test for slipstreaming, which would sometimes discard
slipstreaming even though the distance was fine.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6714 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-24 21:53:13 +00:00
hikerstk
6f28bb281c Added visual debug support (--slipstream-debug).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6713 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-24 21:05:45 +00:00
hikerstk
e73ca4bbee Moved all slipstream handling from kart into slipstream
(also started to add debug features).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6708 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-24 05:57:06 +00:00
hikerstk
daf2bc5e7e Fixed resolution changing on linux: previously the resolution was
changed (and the old window/device deleted) while the old device was
still actively delivering events, so deleting caused a crash. Now
changing the resolution is only setting a flag, and the resolution
change will be applied during the next update, i.e. while the device is
not busy anymore.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6707 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-23 23:23:40 +00:00
hikerstk
829b015314 Properly delete the first window (esp. on Linux) when switching resolutions.
ATM this results in a crash for me (though this patch should be correct, so
the reason for the crash must be something else).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6705 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-23 21:16:19 +00:00
hikerstk
6b660b9fe6 Added calls when switching resolutions (based on
http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=39342&highlight=fullscreen
run() needs to be called).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6697 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-23 00:14:13 +00:00
hikerstk
98b1c1991f Bugfix: set zipper-fade-out time, which was left uninitialised before
(causing bug 3108549: crash in quantize because the uninitialised value
could be close to 0 but not 0, resulting in speed becoming -inf, ...).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6689 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-22 00:57:15 +00:00
auria
cb78ded2ed Tidy up logging + other minor fixes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6647 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-19 17:19:13 +00:00
auria
2df77fbc5e Fixed machine gun effect when riding on zipper ramps
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6576 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-15 19:15:34 +00:00
hikerstk
0d8f157ecc Added support for setting zipper properties per material.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6502 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-11 10:35:55 +00:00