Jump to content

Materials and sounds


Ttiki
 Share

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

Just making games for fun. Currently working on T3-L4

Linka logo

Link to comment
Share on other sites

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

Just making games for fun. Currently working on T3-L4

Linka logo

Link to comment
Share on other sites

  • 2 weeks later...

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

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.

 Share

×
×
  • Create New...