Problem with projecting onto a live action plate.
Posted: Sat Mar 11, 2017 3:11 am
Hi!
First off, apologies for the long post, I just want to cover as much as I can right off the bat.
I have a problem with a "projected" video not playing back in sync with my background plate (of the same video).
I'm doing a test scene for an upcoming job and in my test I just want to place a glossy sphere onto a ground plane and then project my plate onto the plane so that it reflects the floor up onto the sphere.
I first tracked the plate in Nuke and added a ground plane (just a card). I then exported the tracked camera and the plane out of Nuke with the footage and then imported the scene into Cinema. I then created a Cinema 4D material (not an Octane material) which had my background plate in the color channel, then I hit calculate in the animation tab and added it to a Background object. I then turned on the Alpha channel in Octane's settings and ran the Live View. So far so good - I can see my plate and the plane in Live View and it plays back when I hit play.
Next I added the same material to the ground plane and set the material projection method to Camera Mapping and then selected the tracked camera to project from. I refreshed the live viewer and boom, I can now see the ground plane with the video projected onto it and it perfectly lines up with the Background plate. If I move the playhead to any other frame however it all goes out of whack but as soon as I hit refresh on the Live View it all pops back into place again and lines up fine.
The real problem arises when I hit play. For some reason, even though the first frame lines up fine, if I hit play on the timeline the image projected onto the plane and the background plate start to move apart visually. The same happens if I try and render a sequence to the picture viewer although in the Viewport everything looks how I want it to look.
I should note that to try and narrow down the cause of the issue, I have tried this method with the standard Cinema 4D renderer and also Arnold and the technique works fine. In fact when I tried it with the standard renderer, for consistency I literally used the exact same scene and just changed the renderer and it worked fine.
The camera track is good too but that shouldn't even matter as being as the footage is projected from the point of view of the camera it should always line up to the back plate. I also can't see any frame skipping or frame doubling which makes me believe that there isn't a framerate mismatch anywhere.
If anyone has any thoughts on this I would be very grateful as I've been at it for hours now and can't seem to find much documentation about it online either. I can always go back and do this with Arnold but I could really do with Octane's speed on this one.
Here is a project file: https://www.dropbox.com/s/0cbhfyll6j8yq ... 1.rar?dl=0
It's about 500MB due to the video clip included but if someone wants a pop at it please feel free! (note that the frame range is set from 50-350 rather than 0-300 due to the way Nuke initially exported the scene and it didn't seem worth correcting at this point).
Oh and one last thing... Nuke exported a super tiny scene which revealed another issue. Even though I have set the F-Stop to Infinity and turned "Filter" all the way down in Octane kernel settings, I still have a little bit of depth of field blurring. Is there any way to turn DoF off entirely?
Thanks guys and gals!
First off, apologies for the long post, I just want to cover as much as I can right off the bat.
I have a problem with a "projected" video not playing back in sync with my background plate (of the same video).
I'm doing a test scene for an upcoming job and in my test I just want to place a glossy sphere onto a ground plane and then project my plate onto the plane so that it reflects the floor up onto the sphere.
I first tracked the plate in Nuke and added a ground plane (just a card). I then exported the tracked camera and the plane out of Nuke with the footage and then imported the scene into Cinema. I then created a Cinema 4D material (not an Octane material) which had my background plate in the color channel, then I hit calculate in the animation tab and added it to a Background object. I then turned on the Alpha channel in Octane's settings and ran the Live View. So far so good - I can see my plate and the plane in Live View and it plays back when I hit play.
Next I added the same material to the ground plane and set the material projection method to Camera Mapping and then selected the tracked camera to project from. I refreshed the live viewer and boom, I can now see the ground plane with the video projected onto it and it perfectly lines up with the Background plate. If I move the playhead to any other frame however it all goes out of whack but as soon as I hit refresh on the Live View it all pops back into place again and lines up fine.
The real problem arises when I hit play. For some reason, even though the first frame lines up fine, if I hit play on the timeline the image projected onto the plane and the background plate start to move apart visually. The same happens if I try and render a sequence to the picture viewer although in the Viewport everything looks how I want it to look.
I should note that to try and narrow down the cause of the issue, I have tried this method with the standard Cinema 4D renderer and also Arnold and the technique works fine. In fact when I tried it with the standard renderer, for consistency I literally used the exact same scene and just changed the renderer and it worked fine.
The camera track is good too but that shouldn't even matter as being as the footage is projected from the point of view of the camera it should always line up to the back plate. I also can't see any frame skipping or frame doubling which makes me believe that there isn't a framerate mismatch anywhere.
If anyone has any thoughts on this I would be very grateful as I've been at it for hours now and can't seem to find much documentation about it online either. I can always go back and do this with Arnold but I could really do with Octane's speed on this one.
Here is a project file: https://www.dropbox.com/s/0cbhfyll6j8yq ... 1.rar?dl=0
It's about 500MB due to the video clip included but if someone wants a pop at it please feel free! (note that the frame range is set from 50-350 rather than 0-300 due to the way Nuke initially exported the scene and it didn't seem worth correcting at this point).
Oh and one last thing... Nuke exported a super tiny scene which revealed another issue. Even though I have set the F-Stop to Infinity and turned "Filter" all the way down in Octane kernel settings, I still have a little bit of depth of field blurring. Is there any way to turn DoF off entirely?
Thanks guys and gals!