milasudril / texpainter

A tool for creating tilable textures
GNU General Public License v3.0
4 stars 1 forks source link

[bug] Waveform distortion has inconsistent wavelength #15

Closed milasudril closed 3 years ago

milasudril commented 3 years ago

Build info

Id: 1b42ed2f51b765a0e5e02612a8b6f08a VCS revision id: 2c25b286e017cafe5bbb3586659d4b9e15a5699d Compiler: g++-10 (Ubuntu 10.2.0-5ubuntu1~20.04) 10.2.0

Information about the problem

Bug type: unexpected behavior

Detailed description

The wavelength produced by Waveform distortion is dependent on waveform. This is wrong. In particular Sawtooth and square wave have half the period of sine and triangle.

Step by step procedure to reproduce the problem

  1. Use make linear gradient to produce a reference image
  2. Feed output into waveform distortion
  3. Combine into RGBA image using Make RGBA Image
  4. See error

Expected behavior

Sawtooth and square wave should have same period as sine and triangle

Platform