Skip to content

caixiao-0725/collision-detection-bvh-GPU

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

collision-detection-bvh-GPU

抄了一遍王鑫磊师兄的代码,只写了float简单版本的,用template模板函数我怕我cpu烧了。

lbvh

AABB的最大值和最小值一共6个float,MINX, MINY, MINZ, MAXX, MAXY, MAXZ ,可以用SOA来存储而不是AOS,这样可以加速。不过我为了写起来简单方便没有这么做。

树的结构也要用SOA来存储。这个我是写了的。

cpu上的数据要操作一下才能正确求出包围盒的大小,不知道为啥?

About

use cuda to do collison detection with bvh.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published