Commit Graph

2188 Commits

Author SHA1 Message Date
auria
8eaef3f63b Better player detection. Still getting some problems with irrlicht widgets : they internally catch some events without asking me. For instance, in 'press fire to join', if player has 'fire' assiged to the spacebar, pressing the spacebar results in irrlicht pressing the currently button - not sure how to get around this.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3726 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-11 01:56:07 +00:00
auria
3c6ba08857 Fixed ambient light not present when starting race with -N
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3725 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-11 00:14:04 +00:00
hikerstk
54c3c08558 Bugfix: incorrect name in #ifdef.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3724 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-10 01:08:57 +00:00
hikerstk
2474e7a164 Fixed steering direction for animation, and made animation smoother
(i.e. when steering left and then start turning right, the animation
started only after the 'straight ahead' point was reached, now the
animation will start immediately).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3723 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-09 04:25:38 +00:00
hikerstk
0340a352fb Added Xapantu's kart exporter.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3722 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-09 03:22:12 +00:00
auria
d1e805ad78 dynamic casts are only used in debug builds
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3721 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-09 01:37:10 +00:00
auria
ae33627515 Added widget cast helper method to widget to accomodate windows not having RTTI
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3720 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-09 01:29:23 +00:00
hikerstk
18f898f34e Added missing file from previous commit.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3719 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-09 01:13:01 +00:00
mbjornstk
d9d9cc13e8 Smooth bomb.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3718 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-08 23:27:32 +00:00
hikerstk
10f3541177 Bugfix: using char[128] for filenames is not long enough. Replaced with
std::string so there is no more length restriction.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3717 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-08 23:26:07 +00:00
mbjornstk
0e90316a99 Smooth box. Loop has correct reflection effect.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3716 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-08 23:17:22 +00:00
mbjornstk
3c50808965 Smooth tanks. Blue, cyan and green parts need something like EMT_SPHERE_MAP.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3715 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-08 23:09:00 +00:00
mbjornstk
412b1e9d58 Smooth cake.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3714 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-08 22:52:26 +00:00
mbjornstk
31fb2f971f Anchor is smooth too. Change naming a bit (but still some "anvils" around).
Bonus hack: temporarily using anchor as rescue model (avoids crashes).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3713 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-08 22:40:54 +00:00
mbjornstk
c6c561c387 Smooth model (enable "Normals" in B3D export options).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3712 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-08 22:17:27 +00:00
hikerstk
f332c3a345 Moved timeToString into StringUtils.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3711 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-08 12:34:39 +00:00
hikerstk
e8c70f73af Finished support for lap counting using checklines.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3710 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-08 12:33:22 +00:00
hikerstk
0f47c60042 Added support for VS heap check.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3709 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-08 12:32:25 +00:00
hikerstk
67091b1b4e Bugfix: dynamic_cast does not work if irrlicht is compiled without rtti (which it happens to be by
default with visual studio).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3708 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-08 03:21:13 +00:00
auria
c5afb804c3 Patch by StephenIRC to fix input when starting with -N
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3707 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-08 00:46:47 +00:00
hikerstk
1b6d075346 Lap counting is now done using checklines, old code for this removed.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3706 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-08 00:44:55 +00:00
hikerstk
9d88f0c07a 1) Fixed several typos (self. missing in function calls before I added an object for
the exporter)
2) Bugfix: Checklines are now convverted to world coordinates.
3) Added 'main-driveline' type, and simplified driveline definition (e.g. it can have
   connecting vertices from the left to the right driveline, but it also works if they
   are not there).
4) Fixed support for old-style items defined using the name RHERRING, which can have a number
   attached to it, e.g. RHERRING.001.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3705 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-08 00:42:45 +00:00
hikerstk
7f5fccbeff Updated VS project file.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3704 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-06 13:46:11 +00:00
hikerstk
8c1bba8abb Added initial support for checklines (though atm they don't do anything yet).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3703 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-06 13:35:33 +00:00
auria
18dc556fe6 Added functions to clean-up input after a game (though they're not called yet)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3702 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-04 20:09:49 +00:00
auria
a7abbf4c82 More work towards multiplayer (player 1 is now assigned an input device when pressing 'new game'). Cleanup when restarting game not implemented
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3701 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-04 20:00:18 +00:00
auria
1c256c7805 Refactored kart selection screen code to work towards multiplayer
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3700 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-04 17:24:09 +00:00
auria
a3af7f63a9 Added forward to help compilation
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3699 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-03 22:57:21 +00:00
auria
1e6373f999 The list of players shown in the kart selection screen now comes directly from preferences
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3698 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-03 19:13:53 +00:00
auria
58cfaa27fa Implemented model preview for all karts
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3697 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-03 19:06:24 +00:00
auria
c08e0eaf0a Spinners can now contain text + the number; used it for the number of laps selector
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3696 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-03 18:17:11 +00:00
auria
c8e7c5b92b Cleaned up widget code so type is automatically determined and does not need to be manually set
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3695 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-03 18:06:04 +00:00
auria
43ec7af757 Removing a player now triggers a confirmation dialog
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3694 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-03 17:52:13 +00:00
auria
1f2f028104 Improved player info dialog, with a cancel button, and by putting the delete button apart
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3693 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-03 17:24:44 +00:00
auria
55a282c829 fixed compiler warning
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3692 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-03 17:17:10 +00:00
hikerstk
ec86727813 Fixed line endings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3691 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-03 03:54:33 +00:00
hikerstk
fbec6365c3 Added support for exporting physical objects.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3690 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-03 03:49:45 +00:00
auria
6b58198830 Improved Release target of Xcode to build application bundle with data cleanly
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3689 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-03 01:44:55 +00:00
hikerstk
88600d7d2e 1) Animations can now be bullet rigid bodies, which means collisions are
possible.
2) The track exporter supports now exporting a single animation model only even
   if the model is used in several animations.
3) Changed the rad to/from degree macros to be uses as multiplication factors,
   i.e. RAD_TO_DEGREE*x instead if RAD_TO_DEGREE(x). This allows more compact
   code if vectors are convered (RAD_TO_DEGREE*vec3  instead of three separate
   macro invocations, once for each component)


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3688 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-03 00:51:31 +00:00
hikerstk
853bd9a0d3 Added some ambient light for windows only, since otherwise the
tracks are just too dark. Reason for this is not known, it looks
fine on Macs without this call.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3687 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-02 23:59:39 +00:00
auria
3d68830c60 Updated Xcode project so that executing STK will work out-of-the-box without needing to give data path to executable manually
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3686 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-02 01:47:01 +00:00
hikerstk
da030d923d Removed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3685 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-01 12:05:24 +00:00
hikerstk
d9e90576c7 Added support for bezier interpolation.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3684 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-01 12:04:26 +00:00
hikerstk
0fffe4c97f Fixed typo (writing incorrect coordinate).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3683 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-01 12:03:08 +00:00
hikerstk
d1807bf4c4 More animation support (still not complete) - animated objects in
blender will now be exported with local coordinates, and the
right location is exported in the .scene file and used in STK.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3682 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-01 02:14:30 +00:00
auria
f4c08a75bf updated Xcode project with new files
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3681 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-01 01:40:56 +00:00
hikerstk
6cefc34b31 More work on animations (still work in progress)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3680 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-30 12:51:38 +00:00
auria
d9f3a197cc Fixed compiler warnings (and potential memory issues)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3679 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-29 23:56:26 +00:00
auria
fc52b751b6 Updated Xcode project
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3678 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-29 23:54:37 +00:00
hikerstk
e6fb0c9231 Removed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3677 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-29 03:38:48 +00:00