Page 3 of 3

Re: Where the bump gets strange

Posted: Fri Nov 20, 2020 1:27 pm
by mischterlampe
This is exactly what I'm looking for.

This means, I have to wait until the "bumpsamplingdistance" is available in the blender plugin?

Re: Where the bump gets strange

Posted: Fri Nov 20, 2020 2:45 pm
by B.Y.O.B.
Dade wrote: Fri Nov 20, 2020 1:06 pm The default sampling distance is 0.001 (1 mm), smaller value should be used if the bump (procedural) texture has smaller details (like in the case above).
In my tests it seems like just using a lower default value in all cases could be a solution.
But I guess the default was chosen higher for a reason, so could it introduce problems I don't notice now?

Below is a cube with 2m diameter with an fBM texture as bumpmap.

Re: Where the bump gets strange

Posted: Fri Nov 20, 2020 3:49 pm
by mischterlampe
What happens when you get close?
Create a 2cm by 2cm cube on top and zoom in, so that the small cube is for example 4cm. How does the bump behave then?

Re: Where the bump gets strange

Posted: Fri Nov 20, 2020 3:53 pm
by Dade
B.Y.O.B. wrote: Fri Nov 20, 2020 2:45 pm In my tests it seems like just using a lower default value in all cases could be a solution.
But I guess the default was chosen higher for a reason, so could it introduce problems I don't notice now?
If the sampling distance is too small compared to the wave length of the procedural textures, you can start to have a delta, between two sampled points, equal to 0.0 and non bump mapping at all. It can not happen with real numbers but it can happen with FP32. You can also experience aliasing problems if the sampling distance is not appropriate.

Whatever default value you pick, I can always build a scene where it will show problems.

May by you can have combo with 3-4 preset values: micro details (0.00001, the default setting), small details (0.001), macro details (0.1), user defined (i.e. the number is set by the user). Like I said there always can be a case outside the intended range.

Re: Where the bump gets strange

Posted: Fri Nov 20, 2020 6:38 pm
by B.Y.O.B.
Ok, I have added the "Sampling Distance" parameter to the bump node.

The tooltip description is
Distance to use when picking two points on the surface for bump gradient calculation.
Use smaller values if procedural bump textures with very fine details don't show a bump effect.
Note: does not affect bump sampling of image textures.

Re: Where the bump gets strange

Posted: Fri Nov 20, 2020 7:23 pm
by mischterlampe
*happy*
thank you.
Do you plan to add the "Sampling Distance" to the "Triplanar Bump Mapping" Node, too?

Re: Where the bump gets strange

Posted: Fri Nov 20, 2020 9:43 pm
by B.Y.O.B.
I forgot about that one. Added.

Re: Where the bump gets strange

Posted: Fri Nov 20, 2020 10:18 pm
by mischterlampe
"expose bump sampling distance in triplanar bump texture, too"

Sorry for being "kleinlich" :lol:

Re: Where the bump gets strange

Posted: Fri Nov 20, 2020 10:56 pm
by Dade
mischterlampe wrote: Fri Nov 20, 2020 10:18 pm "expose bump sampling distance in triplanar bump texture, too"
Triplanar bump mapping is bit a topic on its own: viewtopic.php?f=5&t=1638&start=80#p19280

Are you using UV or UV-less bump mapping ?

As usual, you may want to post a test scene because it may be or may be not the same topic.

Re: Where the bump gets strange

Posted: Sat Nov 21, 2020 12:01 am
by mischterlampe
The idea is to get rid of UVs so a procedural map can be place e.g as a bump on a part of the product. This shader is reused on other parts of the product, too. The size of e.g. the noise should be the same on every part of the product, regardless of UVs or mesh density. Just depending on real world scale. Because the parts came from step data, there is no UV and the geometry is "not good looking". The goal is to create a shader, procedurally, independent of UV, flexible and high resolution.
I will test the triplanar bumt mapping, too.
Thank you very much for your willingness to help.

What I would like to know is how do you decide where the journey of luxcore goes? Who or what is consulting you, what are your goals in the world of so many renders and realtime engines?
I ask this question, because I really love the luxcore's results (I come from the photography's world) and I appreciate the work you do, but at our studio (we do mutliple 100k € projects a year) we have some workflow needs, which other renders fullfill.
Who is the one to speak to, if I want to talk about the strategy and the future?