AddMaterialMapping Functionality
by Ian Dale · in Torque Game Engine · 01/22/2005 (9:20 am) · 3 replies
I'm using TGE 1.3 with Lighting pack 1.3(1.2?). I've already added the fix to enable sound effects to be modified depending on which terrain texture you walk on and it's working fine.
However on browsing through the forums I've seen threads that state that the addmaterial mapping function can be used to add footstep sounds to interior textures as well as environmental mapping and detail textures to interior (DIF) textures.
I've added the following to propertymap.cs
With the exception of the first two, nothing happens. Are their additional fields to use, or does this functionality no longer exist in TGE 1.3.
Regards,
However on browsing through the forums I've seen threads that state that the addmaterial mapping function can be used to add footstep sounds to interior textures as well as environmental mapping and detail textures to interior (DIF) textures.
I've added the following to propertymap.cs
addMaterialMapping( "starter.fps/data/terrains/outback/redsand" , "sound: 0" , "color: 0.96 0.36 0.26 0.4 0.0" ); addMaterialMapping( "starter.fps/data/terrains/outback/drygrass" , "sound: 2" , "color: 0.46 0.96 0.26 0.4 0.0" ); addMaterialMapping( "starter.fps/data/interiors/doctorshouse/floor01" , "sound: 0", "color: 0.96 0.36 0.26 0.4 0.0"); addMaterialMapping( "starter.fps/data/interiors/doctorshouse/floor02" , "environment: starter.fps/data/reflections/masterbathroom 0.5" ); addMaterialMapping( "starter.fps/data/interiors/doctorshouse/floor03" , "detail: starter.fps/data/terrains/details/redsanddet" );
With the exception of the first two, nothing happens. Are their additional fields to use, or does this functionality no longer exist in TGE 1.3.
Regards,
About the author
#2
I don't even get the other terrain texture to work. Only the first one works and gives the puff and sound to all terrain.
addMaterialMapping( "grass" , "sound: 0" , "color: 1 0.36 0.26 0.4 0.0" );
addMaterialMapping( "rock" , "sound: 2" , "color: 0.46 1 0.26 0.4 0.0" );
addMaterialMapping( "stone" , "sound: 2" , "color: 0.46 0.36 1 0.4 0.0" );
addMaterialMapping( "patchy" , "sound: 1" , "color: 0.46 1 0.26 0.4 0.0" );
addMaterialMapping( "scorched" , "sound: 2" , "color: 0.46 0.36 1 0.4 0.0" );
Is there something I'm doing wrong ?
08/10/2006 (9:03 pm)
I tried on 1.4 and it's still not working. There's only a different sound when you go in interior, am I correct ?I don't even get the other terrain texture to work. Only the first one works and gives the puff and sound to all terrain.
addMaterialMapping( "grass" , "sound: 0" , "color: 1 0.36 0.26 0.4 0.0" );
addMaterialMapping( "rock" , "sound: 2" , "color: 0.46 1 0.26 0.4 0.0" );
addMaterialMapping( "stone" , "sound: 2" , "color: 0.46 0.36 1 0.4 0.0" );
addMaterialMapping( "patchy" , "sound: 1" , "color: 0.46 1 0.26 0.4 0.0" );
addMaterialMapping( "scorched" , "sound: 2" , "color: 0.46 0.36 1 0.4 0.0" );
Is there something I'm doing wrong ?
#3
If not not find it bump again !!
08/12/2006 (9:03 am)
Search the forum please , there are many threads about this.If not not find it bump again !!
Torque 3D Owner Billy L
when the player enters a interior.
I tried to change the code but no luck so far .
Maybe someone else have this working.
This has never been working in v12 or TGE.