ray-tracing-renderer icon indicating copy to clipboard operation
ray-tracing-renderer copied to clipboard

Hi, everyone. I'd like to ask when the ray tracing renderers can add light sources and spotlights

Open xiaxc1 opened this issue 4 years ago • 6 comments

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

xiaxc1 avatar Aug 26 '20 08:08 xiaxc1

Hi @xiaxc1 , what do you mean by " the case of parallel light"? could you re-phrase the question?

elfrank avatar Sep 02 '20 00:09 elfrank

Code for parallel light

xiaxc1 avatar Sep 02 '20 02:09 xiaxc1

您好,我还想问一下我每次渲染的时候需要很长的准备时间,有什么办法能解决这个时间很长的问题吗?还有一个就是我能加渲染的进度条吗,渲染完成能否停止渲染,感谢

xiaxc1 avatar Sep 02 '20 02:09 xiaxc1

@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

elfrank avatar Sep 07 '20 21:09 elfrank

OK, thank you. Thank you for your answer. I'll take a look at this case

xiaxc1 avatar Sep 15 '20 06:09 xiaxc1

@elfrank Will there be support for area lights anywhere in the future ?

ManishJu avatar Oct 04 '20 03:10 ManishJu