ray-tracing-renderer
ray-tracing-renderer copied to clipboard
Hi, everyone. I'd like to ask when the ray tracing renderers can add light sources and spotlights
I'm using ray tracing renderers, but I don't support point light and spot light. I try to add point light according to parallel light. Unfortunately, I can't understand the case of parallel light. Can you give me some advice
Hi @xiaxc1 , what do you mean by " the case of parallel light"? could you re-phrase the question?
Code for parallel light
您好,我还想问一下我每次渲染的时候需要很长的准备时间,有什么办法能解决这个时间很长的问题吗?还有一个就是我能加渲染的进度条吗,渲染完成能否停止渲染,感谢
@xiaxc1 the PBRT book is a great resource with theory and sample (CPU) code: http://www.pbr-book.org/3ed-2018/Light_Sources/Point_Lights.html . The newer version will include a GPU implementation but I don't think that's public yet.
In terms of adding support for other types of light, I recommend looking into the decomposeScene
method here: https://github.com/hoverinc/ray-tracing-renderer/blob/4e0c1d024908f1a38339f7006384251e81392621/src/renderer/decomposeScene.js#L3
OK, thank you. Thank you for your answer. I'll take a look at this case
@elfrank Will there be support for area lights anywhere in the future ?