ydrive / EasySynth

Unreal Engine plugin for easy creation of synthetic image datasets
MIT License
174 stars 31 forks source link

Multi camera rig generates the same output images while metadata is correct #75

Closed stalex91 closed 6 months ago

stalex91 commented 6 months ago

Hello! Thank you for developing and supporting such handy tool. I have tried to use it with multi camera rig setup but meet some difficulties that looks like bug. May you please take a look or comment on this issue? Thanks!

Describe the bug When setup empty actor with multiple cameras different output images are expected. Got the same image for every camera from rig.

To Reproduce Steps to reproduce the behavior:

  1. Create empty actor BP and add multiple cameras to it, place on scene
  2. Create new sequence and add actor instance to it (e.g. by drag-n-drop)
  3. Capture sequence and save
  4. Generate images with created sequence
  5. All images for different cameras has the same view point

Expected behavior Every camera generates image from corresponding view point as well as metadata.

Images are the same but metadata matches each camera.

Additional context When debugged RigCamera[0] changes its RelativeTransform after RigCameras[0]->SetRelativeTransform(OriginalCameraTransform); but images are from the same PoV Also exactly before &USequenceRenderer::StartRendering camera has changed RelativeLocation and next FRendererTarget::GetCameras() call it already have default location. If FoV changed, it remains the same.

When cameras have different FoV images with different FoV rendered but PoV still the same. When rendered with Movie Render Queue and selected Camera->Render All Cameras set of images with different PoVs are generated.

Env UE5.2.1, ToT UE 4.27.2, v1.2.0

stalex91 commented 6 months ago

Rig import creates camera set but do not uses it - default set from camera cat is used.

stalex91 commented 6 months ago

Not plugin-related