CUDA Voxel Rendering Engine

体素引擎跟多边形引擎的年代一样早,但是因为体素引擎是以颜色砖块的形式把图像给垒出来的,因此需要大量内存来保存3D 模型的信息,改Demo使用CUDA协助处理,在8800GTS下大约可以跑20-30



Happy Buddha 1k x 2k x 1k

Landscape 40k x 1k x 40k (Base:1k^3)

Dragon 1k^3

Here a new demo of my engine. It uses the algorithm of Ken Silverman's Voxel Engine which is generally described in a more than 10 year old paper: A Voxel-Based, Forward Projection Algorithm for Rendering Surface and Volumetric Data. I added some modifications to the algorithm so now its running quite fast in CUDA.

The algorithm basically works by raycasting the complete scene in planes which are prependicular to the horizontal plane. Each of the planes intersects the screen as a line, which results in a non-uniform. line mapping that is required in addition to the raycasting.

The good news is, its possibe to have pretty complex scenes rendered at about 20-30 fps on a 8800 GTS - also for designers its much easier to create scenes with voxels. Its not necessary to learn polygon modeling with maya or texturing.

Another advantage of voxels is that you get a nice LOD basically for free. If you take a look at even the technologically most advanced games like Crysis, you will see that there are lots of objects popping in and out the screen due to the LOD. You wont need that in a voxel engine in case of static things.

Interesting is especially the procedural generation of game levels. I hope as there is lots of voxel research going on recently (particularly SVO) that we soon have some interesting looking games.

Fee free to download and run the demo below. (50MB)
[ - Download here - ]
Requirement is CUDA 2.1 and an NVidia 8xxx graphics card.
If you like to have different colors, take a look on the shaders folder.
Keys: esc:exit,w:forward,s:back,a:left,d:right,q,e:up/down,f:fullscreen,+/- speed up/down

For updates you can visit my voxel engine development blog

If you like Voxelstein (I included the level), take a look on the original maker's website:
http://voxelstein3d.blogspot.com

---
Sven Forstmann

原文  下载地址: 点击下载

点击查看源原文

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22785983/viewspace-619766/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/22785983/viewspace-619766/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值