Is an After Effects tool that allows you to quickly extract 3d coordinates and place any object to it.
Requirement: Depth map and 3d camera data.
Plugin & expressions: fadaaszhi
(discord)
Script: shy_rikki
(discord)
https://www.youtube.com/@shy_rikki
- Download the tool: https://github.com/eirisocherry/3d-point-depth-projection/releases
- Move the
3D Point Depth Projection
folder and3D_Point_Depth_Projection.jsx
script to:
C:\Program Files\Adobe\Adobe After Effects <version>\Support Files\Scripts\ScriptUI Panels
- Move the
SimpleLight.aex
plugin to:
C:\Program Files\Adobe\Adobe After Effects CC <version>\Support Files\Plug-ins
- Restart After Effects.
Setup
- Open After Effects.
- Go to
Window
, scroll down and open3D_Point_Depth_Projection.jsx
. - The script panel will open. It's dockable.
- Import a 3d camera data.
CSGO: https://www.youtube.com/watch?v=78Y_Y-i5h2c
COD4: https://github.com/gmzorz/MVMAETools/blob/main/Support%20Files/Scripts/ScriptUI%20Panels/MVMTools.jsx - Import a depth map of your composition.
- Select the depth map and setup a projection by pressing [+] button.
- Adjust 'Depth settings':
'Black is Near' check it if a black color is near on your depth map, uncheck if it's not.
'Far' the farthest depth point value:
CSGO (if you use my cfgs):4096
COD4:4080
EXR Depth: set the same value you set in EXtractoR - Project any objects you want.
- The script is heavy and may crash your After Effects, but don't worry!
It automatically saves your project before doing any actions, so even if your AE will crash, you will not lose any of your progress. - 'Auto Orient' works only with EXR depth maps.
setup.mp4
SimpleLight
When you project 'SimpleLight' it makes a dublicate of your 'Depth for Projection' layer and applies 'SimpleLight' plugin to it
[x] SL
SimpleLight settings:
'Black is Near' takes value from '3D Point Depth Projection' effect
'Far' takes value from '3D Point Depth Projection' effect
'FOV' links to your camera FOV
'Light (View Space)' links to a point light ----[x] SL Light----
'Light Range' range of the light
[x] SL Adj
Adjustment Layer settings:
It uses SimpleLight [x] SL
as a luma mask
'CC Toner' allows you change the color of the light
'Exposure' allows you to change the brightness of the light
----[x] SL Light----
Point Light settings:
'Color' links to the 'CC toner' effect, which is applied to [x] SL Adj
'Projection settings' are self-explanatory.
sl.mp4
Keyframes
When you project 'Keyframes', they are being stored in the 'Collected Keyframes' group
keyframes.mp4
Solid
When you project a 'Solid', it takes properties from 'Projected Solid' and color from 'Projection settings'
Ctrl + Shift + Y
to open 'Solid' settings
solid.mp4
3D+2D null
>>> Link a 2d layer to a 3d point (useful for flares)
2dnull.mp4
>>> Make a 3d layer always look at the camera
autoorient.mp4
>>> Make a 3d layer always look at the camera using only Y-rotation
Auto-orient Y-rotation only expression by Dan Ebberts:
delta = toWorld(anchorPoint) - thisComp.activeCamera.toWorld([0,0,0]);
radiansToDegrees(Math.atan2(delta[0],delta[2]))
yonly.mp4
Link-Bake
If you want to adjust position & orientation of an object:
- Press [⚙] button.
- Select 'Depth for Projection' and layers you want to make controllers for.
- Press [Link] button and adjust positions.
- To apply changes, select controllers and press [Bake] button.
link-bake.mp4
Merge Depth
To merge depth layers, select them and press [Merge Depth] button.
It will create a 'Merged Depth' solid with adjustment layer which uses 'Merged Depth' solid as a luma mask.
Since 'Merged Depth' uses links to the depth layers you've selected, all the changes you make for them will be automatically applied to 'Merged Depth'.