Page 1 of 1

3D Checkerboard texture has banding

Posted: Tue Jan 16, 2018 9:39 am
by acasta69
Hi,

I have some strange results using 3D checkerboard texture: there is a banding superimposed to the texture, and it is different between CPU and OCL engines. Path, tiled path or Bidir make no difference.
Plain colors or other textures (I have tried Blender clouds) do not show the problem.
I'm attaching a couple of images and the test scene.

Ale

Re: 3D Checkerboard texture has banding

Posted: Tue Jan 16, 2018 9:50 am
by B.Y.O.B.
Your ground plane is probably exactly at world origin.
You can either transform the texture a bit (e.g. 1mm in Z direction) or you can move the plane a bit.

@Dade: can we do something about this in the addon or in LuxCore?
E.g. move every object a tiny bit?

edit: on the other hand, the only texture affected by this is the 3d checkerboard texture.
Maybe I should just transform it a bit on export (but not every object in the scene).

Re: 3D Checkerboard texture has banding

Posted: Tue Jan 16, 2018 10:12 am
by acasta69
B.Y.O.B. wrote: Tue Jan 16, 2018 9:50 am Your ground plane is probably exactly at world origin.
You can either transform the texture a bit (e.g. 1mm in Z direction) or you can move the plane a bit.
That was the problem, thank you.

Re: 3D Checkerboard texture has banding

Posted: Tue Jan 16, 2018 10:39 am
by Dade
B.Y.O.B. wrote: Tue Jan 16, 2018 9:50 am @Dade: can we do something about this in the addon or in LuxCore?
It is like having 2 coincident planes and having some ray hitting one or the other. It is a numerical precision problem. I think the only transparent (for the user) solution is a specific trick in the exporter or LuxCore adding an epsilon to the 3D mapping. I will add it in LuxCore.

Re: 3D Checkerboard texture has banding

Posted: Tue Jan 16, 2018 12:37 pm
by Dade
Dade wrote: Tue Jan 16, 2018 10:39 am I will add it in LuxCore.
Done: now the scene in the first post works fine.