基于Unity的数字孪生场景虚实交互算法研究
Research on Virtual and Real Interaction Algorithm of Digital Twin Scene Based on Unity
摘要
针对 Unity 数字孪生场景中多源数据到达时刻不一致、渲染负载波动、碰撞检测冗余与时序偏差累积影响交互质量的问题,设计多源数据融合、实时渲染优化、碰撞检测改进与时序同步补偿四类算法.数据融合采用时间窗口加权平均方法,渲染优化结合视锥体剔除与细节层次动态调整,碰撞检测采用分层包围盒与运动状态预测,时序补偿依据同步偏差调整状态更新步长.实验结果表明,三轴联动条件下交互时延为25.3 ms,平均帧率为60.1 帧/s,匀速段位置同步偏差为0.18 mm.四类算法在Unity工程约束下形成完整的交互方案,满足工业孪生场景的实时性与同步精度要求.
In order to solve the problems in the Unity digital twin scene where the arrival time of multi-source data is inconsistent,rendering load fluctuation,collision detection redundancy and timing deviation accumulation affect the interaction quality,four types of algorithms are designed:multi-source data fusion,real-time rendering optimization,collision detection improvement and timing synchronization compensation.Data fusion uses the time window weighted average method,rendering optimization combines frustum elimination and dynamic adjustment of the level of detail,collision detection uses hierarchical bounding boxes and motion state prediction,and timing compensation adjusts the state update step based on synchronization deviation.Experimental results show that under three-axis linkage conditions,the interaction delay is 25.3 ms,the average frame rate is 60.1 frames/s,and the position synchronization deviation in the constant speed segment is 0.18 mm.Four types of algorithms form a complete interactive solution under the constraints of Unity engineering to meet the real-time and synchronization accuracy requirements of industrial twin scenarios.
年,卷(期):
2026, 47(9)
分类号:
TP391.9
机标分类号:
TP391.9
TP242
P208
在线出版日期:
2026年11月23日