LuxCoreRender / LuxCore

LuxCore source repository
Apache License 2.0
1.14k stars 144 forks source link

Rounded Edges Shader [$95] #132

Open Theverat opened 5 years ago

Theverat commented 5 years ago

Implement the feature "Bevel edges by shader, with a threshold to ignore edges in a certain angle" in the features poll.

Discussion and code of the same feature in Cycles: https://developer.blender.org/D2803

--- There is a **[$95 open bounty](https://www.bountysource.com/issues/63168810-rounded-edges-shader?utm_campaign=plugin&utm_content=tracker%2F79505306&utm_medium=issues&utm_source=github)** on this issue. Add to the bounty at [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F79505306&utm_medium=issues&utm_source=github).
lacilaci commented 5 years ago

Ideally this feature should also allow mapping distance to create variations of this pseudo-fillet radius.

Useful for creating imperfect and beaten edges

lacilaci commented 4 years ago

few ideas on this.

Annotation 2020-04-18 075603

here is an example how the node looks in blender with octane. I have no idea what is the difference between fast and accurate option (fast pretty much doesn't seem to work properly) but both methods are fast...

Anyways,

the other two options convex only and concave only is important if you want only corners or edges rounded

you see that radius has an input, it can be mapped somehow probably but I didn't know how to make it work in blender. Like I mentioned before, it would be great addition to be able to map those edges to achieve imperfect fillets

roundness option is basically a range between fillet=1 and simple chamfer=0, can be useful but I'm not sure how important this feature would really be.

consider other objects(I guess you can input a specific list) this is important so that objects don't "melt/blend" into each other, for example you don't want a rounded object that sits on the table to blend into the table etc...