Ray Tracing & Photon Mapping (Unity3D C#)

本文介绍了在Unity3D中使用C#实现光线追踪与光子映射的内容。将Java/Processing的光线追踪代码进行转换,当前版本已能正常工作,但缺少用户交互且速度较慢。给出了不同分辨率的渲染时间,还提及一个有趣项目但无源码可下载,最后提供了Webplayer和源码下载链接。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

https://unitycoder.com/blog/2012/01/24/ray-tracing-photon-mapping-render-unity3d-c/

 

Demos // Unity3d

 

Ray Tracing & Photon Mapping (Unity3D C#)

Author An article by mgear    Comments6 Comments

Converting some ray tracing code from java/processing (original source by Grant Schindler/2007)

1st version works fine already, just missing the user interactions.. (and its quite slow at the moment)

Current progress: v1.0
– 512×512 render:  time 23.65258s (got it down to 16.54801s, if disable preview while rendering..)
– 128×128 render: 1.34s
– Didnt manage to make it faster with small changes, giving up for now.
– Its quite fast in low resolution..
– Here is more interesting project, too bad no sources to download? http://forum.unity3d.com/threads/27612-Real-time-global-illumination

Webplayer:
http://unitycoder.com/upload/demos/mRayTracingPhotons1/

Download source: (C#)
RayTracePhoton.unity

Tags: 3D, ambient occlusion, photon, ray tracing, reflections, render, shadows

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值