Commit Graph

366 Commits

Author SHA1 Message Date
auria
2e3a953004 Fixed crash when freeing LOD nodes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8104 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-29 21:50:13 +00:00
auria
01154fd6b4 Simplified attachModel method, it was confusing that it has a out-pointer parameter yet returns void
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7972 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-17 19:08:01 +00:00
hikerstk
1fed8b10fb Fixed material settings in water scene nodes (ticket 104).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7952 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-16 21:03:23 +00:00
auria
e9c7a30b43 Fixed material properties on water
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7949 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-16 19:11:42 +00:00
auria
5d56ff3778 Fixed crash by moving scene_node->setName AFTER checking that scene_node is not null
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7947 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-16 15:39:46 +00:00
auria
5a9a09a59e Fixed warnings (one of which caught a real code problem)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7946 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-16 15:33:49 +00:00
auria
df817782b3 Add getter for fog in Track; it's not used atm but surely it can come in useful... (I added it when investigating bug 8)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7878 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-14 00:45:47 +00:00
hikerstk
400f5edc19 Removed warning messages printed to stderr if a track
object is not in the track directory (but in the
shared model directory).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7860 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-08 23:53:07 +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
4c4dd50e13 Simplify LOD handling, based on suggestions by Samuncle (note that the simplification is on the blender side, the C++ code is more complex)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7815 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-05 20:13:40 +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
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
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
0b1702502f Better error handling + somewhat fix rain in lighthouse (for some reason it only works in multiplayer mode?)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7733 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-18 15:56:11 +00:00
hikerstk
cc155932a0 Added support to mark certain drivelines so that they are ignored
by the AI.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7720 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-17 07:36:41 +00:00
auria
482cfbcb2a Don't complain about unknown XML nodes when disabling particles
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7715 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-16 20:47:48 +00:00
hikerstk
858091d26f Fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7711 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-16 06:02:30 +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
hikerstk
17c81d8c5c Added warning message is a item projected on the terrain does not
hit the terrain. In this case the original position is kept.
Additionally the raycast starts from a slightly higher position
to allow for some floating point errors in the projection.
Fixe bug #63 (floating powerups).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7704 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-15 09:10:45 +00:00
hikerstk
ccc8ada054 Fixed ignoring of materials.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7699 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-13 23:14:23 +00:00
hikerstk
78eb5a09eb Replaced raycast used in detecting the terrain is on: instead of raycast
against the dynamics world, it's now using a raycast against the triangle
mesh only (i.e. a single collision body instead of the whole world).
Besides being faster, this will allow raycasts with material detection
against the 'gfx' (surface) mesh.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7694 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-13 00:23:23 +00:00
hikerstk
e78d2d8887 Made lap line consistently red (code to get a checkered lap line
is still in but commented out - it looks quite for in the shorter
tracks imho).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7678 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-11 10:43:20 +00:00
hikerstk
4cc6936d8a Added lap line (not fully tuned yet).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7672 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-10 21:33:26 +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
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
896e2664fc Fixed track names not being translated on live language switch
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7633 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-06 02:59:19 +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
hikerstk
967a9223fb Added support for animated textures on water scene nodes (the track
exporter still needs support for this).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7614 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-04 13:38:38 +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
hikerstk
95a7e5c125 Added smoothing of normals for raycast wheels, but disabled for now (since
the normals of some tracks need to be fixed).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7600 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-03 21:06:50 +00:00
auria
107f479e87 Don't use particles when GFX are off
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7598 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-03 03:10:44 +00:00
auria
aa9068070d Demonstrating the new particles : fire effect in crecent crossing
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7597 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-03 03:02:50 +00:00
hikerstk
5931ddbe56 Hopefully fixed swapped axis for particle emitters.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7595 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-03 02:46:25 +00:00
hikerstk
4ab6331ff4 Update to bullet-2.77.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7579 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-02 22:04:13 +00:00
auria
0e58903fa8 Allow custom particle effects to be found in the same directory as the current track
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7570 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-31 02:46:18 +00:00
auria
ab5c3b43d7 Add support for full particle emitters anywhere in track
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7568 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-31 02:27:19 +00:00
auria
84fcc8f1b0 Prevent some strings from being flipped twice in fribidi
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7509 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-23 23:47:39 +00:00
mbjornstk
015443f582 Set props as per SVN-CONFIG for .[ch]pp, AKA SVN props clean up day. :)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7493 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-21 01:54:38 +00:00
mbjornstk
634ba9fc94 Fix typo, it should say weather.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7411 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-14 03:40:26 +00:00
auria
7ae7fb5dfd Added GFX level slider in options + spell wheather correctly in options...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7410 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-14 03:10:04 +00:00
auria
4396695920 Add a new config option for wheather effects (notm accessible in GUI yet)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7409 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-14 02:52:22 +00:00
auria
404bb88703 It now rains in lighthouse :)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7406 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-14 02:27:14 +00:00
auria
f7bcc2a6a5 Add snow flakes to Snow Mountain. Still to be improved
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7403 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-14 01:31:15 +00:00
auria
03af38c9b0 Work on water splash effect a bit; only lighthouse was changed for now, we can change other tracks when Joerg modified the track exported. The effect can still be improved of course, I mostly did the basic code aspect
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7375 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-12 03:01:57 +00:00
auria
6ad54434e0 Correct a few FIXMEs + minor style improvements
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7227 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-03 18:23:52 +00:00
mbjornstk
76ee2036d8 Update comment about items' fog, remove some lighting flags that just hide
wrong export options (resave with normals to fix) and make the items look 2d.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7222 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-03 04:39:18 +00:00
hikerstk
1c90d679e2 Removed unused animation_manager (track object manager takes care
of animations).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7040 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-16 21:15:59 +00:00
hikerstk
f5662118c6 Made addon manager compiler with windows (though not working yet).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7039 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-16 21:07:14 +00:00
hikerstk
7de2c4de41 Replaced unicode characters in comments with normal ASCII characters.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7028 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-15 22:46:06 +00:00
hikerstk
e23664c5bb Fixed line endings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7027 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-15 22:31:53 +00:00
auria
347d73cfd1 Fixed more memory leaks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6965 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-12 02:01:23 +00:00
auria
ad169e3191 Skyboxes and skydomes should be fog-free
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6954 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-11 21:52:14 +00:00
hikerstk
c4ba313e19 Removed debug print.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6864 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-05 22:30:24 +00:00
hikerstk
2c15bd265f 1) Made TrackObject use an ISceneNode instead of an IAnimatedMeshSceneNode,
allowing us to use the same base class for billboard.
2) Fixed billboard implementation: billboards are now properly removed,
   and can also be IPO animated.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6861 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-05 20:55:09 +00:00
hikerstk
c6607f4dbc Fixed lap counting: sometimes karts would get a 'distance along track'
after crossing the lap counting line that's larger than 2. 


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6821 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-30 23:34:02 +00:00
hikerstk
24d8d9ee9e Fixed 3122615: acid lake in xr591 did not trigger rescue (the lake mesh
had a rotation applied. Due to this bug an incorrect rotation was applied
to the mesh, resulting in the wrong bullet mesh, so that the collision 
was not detected).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6818 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-30 09:43:29 +00:00
auria
afce1534b9 Fixed warning
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6773 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-29 17:01:25 +00:00
hikerstk
b4533f0798 Removed debug check line visualisation correctly.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6770 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-29 11:47:15 +00:00
hikerstk
25b611a8d3 Adjust color of check lines according to state: active ones are
light red, inactive ones white-grey.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6765 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-29 05:26:45 +00:00
hikerstk
87b98b8fa1 Added visual debugging to check lines.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6747 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-28 22:08:02 +00:00
hikerstk
03ff921883 Fixed memory leak (check_manager and therefore all check structures
were not freed).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6746 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-28 22:07:05 +00:00
auria
063004c38d Applied samuncle's script modification and our code moficiations to start supporting billboards and particle emitters. Thans =) [I commit this even though we're basically in feature freeze for the simple reason that as long as no track makes use of them we can keep this feature unsupported and experimental]
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6744 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-28 18:57:31 +00:00
hikerstk
49dd6821a4 Fixed incorrect maths (wrong sign, probably after swapping the axis).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6730 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-25 22:20:16 +00:00
hikerstk
54a6e8edd5 Fixed computation of minimum height, added updating
minimum height when a transformation is applied (which
in part explains why slipstreaming sometimes didn't work).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6710 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-24 20:57:39 +00:00
hikerstk
b1b57be476 Zipper are now converted into buller objects. This means that a zipper should
be flat now and not slightly raised anymore. This fixes bug 3114770.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6691 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-22 01:22:49 +00:00
auria
126d319a03 When GFX are off, use static meshes instead of water nodes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6654 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-19 22:00:14 +00:00
auria
ded3a3daf7 Improved support for lower end computers with improved gfx=false experience
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6650 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-19 21:23:06 +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
196cb0aabe Fixed warning
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6639 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-18 15:45:29 +00:00
hikerstk
8d8e3e32a4 Improved minimap so that not all (visible) quads would be displayed,
but only the quads actually used in the graph.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6626 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-17 11:52:39 +00:00
hikerstk
9bed1f01c5 Moved pointer to last material from kart to terrain_info.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6602 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-16 09:23:18 +00:00
hikerstk
d877c8b829 Removed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6601 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-16 09:21:22 +00:00
auria
f0227bfd19 Don't crash when music not found
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6573 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-15 18:41:11 +00:00
hikerstk
3812d6b084 Fixed bug in checck structures (activation lines were set to active as default,
which means that if there is more than one activation line, you only needed to
cross the last one).
This will break proper lap counting in all tracks!


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6530 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-14 21:47:29 +00:00
hikerstk
27477ea270 Removed incorrect warning in battle mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6488 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-09 22:01:27 +00:00
hikerstk
aac738300c Fixed crash in case that there are more start positions
defined in a scene file than there are karts in the race.
Fixed handling of start entries without position values
in scene.xml files.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6487 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-09 21:54:08 +00:00
hikerstk
22ddf1ae9d Added comment.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6477 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-09 06:18:07 +00:00
hikerstk
24a34006c6 Renamed 'ambient-color' to 'ambient' to be consistent with other values
that don't use -color.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6467 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-09 00:18:32 +00:00
hikerstk
a47b730f3c Removed unnecessary/old code: support for track
specific number of karts, and light settings
in track.xml (which can be set using the track
exporter in scene.xml).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6465 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-08 23:58:12 +00:00
hikerstk
e3ff0acc95 Added call to reset in constructor, which will actually start the
animation loop.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6437 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-08 11:10:50 +00:00
hikerstk
af38843252 Added support for scaled objects.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6395 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-04 21:37:30 +00:00
hikerstk
aac8a503dc 1) Added support for scaled objects (previously scaling was included in
the mesh in the b3d file).
2) Changed m_init_* variables from Vec3 to core::vector3df.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6394 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-04 21:35:55 +00:00
hikerstk
4eb096528f Removed code that was commented out.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6367 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-28 05:14:04 +00:00
hikerstk
2cdd7c1745 Fixed (one) rotation bug: rotation for objects in the xml file are
already degrees, they were converted to degrees again.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6343 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-26 21:45:32 +00:00
hikerstk
716f7e4942 Fixed one crash with battle mode (though it still doesn't work fully).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6312 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-19 20:16:26 +00:00
hikerstk
6d3d6d69d0 Removed warning about "... element 'default-start' was met but is
unknown.".


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6303 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-18 03:10:18 +00:00
hikerstk
a83a40ec9f Made light position configurable, and automatically compute the
direction of light to point to (0,0,0).
ATM if no light position is specified, it will fall back to the
previous default value of (180, 45, 45) as direction, but some
tracks might need adjustment now.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6286 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-14 11:26:22 +00:00
hikerstk
50cd88e562 Improved start positions:
- Karts will now start forwards_distance after the lap counting line,
  meaning they will start behind the 'checkers' line.
- Every 2nd row is now moved 0.5*sidewards_distance to the right,
  meaning that there is much more space ahead of the kart for
  quick starts (i.e. the kart can drive between the karts in
  the row ahead of it).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6285 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-14 00:56:25 +00:00
hikerstk
83b6eccf64 Due to floating point errors it could happen that a kart crosses
the lap counting line in the very first frame. To avoid this,
karts will now start 0.1 units behind the lap counting line.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6278 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-12 21:51:36 +00:00
hikerstk
53d241fb65 Fixed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6274 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-12 08:33:51 +00:00
hikerstk
19b225a7ce Added improved default start positions. Start positions now follow the drivelines,
and the scene.xml file can specify how many karts to set in one row, and the
distance between karts in X and Z direction.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6256 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-11 21:49:35 +00:00
auria
c1d7f610a0 Cleanly handle when RTT is missing instead of crashing
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6232 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-10 14:41:55 +00:00
hikerstk
5f6b0729b7 Fixed incorrect rescue in fortmagma (and potentially other tracks): if a kart
falls down into the castle, it would be rescued to the floor of the castle, giving
it a huge benefit.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6175 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-30 23:26:18 +00:00
hikerstk
6d3c17f602 Added different way for detecting new lap: based on the quads this will
make sure that player ranking is always accurate. It's not used atm,
but around for testing.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6167 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-29 23:23:16 +00:00
hikerstk
fe91d4cfe5 Switched off debug print.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6164 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-29 00:26:48 +00:00
hikerstk
4b4bddf35e Support for grouping check structures. E.g. it is now possible to
have more than one lap line, which will always be in synch (i.e.
if one is triggered, all will be set to inactive).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6161 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-28 23:29:21 +00:00
hikerstk
3d66c17292 Added files missing in previous commit - sorry.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6160 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-28 23:27:14 +00:00
hikerstk
e189746787 Removed dubious warning about start line not on quad,
which can give a false positive on certain platforms due to 
floating point errors.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6159 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-28 23:19:56 +00:00
auria
e24b447a6d Removed unused includes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6158 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-28 14:35:43 +00:00