-
Notifications
You must be signed in to change notification settings - Fork 13
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
Make Point Light radius modifiable #34
base: master
Are you sure you want to change the base?
Conversation
Currently, Point Light radius is hard-coded to 50mm, which can be somewhat huge for certain scenes (for instance, a scene containing small parts...). I propose to let it be initialized to 50mm, but to make it modifiable via the GUI.
@furti care to weigh in on this? |
Completely missed this pull request. Sorry for this. It looks good to me. I will try to merge it this week. I'm ptetty busy at the moment. |
Thank you very much. By the way, I may send you some others in the next days! |
A Power property will be needed for physical based renderers (Luxcore, Blender, Appleseed...)
Users can't see that the section has been expanded. This commit fixes this
Hi Furti, I pushed a new commit to add a RenderingPower property on point lights: it is needed for physically-based renderers (lux, appleseed, cycles...). |
@howetuft as i asked before. Why do we need the same setting twice? For me "rendering power" sounds a lot like "intensity". If the reason is we should have a unconstraint intensity setting, we should remove it and calculate the intensity for coin based on the RenderingPower. Having it twice will lead to some confusion i think. I would also call it "power" without the "rendering" predix then. |
Yes, the main reason is that OI Intensity is upper bounded, whereas Power is not, and I cannot figure out how to map a unbounded value to a bounded one (see my post: https://forum.freecadweb.org/viewtopic.php?f=10&t=40623#p346806).
I agree: for instance, we could link Intensity to power with something like
Sure! I can push a commit soon for that. |
Yes this is what I had in mind. You have more experience with the different renderers. So maybe there is a value K that gives a similar result for the intensity in FreeCAD like it would give in the supported renderers. So e.g. the maximum value for RenderingPower someone would ever set in a Renderer is 10000, than using 10000 for K might be a good choice. |
This commit introduces a Power attribute for Lights objects, in place of previous RenderingPower and Intensity attributes: - RenderingPower (used for external rendering) is removed - Intensity (for Coin) is now read-only, linked to Power, and hidden to user
Hi @furti,
My commit is above... |
Hello @furti, |
Currently, Point Light radius is hard-coded to 50mm, which can be somewhat huge for certain scenes (for instance, a scene containing small parts...). I propose you to let the radius be initialized to 50mm, but to make it modifiable afterwards via the GUI.