Comments (5)
@sunwell1994 Yes, it should be closely aligned. Under normal circumstances, there is no appreciable latency between the visible collision and the impact sound being generated.
Are you experiencing situations where this is not the case?
from tdw.
@sunwell1994 Yes, it should be closely aligned. Under normal circumstances, there is no appreciable latency between the visible collision and the impact sound being generated.
Are you experiencing situations where this is not the case?
It seems good. How can I control the delay between the collision and the impact sound?
from tdw.
I'm not sure I understand your question. The goal of the physics-driven impact sound synthesis is to provide realistic and plausible impact sounds when objects collide. Why would you want to introduce a delay between the collision and the impact sound?
However if that is required for some reason, I guess you could add a sleep() or similar delay:
# Use PyImpact to generate audio from the output data and then convert the audio to TDW commands.
# If no audio is generated, then `commands` is an empty list.
commands = p.get_audio_commands(resp=resp, floor=floor, wall=wall)
# Add delay here.....
# Send the commands to TDW in order to play the audio.
resp = self.communicate(commands)
from tdw.
I'm not sure I understand your question. The goal of the physics-driven impact sound synthesis is to provide realistic and plausible impact sounds when objects collide. Why would you want to introduce a delay between the collision and the impact sound?
However if that is required for some reason, I guess you could add a sleep() or similar delay:
# Use PyImpact to generate audio from the output data and then convert the audio to TDW commands. # If no audio is generated, then `commands` is an empty list. commands = p.get_audio_commands(resp=resp, floor=floor, wall=wall) # Add delay here..... # Send the commands to TDW in order to play the audio. resp = self.communicate(commands)
Thanks for your example. It seems that the delay is not related to the collision directly in this method. Considering the distance of impact, the audio sensor may take some time to receive the sound.
from tdw.
@sunwell1994 Please provide an example control of the delay so we can test it.
from tdw.
Related Issues (20)
- MacOS Silicon sometimes freezes if downloading many asset bundles HOT 1
- Scene asset bundles aren't unloaded when a new scene loads
- Lighting is broken in tdw_room if scenes are loaded before it HOT 2
- Incomplete code example
- screen position documentation, missing link
- send_local_transforms actually sent global transforms HOT 3
- rotate_object_by "is_world" doesn't seem to cause any differences HOT 3
- saved images are upsidedown after updating to v1.12.9
- Teleop/Manual Control Example HOT 2
- TDW not compatible with Jupyter Notebook on VSCode HOT 4
- About nav_mesh.py example with magnebot HOT 3
- Invisible Rigid Body Object
- Occupancy Maps with rectangular layouts
- Some object's pivot is not its bottom-center
- send_occlusion and Occlusion is not working properly
- adding `use_centroid` in `teleport_object` api?
- Error when creating asset bundles from .fbx models, .obj file fails to be created
- How to customize build HOT 1
- How are interior_walls treated as mesh obstacles? HOT 2
- Add force in the middle HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tdw.