looksoon
Hi, I want to make a instance for trees on a mountain, the mountain is displaced by a texture,
now, how can i mix the texture into the positionPP?

thx.

luke sunma texture.ma     
Reply 0 0
plarson
You're displacing at render time and want to position the trees at the correct height to match it?

I'm not sure about performance with huge counts but you might consider using pointCloudToMesh and textureToArray. Using pointsOnMeshInfo to get the UVs of the closest point on mesh from the scattered points. Generating a mesh from the scattered points using pointCloudToMesh, and using the UVs from pointsOnMeshInfo. That mesh as an input mesh for textureToArray, and the displacement texture as the inColor. Then that textureToArray.outRgbaPP can be added to the Y position in a Point node and sent to the dynamic array/instancer's position.
Reply 0 0
looksoon
Thanks, I almost got the result as I want, except some normal is invert.
Reply 0 0
Reply