Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Different surfaces?
04-05-2009, 05:04 PM,
#4
 
Cool, I appreciate the work. I made the changes in SVN R2404. The only things I did differently were that 1) I put the surface type inside the CARCONTACTPROPERTIES in cardynamics.h and used that to remember what surface the wheel was last on instead of the int array in car.h and 2) I made the CAR::GetTireSquealAmount function return zero if the wheel isn't on the road, because this feeds the sound as well as the "tire smoke" particle generation. Please test it out and make sure that I transcribed things correctly.

If you're interested in extending this to different driving surfaces:
1) add more types to carsurfacetype.h
2) add a SURFACE::CARSURFACETYPE variable to the TRACK_OBJECT class
3) do up a test track with different surface tags and make the track loading code read it (I can provide more detail / help with this)
4) have GAME::UpdateCarCollisions pass the surface from the track object to the car's SetWheelContactProperties function
5) add sound sources for tires squealing on different surfaces to car.h
6) make sure the sounds get loaded in game.cpp and car.cpp (there's a sound for driving on dirt from the TORCS project that we could probably use)
7) make CAR::UpdateSounds use the new sounds depending on the driving surface

PM me if you're interested and I'll set you up with SVN access.
Reply


Messages In This Thread
Different surfaces? - by slowDan - 04-02-2009, 05:25 PM
Re: Different surfaces? - by slowDan - 04-05-2009, 12:11 PM
[No subject] - by joevenzon_phpbb2_import3 - 04-05-2009, 05:04 PM
[No subject] - by slowDan - 04-07-2009, 02:38 PM
[No subject] - by joevenzon_phpbb2_import3 - 04-07-2009, 07:56 PM
[No subject] - by alex25 - 04-07-2009, 09:39 PM
[No subject] - by joevenzon_phpbb2_import3 - 04-08-2009, 10:10 AM
[No subject] - by alex25 - 04-08-2009, 10:28 AM
[No subject] - by FFuser - 04-09-2009, 11:43 AM
[No subject] - by slowDan - 04-09-2009, 12:14 PM
[No subject] - by alex25 - 04-09-2009, 12:49 PM
[No subject] - by FFuser - 04-09-2009, 06:35 PM
[No subject] - by joevenzon_phpbb2_import3 - 04-09-2009, 10:34 PM
[No subject] - by FFuser - 04-10-2009, 08:47 AM
[No subject] - by alex25 - 04-10-2009, 04:41 PM
[No subject] - by slowDan - 04-11-2009, 03:40 PM
[No subject] - by slowDan - 04-13-2009, 01:23 PM
[No subject] - by alex25 - 04-13-2009, 05:33 PM
[No subject] - by joevenzon_phpbb2_import3 - 04-13-2009, 10:23 PM
[No subject] - by slowDan - 04-14-2009, 03:17 AM
[No subject] - by joevenzon_phpbb2_import3 - 04-19-2009, 06:15 PM
[No subject] - by slowDan - 04-21-2009, 03:22 PM
[No subject] - by joevenzon_phpbb2_import3 - 04-21-2009, 11:56 PM
[No subject] - by joevenzon_phpbb2_import3 - 04-22-2009, 12:24 AM
[No subject] - by slowDan - 04-22-2009, 01:24 PM
[No subject] - by joevenzon_phpbb2_import3 - 04-22-2009, 08:02 PM
[No subject] - by slowDan - 05-16-2009, 04:48 AM
[No subject] - by joevenzon_phpbb2_import3 - 05-17-2009, 11:37 AM
[No subject] - by alex25 - 05-17-2009, 12:59 PM
[No subject] - by joevenzon_phpbb2_import3 - 05-18-2009, 10:16 AM
[No subject] - by slowDan - 05-31-2009, 01:20 PM
[No subject] - by joevenzon_phpbb2_import3 - 05-31-2009, 02:25 PM
[No subject] - by alex25 - 05-31-2009, 05:46 PM
[No subject] - by alex25 - 05-31-2009, 07:44 PM
[No subject] - by slowDan - 06-01-2009, 12:53 PM
[No subject] - by joevenzon_phpbb2_import3 - 06-01-2009, 06:50 PM

Forum Jump:


Users browsing this thread: 5 Guest(s)