Hello gaffer gurus,
I come to you with some sort of gaffer challenge :
I have a city made of dozens of buildings, sometimes placed by hand, sometimes by an instancer. I'm preparing the breakdown of this scene and would like to add a value to the transforms of these buildings to drop them from the sky, in a specific direction/timing.
My first idea to do that was to query all the transforms of my buildings in worldspace and create a pointCloud from it. Then, I would have used the closestPointSampler to get the UV of an underlying plane and write it back to the transforms after some tweaking.
I used to do that pretty easily on forests with the instancer node, manipulating
the P of my source pointCloud but keep on failing when dealing with
transformed objects.
(I'm joining the scene that illustrates the effect)
Ideally, I'd like to feed the closestPointSampler with a list of worldPositions instead of the P primvar of a geometry, and send it back to the transforms.
Any idea is welcomed (even with transformQuery/transform nodes).