Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Light setting #2

Closed
eckertzhang opened this issue Aug 3, 2020 · 1 comment
Closed

Light setting #2

eckertzhang opened this issue Aug 3, 2020 · 1 comment

Comments

@eckertzhang
Copy link

Hello, I am using the pyRender as a mesh renderer, but I don't know how to set the light source. Would you please give me some information about the lignt setting or its default setting? For example, the position of the point light? Thanks!

@hjwdzh
Copy link
Owner

hjwdzh commented Aug 4, 2020

The core library only delivers a rendered image of Face ID and barycentric coordinate for each pixel. If you want to add lights, you need to write additional functions --

  1. based on Face ID/barycentric coordinate, compute surface normal for each pixel.
  2. based on lighting/camera/normal/face material, compute light intensity.

@hjwdzh hjwdzh closed this as completed Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants