Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
material specific footstep sounds

#1
At the moment, the footstep sound is the same no matter what surface you are walking on. what would improve the feeling of the game a great deal is if a different sound was played for different surfaces, such as wood, grass, metal, water, etc.

implementing this would involve creating a way for the engine to detect different materials, and making sounds for the different materials.

would it be possible to add some information in the shader file of the texture that darkplaces could use to detect when to play certain sounds?

EDIT: oops, I meant to post this in the suggestions subforum XD
Master of mysterious geometries

Imgur Gallery
Reply

#2
I'd also like material specific footstep sounds, but I think that would be much more work for the mappers!

@mods: please move!
MY NOOB STATS:
[Image: 788.png]
Reply

#3
the way i see it, if the information could be added to the shader file, mapper's won't have to do ANYTHING. the information will already be there.

it will be work going through adding the information to the shader's, but I am willing to help with that.
Master of mysterious geometries

Imgur Gallery
Reply

#4
In the Source engine, things like footstep sound are defined by a "surfaceprop" file, which is connected to a material or texture. Implementing footstep sounds in DarkPlaces would require all textures to have a material associated with them. I'd imagine the code for this wouldn't be too difficult, but the manual assignment of materials would take a while.
Reply

#5
Then what's metalclip?
Reply

#6
Quake 3 has it via surfaceparam flags for metalsteps and nosteps, but the outcome is bad.
(08-10-2012, 02:37 AM)Mr. Bougo Wrote: Cloud is the new Web 2.0. It makes no damn sense to me.
Reply

#7
With Urban Terror maps I used a program (bsp-redone) to import/export surface types from the Quake3 BSP files (source here)

Quote:The textures lump stores information about surfaces and volumes, which are in turn associated with faces, brushes, and brushsides. There are a total of length / sizeof(texture) records in the lump, where length is the size of the lump itself, as specified in the lump directory.

texture

string[64] name Texture name.
int flags Surface flags.
int contents Content flags.

I think that it uses the flags field to store the value.
The engine, when reading the bsp file, can asociate the surface and its sound.
somewhere
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Specific case of warpzone rendering item once; after being picked up, never again Antares* 0 2,425 10-03-2017, 08:47 PM
Last Post: Antares*

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-