Ben_93 Posted February 20, 2023 Share Posted February 20, 2023 Hi All, As mentioned in the post of my project in the showcase part of the forum, it would be amazing if I could implement footstep sound effects which change depending on the surface they interact with e.g a crunch when walking through grass, hard echo on stone surfaces etc etc. Obviously as I have no knowledge of programming would it be possible to suggest if this might be a simple feature to add? And if so, how might I go about this? Many thanks, Ben Link to comment
silent Posted February 20, 2023 Share Posted February 20, 2023 Hi Ben, I assume that you have two major different floor surfaces - terrain and meshes. Is that correct? Do you have a separate meshes (or surfaces) for each floors? How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Ben_93 Posted February 20, 2023 Author Share Posted February 20, 2023 Hi @silent, Yes that is correct two major floor surfaces, landscapeterrain object and static meshes. Yes I have separate meshes for each floors. Many thanks, Ben Link to comment
silent Posted February 20, 2023 Share Posted February 20, 2023 Also could you please tell us which SDK version are you currently using? How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Ben_93 Posted February 20, 2023 Author Share Posted February 20, 2023 I am using the latest SDK (2.16.1), I very much appreciate any help you can give me! Many thanks, Ben Link to comment
moody_pooch Posted February 22, 2023 Share Posted February 22, 2023 Hi Ben, Here is the updated FirstPersonController component. This controller works similar to the previous one. You need to add SoundSources for right and left footstep for each surface. For LandscapeTerrain object surfaces select Mask index (the same index from LandscapeLayerMap): For MeshStatic select Intersection Mask of required surface: FirstPersonController.cs 5 Link to comment
Ben_93 Posted February 22, 2023 Author Share Posted February 22, 2023 Hi @moody_pooch! This is fantastic! Many thanks for helping me with this. I think I understand how your solution works, ill try it out in my project! Many thanks, Ben 1 Link to comment
Recommended Posts