Jump to content
Ttiki

Materials and sounds

Recommended Posts

Hello.

I thought about a physic property for materials where you would choose the kind of material (water, wood, concrete, grass, etc.). Then, from lists of sounds (i.e. walking sounds for the player kind of list), Leadwerk would play them randomly depending on what materials the player is interacting with and depending on the physic of the material.

I don't know how complicated this would be to add. I know I could try to make a system like that by I think having it natively into Leadwerk would be a good point for Leadwerk.

Thank you and have a nice day.

  • Like 1
Link to post

We had a challenge on this very subject.

Not sure if all the links in it still work.

Let me know if you cant find can find some of the scripts I may have them stored off line.

 

  • Thanks 1
Link to post
7 minutes ago, Thirsty Panther said:

We had a challenge on this very subject.

Not sure if all the links in it still work.

Let me know if you cant find can find some of the scripts I may have them stored offline.

Thank you very much, this looks very promising and will certainly help me with my current game 😀

 

  • Like 1
Link to post

I have thought about this. Models are made of surfaces, each of which can have a different material. But a model has only one physics shape. So there isn't an exact correlation between physics shapes and materials, in some cases.

My solution to this is to implement a BSP tree class for brush geometry. This will store the material for each BSP face because the physics geometry is generated directly from the visual geometry, so it all works out nicely.

  • Like 4
Link to post

Keep us posted on how it works out. I got impact sounds for models, but it'll be nice to have material types for each material like the Source Engine provides by default.

  • Like 2
Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...