hey everyone welcome back to another episode of our camtrackar master class
in the last two episodes we showed you how to film a scene using camtrackar some of the
benefits of the paid versus the free version and a general overview of the interface itself
in the second episode we showed you how to take that footage and composite it inside of hitfilm
using a pre-rendered cg background in this episode i'm going to show you how to take the camtrackar
data and apply it onto your cg background so that you can export it and composite and hitfilm
let's first take a look at blender which is of course free the first time that you use camtrackar
data inside of blender you have to install the plugin you only have to do this step once come
up to edit preferences and into the add-on section navigate to the camtrackar folder any take will
work the plugin is included with every single one select the python file and install make sure that
it's enabled and then we're ready to go here i have a scene setup using assets from video
copilot star pack and sketch fab for the mountain to import the camtrackar data go to file import
hitfilm ar tracking data find the take you want and select the dot hfcs file
select the layer and hit zero on your number pad to change the point of view to the camera
and there we go we've now got our virtual camera moving the same way that the real one did on set
it's unlikely that the camera is in exactly the right position and you can fix that by
adjusting the delta transform in the settings on the right this will move the camera but
maintain the tracking data one thing that might be useful is to be able to see your video footage
to do that come over to the object data properties tab and check mark background images
add an image change it to movie clip then open the video file
change the depth to front to have the video in front of your 3d scene
before you export this background just check in the output properties and make sure that
everything is correct including the frame rate i'll change the resolution to 2560 by 1440.
the reason for this is that camtrackar records at 1920x1440 to give you that
extra detail recorded by the camera so our 3d render needs to match the height of 1440
plus have extra on the sides if we want to stay in the 16 by 9 aspect ratio pick the folder it'll
be exported to in this case it's a png sequence now come up to render and select render animation
now let's learn how to use the data inside of unreal engine 4 which is also free
here i have a polar facility map which is available on the epic games marketplace
let's start by coming up to cinematics and then selecting add level sequence
this will open up the sequencer timeline come over to the actions icon select import and
navigate to the camtrackar folder the fbx file is the one we want uncheck everything
except create cameras and hit import be sure to change it to 60fps because it might default to 30.
you can extend the view range with these numbers down here you'll also want to move the out point
which is this red line and extend the length of the camera itself to cover the whole timeline
this button here will lock the viewport to the camera's view so you can see the movement
like we did in blender we'll want to move the position of the camera to be in the correct spot
i'll drag an empty actor into my scene and zero out its position in the details panel
in the world outliner drag the ar camera on top of the empty actor to parent the former to it
we can now use this empty actor to move the camera around and maintain the tracking data
i'll align the actor with the floor of my scene as that's quite important to get right
select the ar camera and come into the details panel change the film back to 48 height and 27
width this matches the by 9 aspect ratio we'll end up going for in the composite
now we're ready to export click the render button in the timeline i'll leave it as avi but we'll
want to change the resolution to 2560 by 1440. this is to match the filmback setting we changed
earlier then i can click capture movie and my scene will be exported even though after effects
is not a traditional 3d program we did want to show you how to use it since it's part of the
paid options for import into after effects what you're going to want to do is go to file scripts
run script file and open the jsx file to create a new composition with the footage imported as well
and as easy as that you have your footage and your tracked camera any anchor points will come in as
null objects we don't do a lot of after effects tutorials on this channel so i'll leave that there
if you're interested in seeing how to composite it in a 2d video check out the previous tutorial once
the background has been exported from your program of choice you're free to do whatever you like with
it in the last tutorial we showed you how to composite it with a green screen clip inside
of it film so be sure to check that out we hope you guys have enjoyed this camtrackar masterclass
be sure to check out the app for free on the ios app store if you have any questions or comments or
requests for longer tutorials on a specific step feel free to leave them down below be sure to
subscribe for weekly filmmaking and visual effects tutorials and i'll see you all in the next video