## Image Plane face camera after Duplicate3D

• Author
• Message

bryanfordney

• Posts: 20
• Joined: Mon Jan 21, 2019 1:50 pm
• Location: Atlanta, GA
• Real Name: Bryan Fordney
To make an Image Plane always face camera, I understand you can give it a Target and connect that to the Camera.

But that's doesn't work when you feed the Image Plane into a Duplicate 3D. Anyone know a method to make the duplicated 3d objects "face camera" after the duplication step?

Bryan Ray

• Posts: 914
• Joined: Mon Nov 28, 2016 5:32 am
• Location: Los Angeles, CA, USA
Well, not an easy way, but it should be possible using CustomVertex3d. If you know the dimensions of each plane, you could use the UVs to determine each vertex's local coordinates relative to the plane's center and perform a pair of rotations to get it to face camera. You'd also need to calculate the necessary angles to the camera's location.

It's a pretty tricky problem with a few layers you'll have to solve, but I think it's doable.

If you want to give it a try, I'd start by setting up a CustomVertex3D node that can do an X- and Y-Rotation of a single plane with its center at the origin (take a look at the Custom Tool entry in the Fusion Tool Reference—it has the necessary formulae to do a 2d rotation). Then work out how to rotate a plane that's not on the origin.

After that, work out how to rotate a plane using its dimensions and its vertices' UV coordinates rather than their actual positions.

The last piece will be to figure out how to calculate the rotation angles from the camera's location and the plane's location.

Once you have all of those component problems solved, you should be able to combine them to get the result you're after. Theoretically.
Bryan Ray
http://www.bryanray.name
http://www.musevfx.com