GLSL POP Weight Field

Hey Community! <3

My second post this week - Markus helped me a lot on my Field effecting collection of objects issue.

Now what I am trying to do is to create a Field POP copy in a GLSL POP, which allows me to use brightness values of a sampler2D Ramp to be able to fe. displace P or Centroid attributes in a Transform POP afterwards.

This would basically transcend the Field POP from being stuck to one of the Field Modes and allow for 2D fields to affect POPs.

I saw and tried the tox provided from Vincent here Need Help With Field POP type workflow POPs
fieldPOPtorus_vincentGLSL.toe (8.4 KB)

but it doesnt work for me at all. TDInPoint_P doesn´t get recognized at all.

Maybe someone is wiser then me, can´t get my head around the GLSL POP space.

Thanks and Best
Bojan

I think what you’re running into is that example hasn’t updated the syntax for glsl POPs which changed a lot throughout the alpha. The correct syntax can be found in the Write GLSL POPs docs.

Here is an updated version of that file that works.
note the changes

TDIn_P(id) -> TDIn_P(0,id)  
TDIn1_P(i) -> TDIn_P(1,i)
etc...

fieldPOPtorus_vincentGLSL.toe (8.5 KB)

1 Like

Wow! You are a lifesaver, thank you so much for your time!

I will link your answer in the thread where the old example is in.

Thank you so much.

Bojan

Hi @Lime_23

If you’re interested, I set up a 2D texture based field in this example:

1 Like

Hey flowb,

thanks a ton! I´ll take a look and see where it takes me.

Have a good day!

Bojan