lookuptex2 not passing information to copy

Hi, I’m trying to follow a long with SERV’s POPs Alive: Bring Particle Life to TouchDesigner (EXPERIMENTAL) tutorial and my color information isn’t completely passing on to the Copy POP. But for some reason only part of the color information is passed on from the lookuptex to the copy pop. Kind of stuck on what might be causing it. Anyone have an idea of what could be causing it? Did I miss something obvious or is it a bug?


Hello!

It’s a little hard to see from the pictures, just tested locally with a simpler setup and it seems to be working as expected, it might be a bug indeed, can you share a toe file exhibiting the issue?

Thank you,
Vincent

1 Like

Thank you for taking a look vincentDev. Here’s the TOE file.

SARV_Pops_Tutorial.toe (6.1 KB)

Hi Marvin,

Thanks for sharing the file!
Things are working as expected, the color is correctly copied to all cubes, but there is also a PointScale attribute that is used to scale the copies and the same Age attribute is used to lookup the scale in a ramp - so what happens is the cubes with different colors have a scale of 0 and disappear.

On the copy POP, template page, if you turn off Template Scale you’ll see all the cubes with different colors.

Not sure what the tutorial does but here’s a slightly modified toe where the scaling to 0 happens only at the end of the ramp. I also unchecked GBA on the lookup for PointScale to make the warning go away (PointScale is a float attribute, lookup Tex by default returns RGBA so float4)

SARV_Pops_Tutorial_updatedScaleRamp.toe (6.2 KB)

I hope that helps, let us know if you have more questions!

1 Like

Hi !

It’s because your ramp here only has a little portion of white :

Ramp1 describes the PointScale for each Age. The right side is the born Age and left side is death. So in your case you wait a looong time for scaling up the PointScale :

Your ramp1 should be like this if you want the same result as the tutorial :

1 Like

@schubhan.arv I guess we were typing at the same time, your explanation is more visual though :smiley:

1 Like

Haha yes probably :slight_smile:

1 Like

Thank you @vincentDev and @schubhan.arv! Really appreciate it! And thank you @schubhan.arv for the visual that didn’t really click while watching the tutorial.