-
using 3D objects in AE without plugins
Strictly speaking this is not possible, but there is a limited and approximate way that might be useful in certain scenarios.
This allows the AE camera to move round the object and view it from different angles, though in this case the camera is limited to the horizontal plane (a small amount of vertical movement might be OK)
I am indebted to expressions guru Dan Ebberts for helping me crack the code to get this working correctly.The trick is to render the object as if on a turntable – render a complete revolution (with alpha channel)
Import the render, and make it a 3D layer.
Write a script that calculates the angle between the camera and the object
Using timeRemap, target the frame in which the object appears to face the camera.
The layer can be auto oriented towards the camera, but it is better to use an expression (very similar to the first one) to orient the layer, so that it only rotates on the Y axis.You can download the files here
https://basilisk.co.uk/motiongraphics/CCow_3DobjectInAE.zipThis is the science bit…
======================
revTime = 7.2; //time for 1 revolution of object (seconds)
v = position – thisComp.layer(“Camera 1”).toWorld([0,0,0]); // v is the vector between the object and camera
a = radiansToDegrees(Math.atan2(v[0], v[2]));// arctangent works out the angle from the x axis of point (x,y)
if(a < 0){ a = a+360 }//arctangent ranges from -180 to 180 degrees, so it needs this line to make it 0 to 360 linear(a,0,360,0,revTime)// this maps the 0 to 360 range to the length of the clip ====================== The other option with this technique is to video an object rotating on a turntable against a greenscreen. I am planning to try this and will post results when I have some.