Commit Graph

443 Commits

Author SHA1 Message Date
auria
bfeb8b6f31 Add thunder to lighthouse
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7906 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-15 22:48:59 +00:00
auria
6b3757e6d7 Improved error handling (don't crash when invalid particles are defined)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7901 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-15 18:25:27 +00:00
hikerstk
d5d37b26e4 Fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7867 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-10 02:45:31 +00:00
hikerstk
765905b514 Fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7861 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-08 23:59:39 +00:00
auria
3c3a5985cf samuncle suggested to put a slight randomisation in LOD; I'm not convinced it's useful but he's the artist so I listen ;P
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7858 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-08 02:54:27 +00:00
auria
be60946f28 Added support for heightmaps in parallax and normal mapping, since that seems to be irrlicht's preferred way to go
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7824 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-06 01:13:02 +00:00
auria
9af2cc36eb Add support for parallax mapping
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7823 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-05 23:04:26 +00:00
auria
f00af38fc7 Make LOD objects visible to the physics
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7818 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-05 20:50:36 +00:00
auria
e869757d7c removed uneeded code
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7807 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-04 02:51:07 +00:00
auria
c08b9b3a7f Add the basic infrastructure to support level-of-detail. Note that at this time the implementation is not the most efficient one can think of so let's not use this widely just yet
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7805 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-04 02:11:39 +00:00
hikerstk
4fac382508 Fixed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7804 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-04 02:10:26 +00:00
auria
362514998b Removed uneeded TODO in normal map code
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7803 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-04 01:17:17 +00:00
auria
970fb985d3 Fooling around : added simple support for normal maps
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7802 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-04 00:58:00 +00:00
auria
a92e888fbb Make slipstream fade in smoothly
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7797 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-03 03:15:27 +00:00
auria
ffd690a546 Fix harmless warnings
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7788 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-02 02:13:41 +00:00
auria
3a3619750a Artist debug features are now enabled even in release builds, but disabled in config by default
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7780 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-02 00:04:13 +00:00
hikerstk
16f32c4471 Fixed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7775 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-28 22:56:51 +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
auria
04adf0bf63 spread particles a bit on start so that snow is there right when you start playing
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7770 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-28 02:15:01 +00:00
auria
2293fdbe80 Make snow follow kart, this should reduce the needed CPU and GPU demand to render snow. Note that the current effect is not perfect, you can 'outrun' snow
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7768 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-28 01:49:35 +00:00
auria
f7f01c144a Stop snowing inside tunnels
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7767 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-28 00:59:02 +00:00
auria
42626329b3 Improve wather splash : 1) remove old unused class 2) the splash should only occur when touching the surface, and not keep on splashing when you're underwater
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7755 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-27 19:49:32 +00:00
hikerstk
6df020f13b Fixed camera in case of an explosion (or rescue).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7749 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-22 21:38:49 +00:00
hikerstk
78cd11f881 Simplified computations in camera, which fixes also looking backwards
when going downhill.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7748 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-22 21:37:27 +00:00
hikerstk
ac5190c671 Removed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7740 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-20 14:58:11 +00:00
mbjornstk
b8a0ab32b4 Apply camera changes provided by Jesse Smith to have v0.6 camera option.
Feel free to fix any C++ style issues, this saves you fighting with patch or
can be undone quickly by reverting this single commit.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7739 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-20 05:11:26 +00:00
auria
f531b9fa29 Enhance UnNamed's rotation effect, instead of rotating all cylinders toghether all the time make them receive an initial independent rotation each, IMHO this looks better
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7735 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-18 16:08:02 +00:00
auria
64cc990f7d For some reason, PerCameraNode is acting up in single-player mode, so only use it for rain in multiplayer mode. Fixes rain
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7734 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-18 16:03:07 +00:00
hikerstk
baec93e460 Fixed uninitialised variable in rain.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7729 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-18 12:29:05 +00:00
hikerstk
745bea6285 Applied and fixed MiniBjorn's support for pre-mul textures by setting adjust-image=premultiply or
adjust-image=divide in material.xml
But big question: can't we just modify the textures externally and use them, 
instead of doing this at runtime?


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7712 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-16 06:07:38 +00:00
hikerstk
66ff37eb80 Use normal particle terrain to make water splash; proper location
for water splashes is now being detected. Note: existing tracks
need to be updated.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7706 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-15 21:12:24 +00:00
mbjornstk
bca98f68ae Displace rain texture also in X to make repetition hard/impossible to see.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7703 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-14 03:55:26 +00:00
auria
1fd4554ebc Silence a few silly warnings
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7702 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-14 02:50:38 +00:00
mbjornstk
42cd443a54 Add --rendering-debug to allow testing material settings or anisotrophy speed.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7700 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-14 02:07:04 +00:00
auria
329a66437d PerCameraNode now works fine (wanring: evil dark magic in use)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7669 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-10 02:48:25 +00:00
auria
2f2b18df33 Add PercCameraNode, use it for rain. Sadly the results atm are weird, I need to investigate...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7668 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-10 01:56:52 +00:00
hikerstk
240d39636c Added support for 'graphical' meshes - atm mostly for water surfaces
(and below water meshes), so that water splashes can be displayed at
the proper position (not used atm).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7665 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-09 21:56:44 +00:00
mbjornstk
166512282d Add premultiply (tested) and de-premultiply (untested) code in texture loader.
All disabled and requiring integration with a setting in materials.xml
(rgba-transform, eg).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7661 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-09 01:38:27 +00:00
auria
c55a3e181c fixed rain not being cleaned up properly
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7660 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-09 00:51:17 +00:00
hikerstk
e879ef5cc3 Fixed Windows compilation (M_PI not defined in VS), some
minor cosmetic changes.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7649 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-07 11:14:52 +00:00
mbjornstk
95dfe3ed66 Raise rain cylinder from 3 to 5, so the kart and camera are under rain too.
Things to do would be adding constant wheel splotches and maybe a fixed plane
in front of the camera to darken/reduce contrast everywhere and give it a wet
look (or change the materials to be darker & shinnier, but karts' textures...).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7647 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-07 03:29:55 +00:00
auria
0e38088d84 disable Z buffer write for rain, will avoid some potential issues
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7646 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-07 02:55:46 +00:00
auria
42f279aa53 Fix another embarrassing compilation issue, arrrg -.-
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7645 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-07 02:52:19 +00:00
auria
238f572c36 Say hello to the new rain, one that is much, much less CPU and GPU intensive. Joerg: sorry, you will need to modify the exporter again, since now we need support for some built-in weather types, which use a different XML syntax than particles
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7642 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-07 02:45:32 +00:00
auria
752006e1bb Fix crash with particles on resolution change
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7639 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-06 15:30:43 +00:00
hikerstk
f392d5f6fe Support for weather effects stored in a separate xml node (track format 5).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7617 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-05 02:51:56 +00:00
auria
380d7d3ed2 Fixed emitters not being removed
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7605 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-03 22:55:46 +00:00
hikerstk
5b6101980e Used const & to avoid copying of vectors, minor cosmetic changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7603 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-03 22:39:30 +00:00
hikerstk
4d8b8e5dea Renamed ptr_vector to PtrVector so that is follows
our naming convention, also changed contentsVector
to m_contents_vector, and removed unused add method
(which is using an iterator, which would not work
when using aligned_arrays on windows anyway).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7602 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-03 22:20:53 +00:00
auria
f015f532c2 removed debug code I should not have comitted
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7594 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-03 02:31:14 +00:00