pygsound icon indicating copy to clipboard operation
pygsound copied to clipboard

Is there any demo how to use arbitrary shape?

Open wyw97 opened this issue 2 years ago • 1 comments

Hello, I find that the examples are all rectangular shapes. How can I use some other shapes. Thank you.

wyw97 avatar Nov 16 '21 01:11 wyw97

This example script is a good place to start with. We load the cube.obj file in the script, which can describe arbitrary shapes. You can find our implementations here. This feature requires the user to be somewhat familiar with wavefront obj format. It can be created by common 3D modeling software like Blender. Frequency-dependent acoustic material coefficients are defined in the object's corresponding .mtl file (e.g., cube.mtl) as sound_s (scattering) and sound_a (absorption).

RoyJames avatar Nov 16 '21 15:11 RoyJames