Cubemitters not randomizing color

I’m using this code:

		...
		"color": {
			"start": {
				"kind": "RANDOM_BETWEEN",
				"values": [
					[1, 0.5, 0.0, 0.9],
					[0.0, 0.5, 1, 0.9]
				]
			}
		},
		...

But the color of the particles are always the average of the two values… The above code values were purposely extremes to test if I was going crazy or not. But the result is always (with that values) gray.

The only way to change color that I found is working is through the over_lifetime_r(or g/b/a).

Edit:
It is not always the average. With that same color setting, I got a pink color, which I’m guess would be around the color (1,0.5,0.5).
But it is still not randomizing the colors, just the first one, then all the others are coping the same color.

That’s probably my fault! I’ll take a look, thanks for reporting!

I fixed this today, should be good in Alpha 22

9 Likes

Fix verified:

(Always wanted confetti fire for Candyland :smile: )

The fix is on a branch that needs to be merged :thinking:
It probably will make it to the next build, but if not, shortly after (or at some point before stable).

5 Likes

That looks so nice!

I’m guessing you just randomized between 0,0,0 and 1,1,1? So it has full color range.

1 Like

Yes :slight_smile:
But the black particles stand out very much :disappointed:

Quick someone make a Minstrel class with randomized cubemitter music notes to keep my hearthlings happy! lol

That disco campfire is truly magical!! Good catch @BrunoSupremo! Great job @ayazar, and thanks for the pics @Relyss!!