摘 要: 由于VR场景中用户可以自主选择观看的方向和角度,为了获得最佳的体验效果,VR音频技术要求通过 声音辨别方向、距离等反馈更多的空间环境状态。本文主要论述了一种基于WebVR实现音频空间可视化的方法,核心 是运用了Web Audio API的PannerNode和AudioListener两个对象处理音频源,其中Three.js提供了完善的音频空间化 支持。最后通过VR Audio的案例进行测试,实验表明根据用户的位置和旋转矩阵,可更新音频空间信息。 |
关键词: WebVR;音频空间化;Web Audio API;音频源 |
中图分类号: TP391
文献标识码: A
|
基金项目: 本文系2019年江苏省大学生创新创业训练计划项目资助(项目编号201911054011Y);2018年苏州市职业大学创新项目资助(SVU2018CX12);江苏省高校哲学社 会科学重点建设基地吴文化传承与创新研究中心(2018ZDJD-B018)项目成果;苏州市职业大学“青蓝工程”青年骨干教师资助;江苏省“青蓝工程”优秀教学团 队资助;江苏开放大学办学体系“十三五”2019年度科研规划课题(资助编号19TXYB-05). |
|
A Method of Visualizing 3D Sound Effect Based on WebVR |
JIN Yi,ZHANG Liang
|
( Dpt. of Computer Engineering, Suzhou Vocational University, Suzhou 215104, China)
|
Abstract: As users can choose the direction and angle of view independently in VR scene,VR audio technology requires more spatial environment status through sound discrimination direction,distance,etc.in order to gain optimum experience.This paper mainly discusses a method of audio spatial visualization based on WebVR.The core of this method is to use Web Audio API's PanerNode and AudioListener to process audio source,in which Three.js provides refined support to audio spatialization.Finally,a VR audio case is tested.The experiment shows that the audio spatial information can be updated according to the user's position and rotation matrix. |
Keywords: WebVR;audio spatialization;Web Audio API;audio source |