TEXTURE INSTANCING POP

Hello,

I am trying to figure out how to use texture instancing feature with the copy POP. Since the instancing is done before the GEO COMP I was wondering what pop operator I should to map different images on a grid of cube or rectangle for example. what would be the process?

1 Like

Hello @maotik2021
One way to do this is to compute distinct texture coordinates for your instances based on the TemplateId attribute, which can be added in the Copy POP. Although this attribute is an integer, you can normalize it and assign the result to Tex.z.
TextureMappingOnCopies.toe (4.3 KB)

As a side note, performance is usually better when using instancing rather than copying the geometry.

1 Like

@Guillaume.L Thank you!

1 Like

Hey Guillaume.L,
Does this way will work with Points and Point Sprite MAT?
Or how to make it work with POP instancing without Copy POP, just GEO COMP?
Trying to make this more efficient without allocating extra memory or primitives.
Texture3D_Study.toe (2.6 MB)

Hello @vacuum
It looks like the Point Sprite MAT currently doesn’t support the POPs texture attribute. We’ll look into this. In the meantime, you can use instancing on the Geometry COMP with a simple point input.
Texture3D_Study_with_instancing.toe (2.7 MB)

1 Like