AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

CinematicCamera on Drones

Open ppueyor opened this issue 7 years ago • 11 comments

Hi!

I would like to know if there is a way to change the manual focus distance of the cameras of the drones, either through settings.md or by calling a function, like it is done in UE4 with a Cinematics Camera:

image

Is it possible to place a Cinematics Camera on the drones?

ppueyor avatar Nov 13 '19 09:11 ppueyor

Hello, I want to know the photo shown in the picture above, where is the focus setting from?

surongkai avatar Nov 21 '19 07:11 surongkai

In Unreal Editor 4, if you place a Cinematic Camera.

ppueyor avatar Nov 21 '19 08:11 ppueyor

When I perform the HIL simulation in the UE4, after setting the Setting file, I can generate the depth image. The camera used is the camera in the model. In this case, where can the internal reference such as the camera focal length be found? thanks!

surongkai avatar Nov 21 '19 08:11 surongkai

Yeah, that was my first question.

I can set those values of a Cinematics Camera if I place it in the editor of the map, but can't do it through the AirSim API or the Settings file. Seems like the camera integrated in AirSim is a regular camera. I guess it is not possible to place a cinematic camera in order to change those parameters, or to change things like the focus distance of the cameras integrated in the drones.

Would be interesting though!

ppueyor avatar Nov 21 '19 08:11 ppueyor

Is the camera that generates the depth map in airsim the same as the focal length of the Cinematics Camera? If not, if I want to see the internal parameters of the depth camera, where should you find it? thanks!

surongkai avatar Nov 21 '19 09:11 surongkai

The thing is that Unreal API does provice tools to play with the "UCineCameraComponent", where it is possible to change the FocusDistance programatically from their API. (code attached)

Would be great if AirSim would let us place a CineCameraComponent instead of a simple camera on the drones and change its params through the API.

image

ppueyor avatar Nov 25 '19 12:11 ppueyor

Hi,

Is the camera model in UE4 or Airsim a pinhole imaging model? Or other models? I try to use the camera's internal parameters (like Equivalent Focal Length) and images for distance measurement.

Any suggestions ?

Thanks!

LIU-Xueming avatar Oct 28 '21 09:10 LIU-Xueming

Hi @LIU-Xueming,

We are trying to integrate the Cinematic Camera into the main branch of AirSim as discussed in #3949.

In the meanwhile, CinemAirSim does the trick: https://github.com/ppueyor/CinemAirSim U can install and use it.

Hope it helps!

ppueyor avatar Oct 28 '21 09:10 ppueyor

CinemAirSim is just for Linux, but for win? And this bug https://github.com/microsoft/AirSim/issues/3487 @ppueyor

gudong321 avatar Apr 06 '22 11:04 gudong321

Hi @gudong321,

Theoretically, it is also available for Windows, but I didn't have the chance to test it there.

ppueyor avatar Apr 06 '22 14:04 ppueyor

@gudong321 the cinematographic camera works on windows too!

jonyMarino avatar May 30 '22 18:05 jonyMarino