使用神经全向距离场的游戏AI高效可见性近似
Efficient Visibility Approximation for Game AI using Neural Omnidirectional Distance Fields
AI总结:
本文提出用神经全向距离场表示游戏场景,通过UV映射、多分辨率网格和紧凑MLP实现无需射线投射的高效可见性近似,在三个场景中平均冷启动加速9.35倍、热启动加速4.8倍,且评估时间恒定。
摘要:
可见性信息在游戏AI应用中至关重要,但基于射线投射的方法的计算成本给实时系统带来了挑战。为了解决这一挑战,我们提出了一种新方法,将划分的游戏场景表示为神经全向距离场(ODFs),从而无需射线投射即可在位置之间实现可扩展且高效的可见性近似。对于每个感兴趣的位置,我们将其全向距离数据从球面映射到UV平面上。然后,我们使用多分辨率网格和双线性插值特征来编码方向。这使我们能够使用一个紧凑的多层感知机(MLP)来重建这些位置上的高频方向距离数据,从而确保快速的推理速度。我们通过离线实验和游戏内评估证明了我们方法的有效性。在游戏内评估中,我们在三个不同场景中与基于射线投射的可见性测试进行了并排比较。使用一个紧凑的MLP(128个神经元和2层),我们的方法在这些场景中实现了平均9.35倍的冷启动加速和4.8倍的热启动加速。此外,与基于射线投射的方法不同,后者的评估时间受场景特性影响,我们方法的评估时间保持恒定。
英文摘要:
Visibility information is critical in game AI applications, but the computational cost of raycasting-based methods poses a challenge for real-time systems. To address this challenge, we propose a novel method that represents a partitioned game scene as neural Omnidirectional Distance Fields (ODFs), allowing scalable and efficient visibility approximation between positions without raycasting. For each position of interest, we map its omnidirectional distance data from the spherical surface onto a UV plane. We then use multi-resolution grids and bilinearly interpolated features to encode directions. This allows us to use a compact multi-layer perceptron (MLP) to reconstruct the high-frequency directional distance data at these positions, ensuring fast inference speed. We demonstrate the effectiveness of our method through offline experiments and in-game evaluation. For in-game evaluation, we conduct a side-by-side comparison with raycasting-based visibility tests in three different scenes. Using a compact MLP (128 neurons and 2 layers), our method achieves an average cold start speedup of 9.35 times and warm start speedup of 4.8 times across these scenes. In addition, unlike the raycasting-based method, whose evaluation time is affected by the characteristics of the scenes, our method's evaluation time remains constant.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。