Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Different surfaces?
04-11-2009, 03:40 PM,
#17
 
joevenzon Wrote:If you're interested in extending this to different driving surfaces:
I've got most of that stuff added now. The surface value is read and added the the TRACK_OBJECT Class and CAR::UpdateSounds can find out what surface each wheel thinks it is on. I thought I had managed to get the extra sounds working (at least there are no error messages!) but somehow they aren't playing.

If I swap the filenames around (grass switched with tire_squeal) the sounds are loaded and played. If I switch the variable names around I can get the tire_squeal sound on grass and silence on the road. But for some reason I can't get the grass sounds and the tire_squeal sounds to play at the same time. I'm sure its something really obvious so I'll keep looking... :?

alex25 Wrote:
joevenzon Wrote:How about this:
* the objects/list.txt file calls out a surface type id for each object (like "road" or "grass-01" or whatever)
* there is a global file that defines parameters for some basic surfaces as some basic IDs (like "grass")
* each track can optionally define its own list of parameters, and any surface IDs that overlap with the global file get overwritten
...for the actual format of this surface file, it would be nice if we could define the coefficients (friction, drag, rolling resistance) and a set of reactions (skids, tiresmoke, spray).

I had a look into one of those files, there's a lot in there! I hadn't really thought about how the sound and particle effects need to change, that's going to take some working out. For now I'm thinking that getting the default list sorted in a sensible way is the first task. Then that can be used as a prototype for working out the format of the per track file.

So how's this for a rundown of default surfaces?

Asphalt
Grass
Gravel
Kerbs (or Curbs if you are American Wink )
Sand
Concrete (for pits and other non-asphalt areas)

Is there anything important I've missed out?
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: 2 Guest(s)