Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

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

Open
xiaxc1 opened this issue Aug 26, 2020 · 6 comments
Assignees
Labels
question Further information is requested

Comments

@xiaxc1
Copy link

xiaxc1 commented Aug 26, 2020

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

@elfrank elfrank added the question Further information is requested label Sep 2, 2020
@elfrank
Copy link
Collaborator

elfrank commented Sep 2, 2020

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

@xiaxc1
Copy link
Author

xiaxc1 commented Sep 2, 2020

Code for parallel light

@xiaxc1
Copy link
Author

xiaxc1 commented Sep 2, 2020

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

@xiaxc1 xiaxc1 closed this as completed Sep 3, 2020
@xiaxc1 xiaxc1 reopened this Sep 3, 2020
@elfrank
Copy link
Collaborator

elfrank commented Sep 7, 2020

@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:

export function decomposeScene(scene) {

@elfrank elfrank self-assigned this Sep 7, 2020
@xiaxc1
Copy link
Author

xiaxc1 commented Sep 15, 2020

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

@ManishJu
Copy link

ManishJu commented Oct 4, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants