disguise-one / RenderStream-UE

RenderStream plugin for Unreal Engine
BSD 3-Clause "New" or "Revised" License
69 stars 23 forks source link

Adding CineCameraActor as a child of another actor #16

Closed mrnelson6 closed 3 years ago

mrnelson6 commented 3 years ago

I am trying to create an experience where the camera will fly across the globe and give the physical camera controlling the disguiese/cine camera freedom to do small movements or rotations while the overall experience still is flying across the globe.

I thought this seemed easiest to put the CineCameraActor with the RenderStreamDefinition as a child to an Actor that will actually move across the globe. However, I seem to have a misunderstanding of how the CineCameraActor is inheriting rotation from the Parent Actor which is resulting the image being shown on the XR stage to not be in the direction/position I am expecting it to be.

I need to figure this out within the next couple of days so any information will be greatly appreciated.

Here is a gif of the CineCameraActor moving thru the Himalayas in editor mode. This is how I want it to appear on the XR stage but it is not. everestflyover

makkbe commented 3 years ago

@mrnelson6 the way we have solved this internally is through a slightly different parenting structure. The RenderStream CineCameraActor is parented to another CineCameraActor, which in turn is parented to an Empty Actor. We then have a LevelSequence with a CameraCuts track affecting the "middle" CineCameraActor.

Screen Shot 2021-06-30 at 20 22 26
mrnelson6 commented 3 years ago

Ok, so to make sure I understand this correctly, the top level Emtpy Actor is never moved and remains at 0,0,0 while I can apply translation/rotations to the middle Actor (NBA Camera) and the RenderStream will handle moving the final Camera (Disguise_BP_Camera)

makkbe commented 3 years ago

Yes, the top-level Empty Actor is positioned where you want your CineCameraActor to spawn. The second level CineCameraActor is at 0,0,0 relative to its parent, and RenderStream will affect only the CineCameraActor (also positioned at 0,0,0 relative to its parent) at the lowest level in the hierarchy.

makkbe commented 3 years ago

Question has been answered.