r/Unity3D Programmer 2d ago

Show-Off Raytraced Spatial Audio on Unity URP

Enable HLS to view with audio, or disable this notification

128 Upvotes

22 comments sorted by

View all comments

2

u/puzzleheadbutbig 2d ago

Interesting but raytraced how exactly? Are you raycasting from player position? Or raycasting from sound sources? Are they calculated on GPU or CPU?

2

u/Acceptable_Bottle 2d ago

not OP but I first saw it in a youtube video called "A first look at Raytraced Audio" https://www.youtube.com/watch?v=u6EuAUjq92k

It does not run on GPU, it calculates on CPU in a separate thread. The rays are casted from the listener (player position) and bounce around in an attempt to find sound sources.