Commit Graph

443 Commits

Author SHA1 Message Date
hikerstk
2813e3d75c More fixes related to camera handling.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4903 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-02 05:14:56 +00:00
auria
8d2d755490 Solving a challenge will now actually show the features you unlocked. Adapted the feature unlocked screen to be able to show many unlocked features at once. Show unlocked text in feature screen.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4896 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-02 01:25:29 +00:00
auria
2efb0ceb10 Added the possibility to use trilinear filtering. Trilinear and anisotropic filtering can now be configured (disbaled) in the user config (not yet in the GUI)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4893 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-01 22:56:32 +00:00
auria
f12641d33b Anisotropic filtering is now specified in materials.xml. Now we can have crisp textures wherever we want, without wasting time doing the calculations where not needed
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4892 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-01 22:18:13 +00:00
auria
2efd3bb475 Activated anisotropic filtering. For now it's on everywhere and not selectively, which is perhaps not what we want, but it makes textures on the ground much crisper and eliminates blurring at a distance on the ground
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4865 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-27 15:54:27 +00:00
hikerstk
d7c44cc93d Physics debug mode now cycles through off, show karts and collision shape,
to show only collission shape and then back to off. The command line
option --bullet-debug was removed.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4853 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-26 07:03:12 +00:00
mbjornstk
db2805bffa Wild fix for things being overlighted/white. "Works for me", please test.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4848 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-25 21:28:35 +00:00
hikerstk
bd33113f20 Fixed incorrect heading and pitch in vec3, fixed rescue (again),
fixed checklines, improved camera (still not fully working), fixed
incorrect 'wrong heading' messages.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4844 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-25 13:20:22 +00:00
hikerstk
13f4c5c8ab Removed unused final camera.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4843 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-25 03:33:39 +00:00
auria
2945e55d89 Fixed camera doing ugly moves when restarting race
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4836 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-25 00:16:06 +00:00
auria
81bfc497b3 Lowered dependencies of Shadow (now accepts any scene node, no more uselessly requires an animated mesh)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4831 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-24 22:11:06 +00:00
auria
3ece963bc2 Lowered dependencies of Star (now accepts any scene node, no more uselessly requires an animated mesh)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4830 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-24 22:10:27 +00:00
hikerstk
5682cd0d4c Work around for bright light on Linux and Windows.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4825 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-24 12:12:45 +00:00
hikerstk
fbeaa0524f More fixes to swap the bullet axis.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4822 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-24 05:23:00 +00:00
hikerstk
092a59a7d2 Very first changes. Doesn't really work yet and will most likely crash - not recommended to use :)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4813 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-23 13:27:01 +00:00
auria
6577d770fb My latest (failed) attempt at fixing MrIceBlock : allow setting material settings for untextured surfaces too. Committing because we might eventually see an interest in this
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4809 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-23 00:09:09 +00:00
hikerstk
f4a830fed4 Removed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4805 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-22 22:08:19 +00:00
auria
77d2032682 Removed previous attempt, since irr docs clearly say 'This flag is ignored, if the material type is a transparent type.' (i.e. they're making it official that their support for alpha textures is crappy -.-)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4803 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-22 20:29:17 +00:00
auria
da45ef4721 Some tweaks with alpha. I thought this'd fix Mr Ice Block floating eyes, but it's not the case *sigh*
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4802 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-22 20:26:26 +00:00
hikerstk
f41150eae7 Replaced OpenGL bullet debug view with irrlicht bullet debug view.
Debug view can now be switch on and off during a race (ctl-F11),
but currenlty does not display as much information as the 
original debug view (more to be implemented here).
Removed glut dependency.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4794 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-22 12:02:13 +00:00
hikerstk
9a767dcdbe Added support of far camera to stk, updated final camera handling of track exporter.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4775 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-20 01:42:32 +00:00
auria
93cc5209f7 Converted sound effects file to XML. Along the way, refactored the audio code to be more flexible. before, when a sound changed, you needed to edit the config file of STK, edit the enum in the header, edit the loader in the .cpp... was annoying. Now you only need to edit the config file.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4728 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-15 19:17:35 +00:00
hikerstk
da3de6d131 Big code refactoring: instead of having auto_kart, player_kart, the karts
now use a 'controller' object which is responsible for its steering, e.g.
a default_ai_controller, player_controller etc. This makes it easier to
switch a player kart to use a end-of-race computer controller to drive
the kart once the race is finished (though that's not implemented yet).
I expect some bugs with restarting race, and perhaps end of race
behaviour at this stage.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4714 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-15 00:54:28 +00:00
hikerstk
328373289a 1) Moved access to world object from race_manager to static functions in
world.
2) Removed more dujplicated/unnecessary functions from race_manager
   (getPlayerKart, getTrack).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4682 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-11 07:11:52 +00:00
hikerstk
47a1a1dfa2 Removed m_local_player_karts vector from world.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4678 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-10 12:47:18 +00:00
hikerstk
c6bf95a64c Started to remove the various kart lists in various objects.
1) Removed getKart from RaceManager.
2) Renamged RaceManager::getNumKarts() to getNumberOfKarts.
   This function should only be called when the world
   does not exist (or is not yet initialised). 	In all
   other cases world::getNumKarts() should be called.
3) Improved several 'const' functions.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4676 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-10 11:40:33 +00:00
auria
f78001c7b2 Misc nitpicking
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4675 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-10 02:11:56 +00:00
hikerstk
93e15df841 1) Replaced all .projectile files with one powerup.xml file,
replaced items.item with items.xml. Cleaned up item_manager
   and removed support for different item styles (since it
   didn't work anyway)
2) If a swapper item is used while items are swapped, they will
   now un-swap.
3) Moved all models and textures from data/items to data/models.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4648 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-07 02:05:21 +00:00
hikerstk
8be9c3397a Added first version of switch collectable.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4635 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-04 22:53:24 +00:00
hikerstk
192fc34572 Removed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4634 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-04 22:37:33 +00:00
auria
5d2d0973f2 Added back support for detecting bogus resolutions when switching, and revert to the previous working one when user can't click confirmation button
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4628 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-04 00:45:24 +00:00
auria
af02da1267 Eclude from resolution choices resolutions that are too small (and that STK's GUI does not support)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4627 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-03 21:56:45 +00:00
auria
f1c9b285fa Fixed resolution switching closing STK. Includes a totally ugly workaround a irrlicht behaviour I don't understand
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4626 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-03 21:47:36 +00:00
hikerstk
fcf956afbb Bugfix: the last searched setting from a materials.xml file would
take effect, not the first one (e.g. the shared one instead of
a track/kart - specific one).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4617 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-02 12:01:24 +00:00
auria
4595c5adb3 Fixed lighthouse trees (adding a couple code cleanup that I did while searching for the issue)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4602 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-01 20:03:32 +00:00
hikerstk
5def2dd4f6 Fixed bullet debug view.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4593 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-31 23:08:23 +00:00
auria
e17df53539 Fixed compilation with irr 1.6
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4592 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-31 21:27:50 +00:00
auria
5772c9e8ad Implemented U/V clamp support for materials
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4591 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-31 20:51:34 +00:00
auria
fd5730a0da Better cursor show/hide management (esp. cursor will show in in-game dialogs)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4565 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-30 19:53:06 +00:00
mbjornstk
17949c6ffe Better var names and make obvious that until counter expires FPS will not show.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4555 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-29 02:03:45 +00:00
mbjornstk
f1353892c1 Ignore FPS values at start, too many times they are misleading.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4554 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-29 00:38:40 +00:00
hikerstk
2f9f6a4db4 Fixedc typo in previous commits.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4552 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-28 12:01:28 +00:00
hikerstk
ef373115d3 Missing file in previous commit.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4551 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-28 11:54:01 +00:00
hikerstk
eb54b77c36 Added function to print some render statistics.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4550 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-28 11:50:47 +00:00
hikerstk
e0e1d760fa Added support for lightmaps, but this is completely untested atm.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4549 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-28 04:37:56 +00:00
hikerstk
aca45713c2 Position of slipstream graphical effect now depends on the 'target' kart, and
is using the height of the terrain instead of the karts' positions (since then
the suspension will make the slipstream jump). Pretty much work-in-progress,
and not activated atm.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4547 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-27 12:33:59 +00:00
hikerstk
c25297b7a3 Made destructor virtual (and some cosmetical changes).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4546 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-27 12:29:35 +00:00
auria
998cc50ed0 RIP domestic manners
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4535 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-24 23:57:50 +00:00
auria
3920dfe101 Improved black border effect for title font
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4531 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-24 16:48:13 +00:00
hikerstk
fe74d19a12 Removed unused 'collideable' attribute for materials, renamed 'maxSpeed'
to 'max-speed' to be consistent with other names in stk.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4499 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-20 02:34:43 +00:00
auria
f3586353f0 Make slipstream look a bit better
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4498 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-20 02:13:58 +00:00
hikerstk
a9ca58ff97 Renamed 'slowdownTime' in materials.xml file to 'slowdown' which more
accurately reflects what it is. Re-scaled the slowdown from '10' =
normal to '1' =normal and removed stk_config paramter for this scaling
factor.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4495 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-20 01:23:57 +00:00
hikerstk
81d074a694 Added some slip stream graphical effects (which are disabled by default) - pretty much work in progress.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4493 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-19 23:15:25 +00:00
hikerstk
797ac71d4b Kart shadows can now be loaded from the data/texture directory, too.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4461 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-13 14:43:17 +00:00
hikerstk
4455f89920 Removed unnecessary include.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4453 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-13 01:58:20 +00:00
hikerstk
b9e8e0891c Bugfix for bugfix: make the stars not only stop rotating, but to
disappear completely when restarting a race.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4444 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-12 23:13:38 +00:00
hikerstk
901f8ae7d4 Bugfix: the rotating stars were being shown when restarting a race.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4443 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-12 23:00:10 +00:00
hikerstk
cf0e69b48f Removed #include of kart and player_kart from world.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4424 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-10 23:12:29 +00:00
mbjornstk
9739d1e1b3 Make marks fade to transparent (not 100% sure), instead of white ghost.
Pretty much an exercise in guessing if things are premul or not, and what has
to be pure black or can be a more real dark grey. Maybe needs more changes.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4414 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-08 01:09:14 +00:00
auria
11d864ae7c Attempt at using iconv. Fails miserably for me atm because gettext will only return latin-1 and not UTF-8 like I ask it
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4412 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-08 00:23:31 +00:00
auria
a91591b7c4 Fixed compile warning
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4408 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-07 23:05:43 +00:00
auria
dd9fedd810 Use texture clamping to enhance GUI look
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4407 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-07 23:04:59 +00:00
auria
72c8240bfc Use the irrlicht 1.7 feature that enables smooth scaling in the GUI (ahhhh, my eyes =). A few known issues have been introduced, they will hopefully be fixed soonish.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4406 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-07 22:55:38 +00:00
hikerstk
dcec9bafcf Added support for irrlicht 1.7.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4400 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-05 03:38:35 +00:00
hikerstk
deff7613e1 Removed VS compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4391 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-04 02:53:37 +00:00
auria
5c432893f3 Gracefully exit when closing window
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4384 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-02 16:28:55 +00:00
auria
f58bc8708b Fixed resolution change messing up kart selection screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4378 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-30 21:28:59 +00:00
auria
27decfcd2a Fixed hiding cursor (responsible was copy and paste)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4377 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-30 21:07:38 +00:00
auria
75149a100c Karts in kkart selection screens are now animation aware and will display the center frame (though elephant still seems slightly off-center, not sure why)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4375 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-30 19:41:59 +00:00
hikerstk
e47cc19b85 Fixed VS compiler problems and warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4361 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-29 23:59:51 +00:00
mbjornstk
de968f2df2 Change from 8 to 7 stars (no symmetry) and make them dance up and down (tilt
that changes with time, like edge of coin that is stopping after falling).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4360 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-29 00:31:33 +00:00
auria
7bc47f2ffd Improved stars effect with fade in and fade out
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4359 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-28 20:06:41 +00:00
auria
5e5f91247b Added 'starts rotating around head' effect for hit karts
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4358 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-28 19:37:59 +00:00
auria
71f9a6d44f Fixed explosion fade-out
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4349 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-24 02:58:50 +00:00
mbjornstk
2f3523cd52 Improve explosions. Fading still not working but needed.
Once fading works, maybe increase quantity for thicker start.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4348 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-24 01:00:47 +00:00
auria
72c2b7a021 Made explosions better-looking. Fade-out affector still seems buggy; at one point it worked, now no more
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4337 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-22 20:03:12 +00:00
mbjornstk
5fe41e5625 Run expand -t4 to convert tabs to spaces. No other whitespace fixes, but
there are still trailing spaces and lines with 5 spaces as indent (fix them
as the files are changed for other reasons). src/guiengine/CGUIFont.* and
src/bullet/ not processed to allow cleaner updates from upstream.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4320 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-18 00:36:35 +00:00
hikerstk
9aba7a2b1e Removed debug output.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4311 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-17 02:44:09 +00:00
hikerstk
de0e948c9a Simplified camera code somewhat, added support for final-camera, and made reverse
faster.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4306 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-16 21:37:33 +00:00
mbjornstk
a9bdacbe80 Try to enable fading (but seems to do nothing visible).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4292 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-15 01:29:38 +00:00
hikerstk
81eeb36edb Added a minimum speed karts need in order to use slipstreaming. Removed debug output.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4274 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-09 03:50:44 +00:00
hikerstk
f78baf0c82 Fixed memory leak.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4273 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-09 03:48:27 +00:00
hikerstk
e75cfe25ba Hopefully fixes crash happening when restarting races.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4271 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-08 00:52:53 +00:00
mbjornstk
22d233b46c Wrap some lines with {} so g++ 4.3 does not abort.
For reference, and in case there is a better fix, the error reported was:
graphics/camera.cpp:124: error: jump to case label
graphics/camera.cpp:117: error:   crosses initialization of "const int y2"
graphics/camera.cpp:116: error:   crosses initialization of "const int x2"
graphics/camera.cpp:115: error:   crosses initialization of "const int y1"
graphics/camera.cpp:114: error:   crosses initialization of "const int x1"


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4269 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-06 21:03:59 +00:00
auria
edf2a43676 As suggested on the mailing list : 3-player-plit-screen should divide in 4 and use the 4th window to put stuff like minimap and players
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4261 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-06 18:35:58 +00:00
auria
ce83dccecf Fixed 4-player split-screen (Seems like Hiker loves ternary operators; but they made it totally unobvious that screen width was used to compute viewport y ;) )
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4260 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-06 18:17:10 +00:00
auria
3c67c88720 Decreased FOV in multiplayer mode, will look much less weird
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4259 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-06 17:56:41 +00:00
auria
62f3ea1411 Now more different stuff comes out of the chest
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4250 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-06 02:05:45 +00:00
auria
a2357958f9 Now something comes out of the feature unlocked chest
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4248 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-06 01:30:39 +00:00
auria
3a8473e8c6 Added animated Wilber by Rudy & Xapantu
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4237 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-05 15:17:32 +00:00
hikerstk
5b58714fff Revmoed support for irrlicht 1.5 (which doesn't have all functions we need anyway).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4236 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-04 01:09:40 +00:00
auria
584417910d Cleanup, mostly in race ending
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4232 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-01 19:49:11 +00:00
hikerstk
5773e5ccf9 Added missing initialisation of ambient light, which should fix dark tracks on
non-windows system (untested yet).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4230 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-11-30 13:30:32 +00:00
hikerstk
ed9bd38402 Some redesign of split screen to enable proper handling of
ambient light changes.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4229 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-11-29 13:04:57 +00:00
hikerstk
a5a90be806 1) Started to add split screen (though not all parts of the race gui are displayed correctly yet).
2) The name of an AI kart will now only get the AI name added if it's profile mode (to prevent
   the name with AI name to be displayed in game)
3) Some code cleanup.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4226 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-11-23 05:20:05 +00:00
hikerstk
dfc170e448 Added (usually commented out) settings for a debug camera, which shows the track from
high above, which is useful for debugging AI behaviour.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4211 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-11-08 12:13:50 +00:00
auria
b2b5b095b2 Fixed unlit materials (i.e. nitro color no more depends on your orientation)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4167 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-10-29 21:00:11 +00:00
auria
8ac714a8f6 Partial fix for lighting issues
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4152 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-10-26 00:03:23 +00:00
mbjornstk
0d4e9f3655 Fix box sphere mapping in the cyan part and add water particle.
The water particle is not final, but at least this stops abusing other file.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4145 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-10-21 00:24:49 +00:00
auria
325b7aff3e Updated camera start position for a nicer effect
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4137 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-10-20 14:06:41 +00:00
hikerstk
645e79fe30 Made mipmaps the default for b3d files, independent of the mipmaps
flag setting in the file.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4119 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-10-15 23:43:43 +00:00
auria
3b85e07f68 Fixed crash
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4118 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-10-15 22:11:02 +00:00
auria
10e039ba7e Removed the CutScene adapter, the new event handling for Screen does not require that kind of thing anymore to combine 2D and 3D, and to use animations
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4115 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-10-13 19:14:17 +00:00
hikerstk
c5c7f3d37c Fixed 'invisible tree' bug (which was caused by the textures having u/v-wrap defined).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4113 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-10-13 12:11:32 +00:00
auria
d7c7861bd1 Removed many 'using namespace' from headers
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4111 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-10-12 23:43:14 +00:00
auria
0f14b098cd Completely removed the IRR_SVN macro, makes it confusing for people trying to build STK from autotools. irrlicht version is now detected from irrLicht includes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4092 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-10-06 19:17:16 +00:00
auria
8b466a6b39 Working towards support for 'cutscenes' (nothing fancy, just a small animation when you finish a challenge, etc.). Navigation is there, though display is all messed up and I still need to figure out why. The network button in main menu is currently (and temporarily) used to test this
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4073 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-10-04 01:16:00 +00:00
hikerstk
35fb7ce90e Added some support for clamping.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4059 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-09-28 12:25:21 +00:00
hikerstk
0a84da2726 Applied Hendrik's patch:
Adding command line option --renderer.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4023 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-09-15 04:48:14 +00:00
hikerstk
0a5e7ba293 Bugfix: the 'circles' representing karts in minimap were not working anymore.
To auria: something's weired with the rtt - you are calling setRenderTarget
twice - but it looks like it's not working for the kart screen otherwise.
I've worked around so that at least the 2d rendering works as expected (with
a single call).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4014 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-09-08 12:50:52 +00:00
auria
5aa52c20ce Implemented viewing the help menu in-game
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4009 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-09-06 18:45:38 +00:00
auria
22f6c6e008 First (rough) version of an end-of-race dialog
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3974 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-09-01 18:11:26 +00:00
auria
d35635f1f6 Disabled clearing of the back buffer since it's unused and would only slow down rendering uselessly (this implies all tracks will need skydomes, but i think we agree we don't want the blue sky of death anyway)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3968 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-30 23:10:34 +00:00
mbjornstk
e8df3135c1 Change base colour of marks.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3967 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-30 20:10:28 +00:00
auria
c42429b7d0 RTT can now handle rendering multiple sets of different objects at once (required for multiplayer kart selection)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3955 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-29 19:59:27 +00:00
auria
1281cc5cfd Reduced FOV in kart preview rendering so that they look more natural (less 'stretched')
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3949 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-29 17:23:00 +00:00
auria
ff2dd24ec6 Cleaned up render-to-texture code. It should be much more efficient for kart rendering, and also code should be easier to read. @Joerg: I think I didn't break your RTT bits but better check *blush*
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3948 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-29 17:09:03 +00:00
hikerstk
88abe09dd6 1) Added --kartdir directive, allowing loading of
additional karts from other directories.
2) Fixed potential bug (--track might have allowed you to
   run a locked track)
3) --list-tracks and --list-karts can now keep on running
   (before STK would be ended) - but they are slower now
4) Renamed all kartname.irrkart file to kart.xml. I realised too
   late that those files had not been converted to xml yet.
   It will be fixed later.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3930 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-27 06:22:52 +00:00
hikerstk
96dc2a8fe2 Cleaned up StringUtils: used 'better' names (e.g. getPath()
instead of path()), and used our convention of using capitalization
for words (and not _). Started adding support for additional track
directories, but that's not working yet.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3912 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-24 05:56:53 +00:00
hikerstk
c1d69986b0 1) Profile mode now works, and is now completely implemented
in ProfileWorld only (no more m_profile in UserConfig)
2) Added some more virtual functions to the modes to simply
   code a bit.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3909 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-23 15:42:58 +00:00
hikerstk
63e16e3e8a Removed scene.?pp (which didn't do much anyway except for
handling the cameras, which can as easily be handled by
player karts instead).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3883 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-19 04:03:25 +00:00
hikerstk
184ba6269e Bugfix: the circles for the karts on the minimap were not shown
when the game was started using the menu (instead of -N command
line option).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3878 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-18 09:41:53 +00:00
hikerstk
85324a7685 Fixed several memory leaks. Now the karts displayed in the kart
selection screen after a race was finished should be 'clean' (though
a 2nd race might still not work at this stage).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3872 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-17 00:24:47 +00:00
hikerstk
405ee12ca5 Fixed various memory leaks.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3857 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-13 23:26:38 +00:00
hikerstk
c64608eec7 Added fixes to STK to work with current irrlicht SVN. All changes
are in #ifdef IRR_SVN - and at this stage linking fails for atm unknown
reasons. No changes to irrlicht 1.5 compilation.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3811 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-05 12:45:11 +00:00
hikerstk
6f2eeae5a7 Code cleanup (removed HAVE_IRRLICHT, ...).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3800 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-02 23:42:03 +00:00
hikerstk
024e0d545e Fixed bullet debug view, improved bullet debug camera to be always
behind the kart now.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3796 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-02 23:18:10 +00:00
hikerstk
89b2eea124 Added first version of track mini map to race gui.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3784 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-30 02:40:30 +00:00
hikerstk
368604f379 Added speedometer.
NOTE: to use the speedometer, a patched version of irrlicht is needed. The replacement
files are included here, we hope that the necessary functions will be included in the
next irrlicht release (STK will still compile without a patched irrlicht version,
but not display the speedometer).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3781 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-27 11:56:09 +00:00
hikerstk
d8b212aa44 1) Fixed render-to-texture bug (which resulted in black background instead of
transparent one for the kart selection screen and mini map).
2) Added very first version of minimap (scale is wrong, no kart display yet).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3778 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-20 12:35:34 +00:00
auria
85266dfe10 Started mammoth cleanup of GUI code. Separated the generic GUI engine and the STK-specific bits (still work to do on this side)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3764 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-18 17:48:36 +00:00
hikerstk
6706e72311 1) Quad meshes are now easier to use generally
(though still backwards compatible with e.g.
   rubber band and shadow)
2) More scene cleanups.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3756 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-17 00:22:58 +00:00
hikerstk
9563b78500 1) Added general messages (fastest lap etc) and plunger-in-face
2) Removed unused plib font objects - hooray :)


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3754 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-16 03:24:17 +00:00
hikerstk
e7d17ad201 Added kart icons and time display.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3746 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-13 12:25:38 +00:00
mbjornstk
5f7d9db5c3 Add minimum and maximum FPS reporting.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3741 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-12 20:47:01 +00:00
hikerstk
88b4b3b041 1) Added calls to new render functions which are
called during the irrlicht rendering, so calls
   to directly print etc. to the screen are possible.
2) Time and ready/set/go of the race gui now work.
3) Code cleanup.
4) Removed compiler warnings.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3740 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-12 11:54:21 +00:00
auria
71a2083819 Pressing fire on another devices in the kart selection screen will now cause new players to appear
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3728 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-11 15:20:18 +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
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
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
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
555a6cb8e8 Implemented FPS display. Limited FPS in menus where it's really not necessary to push the graphics card hard
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3676 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-29 01:40:15 +00:00
auria
7a2e67505f Tux now has wheels in the kart selection screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3655 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-26 01:19:57 +00:00
auria
ec590c76b8 Gave some light to kart preview (not smooth yet)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3648 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-25 00:50:58 +00:00
auria
e7433c50dd Improved the kart model view
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3646 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-24 23:01:45 +00:00
auria
2f6b05bace started converting user config to XML. Implementation is not 100% complete yet; saving works, not lodading. Implementation is not the prettiest but designed for minimal maintenance.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3625 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-21 01:10:43 +00:00
hikerstk
f6c37bd837 Minor changes and code cleanup (still no fading/transparency).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3617 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-18 23:54:46 +00:00
hikerstk
7bb91862ff First version of skid marks (though the skid marks are not yet
transparent, nor do they fade).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3616 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-18 05:36:52 +00:00
hikerstk
ee90eca26e 1) Created new config subdir and moved the last remaining files into
appropriate subdirs (only main.cpp and main_loop.?pp are now directly
   in the src directory).
2) Cleaned up all #include directives, so that all files now use
   the right subdirectories.
3) Some minor code cleanup.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3606 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-11 10:00:43 +00:00
hikerstk
2eceacbd70 1) Added new water splash effect (though it needs a proper texture, and
better tweaked parameters).
2) Water and smoke special effects can now be triggered depending on
   terrain (default is off for everything). For testing purposes the
   lighthouse track has smoke for sand, and water splashed for sea
   (i.e. it is currently possible to drive on the water ... for
   testing purposes only :)  )


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3605 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-11 05:57:46 +00:00
hikerstk
c0ab52bfb3 Simplified smoke system (to use only one particle system instead of two),
and improved the origin of the smoke to be the actual position of the
wheels (though this is sometimes still not 'correct' enough atm).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3602 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-10 13:04:30 +00:00
mbjornstk
2a99182969 Edited nitro PNG to be more circular and tweaked emision so it looks like
the kart is leaving a fire trail. Also made it fire even if stopped, so
driver sees nitro works (wasting it).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3600 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-09 23:04:18 +00:00
auria
63c6229fbc Fixed passing reolution on the command-line with -s. Improved command-line flags handling to not create a graphical context when none is required (like for --help or --version)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3596 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-07 15:20:51 +00:00
mbjornstk
3cc2aad628 Tuning of skid smoke. Particle is more transparent and has slight cyan shade.
More particles but smaller, with different life times. And trying to get them
to fade, but that is not working (trying to get them to become red as test,
final version should just fade transparency).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3593 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-04 20:16:38 +00:00
mbjornstk
f964dc5723 Cloned original smoke code by hiker to create nitro particles so I can
test and tweak images if needed. xml was wrong but no obvious output in 
console so missing png was a real headache to figure. Tweaked drifting 
power loss (0.75 -> 0.5) and default brake power (100 -> 20).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3589 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-04 00:16:13 +00:00
mbjornstk
c5fbf40736 Experiments with smoke size and position.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3587 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-03 23:00:16 +00:00
mbjornstk
f84a77cf59 Test with two smoke trails. Easily undoable (not mixed the right and left
parts yet, so erase _r part and mass replace s/_l//g). If this stays,
better find the common parts and mix the rest so any change is done for
both sides.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3582 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-03 01:49:57 +00:00
hikerstk
96805cfc71 Moved race related files into new subdir 'race'.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3581 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-03 01:36:48 +00:00
auria
70a924c105 fixed warning (and potential problem)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3579 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-03 00:44:37 +00:00
hikerstk
e1b835cafd Fixed smoke system (minor issues: smoke comes from the middle of the kart,
not from the two wheels anymore).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3577 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-03 00:39:20 +00:00
hikerstk
075c9dbb86 Moved more files into appropriate subdirs, update build
system for VS (verified) and autoconf (not verified).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3574 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-02 12:37:29 +00:00
hikerstk
55c7bbe600 1) Explosions now work, though need a new texture and
better particle parameters.
2) Minor work on smoke particle system, not finished.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3573 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-02 12:06:35 +00:00
mbjornstk
ab41b6fa78 Fixed shadow (front was back) and lowered it (overlapped wheels too many
times). Probably it should made to follow the ground instead, maybe split
into 2*2 (or equivalent triangles, to have control over the edges) or 4*4
quads too, for better shape adaptability.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3566 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-31 20:35:55 +00:00
hikerstk
7926d5fe97 Added 'old style'/simplified shadows back in - to be used for lower
end hardware.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3551 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-29 15:45:27 +00:00
hikerstk
9b38b69057 Renamed GUIEngine::free() to GUIEngine::cleanUp(), which allows
the usage of the VS memory debugger (which redefines free using a macro).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3546 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-28 03:15:43 +00:00
mbjornstk
2a7052de02 Fix compiling issue in Linux, definition of variables after case labels fail.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3534 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-23 23:43:26 +00:00
auria
becdbdf2f5 minor cleanup; removed some code from old input module that was left over and not used; replaced 'hello's in the GUI with a more appropriate empty label
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3533 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-23 23:04:57 +00:00
auria
4f2574818d dampened camera moving around. should make you feel less dizzy while not ebing as static as it used to be
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3532 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-23 01:45:50 +00:00
hikerstk
864c1d6fff 1) More redesign of drivelines into quad graphs. Moved
graph related functions from Track to QuadGraph,
   removed plib usage. The AI is now able to drive
   a loop (re-using the same quad, before continuing
   on the original path). The beack track currently
   defines a simple look at the first right hand
   turn (the AI will drive down the hill, then
   up again and then keep on going).
2) During the conversion process some AI called
   function were significanly sped up, but it has
   to be tested if this has any ill effects for
   certain tracks or certain karts.
3) Tried to add support for moving sky domes, but
   that doesn't work yet.



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3527 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-22 03:23:48 +00:00
hikerstk
afdb422635 Added first version of track debug output showing all quads.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3523 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-19 03:24:56 +00:00
stevo14
2b3dc3c668 Implemented CM_REVERSE camera mode for looking backwards.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3480 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-12 20:23:27 +00:00
auria
f4a76bc2ae removed 95% remaining dependencies on plib
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3479 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-11 01:28:18 +00:00
auria
b03f45605b switching resolution multiple times now works (i.e. you get no more [?] boxes and 'hello's
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3478 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-11 00:23:40 +00:00
auria
e7836dab60 Switching resolutions now works as expected (but only once) + misc other changes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3477 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-11 00:09:40 +00:00
auria
80b73d2533 fixed detecting resolution on linux
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3473 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-10 00:55:46 +00:00
auria
b0b3b9d3ae Resolutions in options menu are now obtained from irrlicht
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3472 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-09 20:20:16 +00:00
stevo14
5d1727e5dd Implemented CM_FINAL camera mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3471 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-09 16:01:16 +00:00
stevo14
a488b489ef Camera now points where the kart is turning based on steering angle and skidding amount, not on speed.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3469 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-08 21:19:29 +00:00
mbjornstk
d964805365 Make the camera look at/above the kart, not the ground; and make the rotation
range depend in a variable (like position and target speeds, so it can
be adjusted later). Also some white space cleanups.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3468 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-08 16:07:01 +00:00
stevo14
d72aaa70f5 Camera now points in the direction that the kart will be turning (but less so at higher speeds in order to reduce sudden camera movement).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3467 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-07 15:17:58 +00:00
stevo14
7dd6011a8e Brand new camera using smooth transitions.
Does not yet support: splitscreen, 'final camera' mode, 'replay' mode, or looking backwards. 
Also, *No support for plib* uses only irrlicht. 

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3466 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-06 19:47:14 +00:00
hikerstk
99c171e3f4 Fixed kart rotation in bullet debug view (reason was actually incorrect
culling).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3455 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-03 12:33:26 +00:00
auria
99e6752200 totally removed SDL dependency. wav sounds have been converted to OGG, since we already have an OGG reader in - why require an additionnal dep like SDL, that does input, graphics, etc. when we only need audio and already have an audio reader in? Original .wav files (lossless) will be added tomedia repository (second part)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3449 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-03 00:50:09 +00:00
hikerstk
fd82138d8f Added support for bullet debug view (still somewhat buggy, karts are
not shown correctly atm).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3442 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-29 14:48:18 +00:00
auria
9eea5f5aac gamepad axes work again
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3423 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-25 19:26:44 +00:00
auria
87a274fc77 started removing SDL from STK. Gamepad input broken, maybe keyboard a bit too. Default bindings changed because some keys on mac are ignored by irrlicht (known bug, fixed in enxt version IIRC)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3421 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-25 17:55:39 +00:00
auria
f3cbe0984b attempt to detect available video modes. fails miserably for the moment, please test on other platforms...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3419 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-24 00:14:04 +00:00
auria
94bbe12636 show black before resolution switch so we don't see OpenGL's buffer garbage during switch; made the 'previous' width and height in user preferences valid again
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3418 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-23 23:34:41 +00:00
auria
db978329ad added the necessary core code to allow resolution switching. currently you can't choose from list, but clicking the 'apply video changes' button will test it by going into 800x480 resolution (so don't try this when fullscreen...)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3417 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-23 23:27:06 +00:00
auria
b057267db1 more on skinning : replaced ugly blue rectangle with a subtle glow. more tweakings necessary to make it good everywhere
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3378 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-11 19:02:33 +00:00
hikerstk
5e30e66dc2 1) Prepared support for kart animations.
2) Removed unused plib only loader.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3365 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-05 12:53:17 +00:00
hikerstk
30de5e36f8 Removed callback manager, callbacks are not needed the way they were
with plib, and the track is now updating its animated textures and
physical objects.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3337 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-01 00:55:20 +00:00
hikerstk
4ccd7662ef 1) Added support for animated textures.
2) Removed static_ssg source files.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3335 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-31 23:45:20 +00:00
hikerstk
f860816241 1) Added support for nested tags to XMLNode.
2) Made all xml files well formed.
3) Minor code cleanups.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3324 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-31 02:52:01 +00:00
auria
34f8e281d7 bringing gamepad input a bit more in. help me with testing please - i can somewhat fake gamepad input with some utility but it's not too handy
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3310 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-29 15:51:55 +00:00
hikerstk
591d997670 Bugfix: beach track would crash.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3307 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-27 12:34:52 +00:00
hikerstk
247914b566 1) Support for transparency added (mainly lighthouse track).
2) More cleanup, tests, ...


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3304 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-26 23:31:00 +00:00
hikerstk
c14c06e830 1) First version of rubber band (to do: rubber bands are sometimes not visible)
2) Code cleanup.
3) Initial support for special water nodes.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3299 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-23 23:50:50 +00:00
hikerstk
9bc24c6a4e 1) Added support for sky-domes (this needs to be nicer, this is
only a proof of concept (sky boxes are wip).
2) Started work on explosions using the particle engine.
3) Removed plunger when the rubber band snaps.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3274 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-17 02:52:58 +00:00
hikerstk
f5d9330e77 Hide details about ambient light in irr_driver.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3265 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-16 01:45:49 +00:00
auria
f5ced788ac Game menu now shows up :) Input is not yet handled, so not yet usable. Some dummy placeholder datafiles included for the sake of having something testable
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3261 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-15 01:34:21 +00:00
hikerstk
d2b45f0761 Converted DomesticManners to an irrlicht font, more cleanup.
Time is now displayed using the new font.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3242 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-12 05:21:13 +00:00
hikerstk
8a60edf241 Moved file manager to io subdir, made irrlicht compilation default,
started removing #ifdefs HAVE_IRRLICHT.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3239 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-12 03:49:31 +00:00
hikerstk
511be41e70 Start adding support for physical objects (e.g. road cone).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@3221 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-11 05:10:56 +00:00
mbjornstk
210fe11806 More EOL prop setting and fixing of files with mixed EOLs.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@3206 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-01 00:46:47 +00:00
mbjornstk
fc46307f54 Fixing all remaining "executable" flags.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@3205 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-02-27 02:54:25 +00:00
hikerstk
62bc9990ca Irrlicht only: Added preliminary support for reading materials.xml files
(though the information is not used atm).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@3203 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-02-27 00:15:09 +00:00
hikerstk
1cbed5cfe2 Irrlicht only: improved XML handling, support xml files
for .track and .loc files, started working on items.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@3179 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-02-20 01:42:34 +00:00
hikerstk
4901a029e9 Fixed typo in Makefile.am, added missing newline at end of files.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@3165 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-02-17 03:24:43 +00:00
hikerstk
0267f7630c Irrlicht only:
1) Added better support for reading XML files.
2) Fixed keyboard handling (for some keys only
   key releases were recognised).
3) #ifdef-ed out more plib parts that would cause a 
   crash with irrlicht.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@3164 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-02-17 02:57:28 +00:00
hikerstk
be6b0f8085 Fixed compilation problem on non-irrlicht compilation (missing files,
missing ifdef - sorry for that).
In irrlicht karts have now (non-rotating) wheels, and the camera
points correctly at the kart.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@3116 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-02-10 11:11:39 +00:00
hikerstk
3b7bfd5367 Update to irrlicht only, non-irrlicht part should be unchanged.
- Tracks and kart models are now loaded and converted into
  bullet physics. 
- A simple camera is implemented, so a loaded track can be
  displayed (note: the current SVN version does not contain
  a track converted for irrlicht yet)
- Otherwise the irrlicht version is not working, i.e. no
  menus atm, ...


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@3115 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-02-10 05:30:59 +00:00
hikerstk
4d2ace56b3 First irrlicht code added.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@3101 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-02-04 00:31:40 +00:00
hikerstk
d49f009213 Removed the camera jump which happens on some tracks (e.g. snow
mountain) at the start of a race.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@3088 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-02-01 22:54:00 +00:00
auria
0c5aae7b1b fixed warning
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@3087 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-02-01 02:17:39 +00:00
hikerstk
067d3daf79 1) Renamed scene to stk_scene (since scene is a namespace in irrlicht).
Note that with irrlicht the scene objects is most likely going to
   be replaced anyway.
2) Removed more snprintf.
3) Removed unused modes from VS project file, added new mode for irrlicht.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@3055 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-01-28 00:38:28 +00:00
hikerstk
1eb42a9ff6 Code cleanup (replaced unnecessary inlines, added missing inlines,
replaced Vec3 parameters with const &).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@3052 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-01-27 02:36:37 +00:00
hikerstk
6f34674b4c 1) Moved more files around.
2) Replaced many (though not all yet) snprintf with ostringstream
   (getting rid of the maximum length of messages).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@3034 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-01-23 05:23:22 +00:00
hikerstk
6ce3803165 Moved more files into subdirs.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@3029 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-01-22 22:27:13 +00:00
hikerstk
a24273abfc Fixed some minor memory leaks, added 'FIXME LEAK' comments
in many places which are either more complicated to fix for now,
or will be redesigned with irrlicht (and should therefore go
away anyway).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2996 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-01-20 04:26:24 +00:00
auria
c119c8ba75 made nitro particles bigger for a nicer effect
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2875 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-01-09 20:42:49 +00:00
auria
0ba91a7392 new nitro particles by MiniBjorn + fixed bugs that made particles look weird
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2874 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-01-09 20:40:07 +00:00
auria
4c3834e4e2 improved patch by MiniBjorn to remove skidding when it doesn't make sense
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2850 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-01-06 21:16:27 +00:00
hikerstk
3b3416a1af Disable skid marks when a kart is not steering.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2845 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-01-06 12:48:44 +00:00
hikerstk
0d593da26e 1) Skid marks fade out (fade out time set in stk_config: skid-fadeout-time,
currently one minute.
2) Skid marks now support proper culling, which should help with slowdown
   some people have seen.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2840 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-01-06 00:20:23 +00:00
auria
9973d00ece fixed white skidmarks bug (by MiniBjorn)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2823 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-31 00:53:45 +00:00
auria
74a67206cb fixed white skidmarks bug (by MiniBjorn)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2822 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-31 00:47:25 +00:00
hikerstk
64921ddb90 Fixed typo in previous commit.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2781 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-26 19:33:24 +00:00
hikerstk
b3590f40b8 Fixed compiler warnings (VS).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2779 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-26 19:32:08 +00:00
auria
25fc6e5f07 made skidmarks conditions even stricter for Ai karts, so they create a bit less of them (mixed success; they seem to reach maximal steering very fast)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2772 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-25 18:39:46 +00:00
auria
3edb628251 only show skidmarks if the player is turning (i.e. don't show skidmarks when player is going straight) caveat: if you press the skid button, turn sharp, then go straight while still holding the button, skid marks will still appear.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2771 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-25 18:27:36 +00:00
hikerstk
1c81e0f664 1) Removed references to wheelie and jump kart control structure.
2) Config files will now use nitro/drift instead of wheelie/jump.
   Old config files will automatically be updated (and a message
   be printed).
3) Renamed all members of the kart control structure to start
   with m_ .


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2737 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-21 21:40:00 +00:00
hikerstk
9d7a256458 Used 'UnNamed' suggested colours for skid marks.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2693 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-16 04:37:02 +00:00
hikerstk
582bd86cdd Bugfix: restarting a race could cause a crash in the skid marks.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2581 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-08 08:32:12 +00:00
hikerstk
e76c1dc87c 1) The number of drivelines per kart is now limited (stk_config.data setting)
2) Reduced smoke effect somewhat (and made it dependent on actually turning
   the wheel)
3) Removed skid marks when restarting a race.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2576 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-08 01:07:16 +00:00
hikerstk
45e00400a3 Minor improvements to nitro graphics.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2563 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-03 06:13:02 +00:00
hikerstk
0723e095fd Made the skidding smoke appear from both wheels.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2561 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-03 05:46:40 +00:00
auria
49b6691474 improved fire particles
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2557 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-02 23:55:48 +00:00
hikerstk
325a9dce30 First version of new skidmark implementation.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2547 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-02 13:01:39 +00:00
hikerstk
c20d6008d3 Moved Particle- and Smoke system into graphics subdir.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2540 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-01 22:56:57 +00:00
hikerstk
cce4da5a62 Moved Vec3 and Coord into utils subdir.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2539 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-01 22:43:50 +00:00
hikerstk
5b33cdc3c0 Added skid marks.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2538 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-01 22:05:25 +00:00
hikerstk
1c0c2d0ffe 1) Added graphical effect when 'nitro' is active
(texture and graphics still needs to be improved!)
2) Added new user_config setting for graphical effects.
3) Started to move graphics related file into separate
   subdirectory.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2535 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-01 09:26:25 +00:00