3D Checkerboard texture has banding

Use this forum for general user support and related questions.
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
Post Reply
acasta69
Developer
Developer
Posts: 472
Joined: Tue Jan 09, 2018 3:45 pm
Location: Italy

3D Checkerboard texture has banding

Post 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
Attachments
test03_sharp.zip
(129.15 KiB) Downloaded 254 times
PathCPU Sobol
PathCPU Sobol
PathOCL Sobol
PathOCL Sobol
Support LuxCoreRender project with salts and bounties

Windows 10 64 bits, i7-4770 3.4 GHz, RAM 16 GB, GTX 970 4GB v445.87
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: 3D Checkerboard texture has banding

Post 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).
acasta69
Developer
Developer
Posts: 472
Joined: Tue Jan 09, 2018 3:45 pm
Location: Italy

Re: 3D Checkerboard texture has banding

Post 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.
Support LuxCoreRender project with salts and bounties

Windows 10 64 bits, i7-4770 3.4 GHz, RAM 16 GB, GTX 970 4GB v445.87
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: 3D Checkerboard texture has banding

Post 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.
Support LuxCoreRender project with salts and bounties
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: 3D Checkerboard texture has banding

Post 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.
Support LuxCoreRender project with salts and bounties
Post Reply