To try to improve my paraview output, I tried to apply a texture to a contour (free surface with the wave pattern of a ship). I tried defining the texture coordinates by checking the Tcoords checkbox, and then specified the following formula:
((sin(coordsX)+1)/2)*iHat+((sin(coordsY)+1)/2)*jHat (basicaly a repeating pattern)
Following this, the calculator creates an array with 3 dimensions (zeros in the third dimension), and I can now load a texture. When I do this, the texture is however not applied …
What should I do in the calculator to see my texture ?
currently, ParaView needs the array to be marked as texture coordinates. In the Calculator panel, just make sure you check the Result TCoords checkbox.
It’s an advanced parameter, so either search for it by name using the search box or click on the icon.
I tried again without luck, also using the 5.6.0RC2.
Load my dataset, extract the block I want, extract the surfaces to be sure I only have surface data.
Add a calculator, specify the expression and check “Result TCoords”.
This appends a new array with 3 dimensions to the surface data. the Z direction is filled with zeros.
Load the texture, but the texture does not show up.
If I append a " Texture Map to Plane" filter, and select the loaded jpg, then the texture is visible.
Solution is to use Python Progammable filter instead. I applied a Python Programmable filter with the following script after your Calculator filter and then things worked as expected.