Author Topic: 2 Gradient glitches. Bug?  (Read 726 times)

Offline cmndr brain

  • Newbie
  • *
  • Posts: 11
    • View Profile
2 Gradient glitches. Bug?
« on: October 18, 2021, 07:03:12 PM »
I'm looking to do a smooth transition.  I can edit the color palette for a gradient, but when applied to a single strand, it results in flashes of red in the animation.  Image 1 is a zoomed in view down to the nodes and you can see the bright red blips in the gradient.

If I try to use a gradient on a morph, the gradient color, on the palette changes and locks to the clock, and I'm unable to select the left/right transition arrow.  Image 2 show the clock locked under the color when the morph is selected.

Is there a reason behind these or is this a glitch?

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: 2 Gradient glitches. Bug?
« Reply #1 on: October 19, 2021, 08:00:41 AM »
I wrote the Morph effect long ago and I don't remember it having any ties to control the color panel.  Effects typically ask the color panel for the color value they don't set them.  I haven't paid close enough attention to know if anything changed.  Typically you would click on that clock itself to cycle through the various gradient options.  If its locked did you click the lock icon to unlock it.  Its hard to dicipher exactly what steps someone is doing just reading words.  A video showing the issue makes it easier.

Offline allknowing2012

  • Sr. Member
  • ****
  • Posts: 386
    • View Profile
Re: 2 Gradient glitches. Bug?
« Reply #2 on: October 19, 2021, 11:55:33 AM »
Perhaps attach a test sequence with a couple effects to show what the issue is?

Offline cmndr brain

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: 2 Gradient glitches. Bug?
« Reply #3 on: October 19, 2021, 06:44:32 PM »
Link to video: https://youtu.be/eT13ee1Pw7k

I did some more testing and found that a lot of the effects lock the color gradient to the clock.
Effects that allow the gradient arrows and don't lock on the clock are:
On
Bars
Fan (This has the angled & circular arrows)
Pinwheel (This has the angled & circular arrows)
Shimmer
Shockwave (This has the angled & circular arrows)
Single Strand
Spirals

All the others lock the gradient to the clock.  As seen in the last part of the video.  I did not test things like Faces, Piano, etc., just the common effects.  This makes me assume that these were written this way and is not a "glitch".  But, there are certain effects that the gradient would be helpful

This first part of the video does show the gradient glitch on the Single Strand effect.  I was just trying to have a smooth transistion from the first color to the second.  I did some further testing on this issue.  I found that if I remove the first color, in this case the first white, the problem goes away, but it doesn't give me as long of a head as I wanted.  If I try it with different colors I get the same result.  Red to blue gradient results in the second color, blue, to show bright blips.  Adding a 2nd color, blue, with a red to blue gradient in between results in the same issue with blue blips on the red.  Adding and/or removing colors have different results. Sometimes the bright bands go away and sometimes they don't.  My ppicture in the first post shows 3 solid reds and the issue is there.  I can't reproduce that.  But, If I have 4 reds and issue returns...  Weird.

You've put out a great piece of software and offer it to the community and for that I thank you. 

« Last Edit: October 19, 2021, 07:09:23 PM by cmndr brain »

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: 2 Gradient glitches. Bug?
« Reply #4 on: October 20, 2021, 06:33:16 AM »
Ok now your jogging my memory.  Yes not all the gradient options are going to make sense on all effects.  Some of those gradients are rotational and radial which is not possible on a Morph.  So the one option you get is the clock which means it does the defined gradient over time for the color you picked.  The Morph effect by default is already doing a color blend between the selected colors as it draws the head and tail.  Its does not blend the head to the tail so if you need that then make head length zero.  I'm not as familiar with SingleStrand but that does look like a bug in the code.  It appears to be a roundoff/edge case type error where it select the next color too early.  The best way to get a bug fixed is submit it on the Github issues list.  Sometimes things posted here get fixed but there is no way to track posts here.  At least Github issues have a chance to be looked at 3 months or years from now.

Offline cmndr brain

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: 2 Gradient glitches. Bug?
« Reply #5 on: October 20, 2021, 02:16:21 PM »
Thank you Gilrock for taking the time to look at these issues and responding.  I will figure out the Github reporting.
« Last Edit: October 20, 2021, 08:04:27 PM by cmndr brain »