LuxCoreRender / LuxCoreRender/BlendLuxCore
Advanced Clay Render
Open
@neo2068 is already working on this.
Since Dec 17, 2019.
enhancement
- Dominant language
- Python
- Stars
- 877
- Forks
- 108
- PR merge metrics
- No merged PRs in 30d
Description
Make it possible to exclude certain material types and properties from being replaced by clay, for example glass, null and light emission.
Code could be something like this:
exclude = {"glass", "archglass", "roughglass", "null"}
if clay:
for key in props.GetAllNamesRE(r"scene\.materials\.[0-9a-zA-Z_\-]+\.type"):
mat_type = props.Get(key).GetString()
if mat_type not in exclude:
props.Set(pyluxcore.Property(key, "matte"))
props.Set(pyluxcore.Property(key.rsplit(".", 1)[0] + ".kd", [0.1, 0.5, 0.5]))
(in file https://github.com/LuxCoreRender/BlendLuxCore/blob/master/export/material.py)
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.