Comment 1 for bug 1680527

Revision history for this message
Mario Luzeiro (mrluzeiro) wrote : Re: 3D Viewer: Raytracing Procedural Textures

> 1. the pattern is too coarse

It is OK to edit the source code and propose/submit a new values for the pattern.
Or maybe add an option so users can change this parameters.

When I developed that texture I based my tunning on real PCB photos. Also it looks similar to other CAD tools, eg:
http://www.sasabremec.com/wp-content/uploads/Untitled1.png

> 2. the pattern is applied to copper, which should not happen if the pattern is meant to enhance the texture of the PCB

You are right in a real PCB that pattern comes from the FR4 substrate and not from the copper. As the copper is compressed against the substrate it will get also some degree of that "ondulation" (modulated to the pattern of the substrate).

In the 3D-Viewer implementation is not possible to simulate the mechanical / physical adaption of the copper to the substrate.
So the way I implemented was to create the parent texture for the substrate and then the copper texture is a soften derived from that parent, then the Solder mask again is a soft derivation from copper texture. (as again in real life the liquid mask will adapt and get smooth to the surface it is deposited)

These factors are also possible to be changed on the source code.