Track a person and build world around them or build world first?

Hi, This info seems to be hidden or not wanting to be mentioned anywhere online.

If we recorded someone walking in front of a green screen so that we can build a world to put them in, I understand it can be either way, but when I very first stepped into 3D, it was with Unreal Engine with After Effects and that was a nightmare because UE doesn’t have tracking options, so had to track in AE, but I didn’t know which to do first so I tracked first, then made a scene in UE and put them in it……but it didn’t work remotely like it should, making them walk up floating above the ground then somehow walking into the ground 🤦.

So I tried exporting the scene and tracking into AE…..which also was a nightmare, as the model kept sliding across the ground because AE camera tracking isn’t so great apparently.

Then I found Blender and eventually here I am.

Anyways, I seen Blenders 3D camera tracking amazingly better, but with these issues I had originally, I’m not sure if I’m supposed to do the camera track first, then do the chroma keying and build the world around that track, or is it more efficient to build the scene first and camera track them into the pre built scene?

All of the camera tracking content on youtube has nothing to do with this and is all camera tracking videos to add CGI/VFX to them, not creating fully 3D world scenesto put people in.

I know Ian Hubert has some amazing camera tracking in blender into full 3D worlds, but I didn’t quite understand which he did first, looked like they pre built the worlds since he showed an extensive and potentially tedious process having to change every frame, but then other parts didn’t look like that. I have to go watch them again.