How to make a photo field for RealFlight G3.5 and FMS alpha 8.5

This is how to make a photo field for a radio control flight simulator "RealFlight" , "FMS" and ""Phoenix R/C"" from taken pictures. You take pictures of your airfield where you usually fly your R/C aircraft, and can display the taken picture in the simulator. This picture airfield is called "Photo filed" in RealFlight or "Photo Scenery" in FMS.
An outline of the procedure is, 1) to take pictures of all direction, 2) to stitch pictures to one panorama photograph, 3) to convert panorama photograph into images for R/C simulator, 4) to add collision objects or terrain of landscape.

1. Preparation

1) Digital still camera
If there are a camera which can fix an exposure and a white balance with a lens of a wide angle, it seem to be better, but the cheep compact camera of full auto can also use enough. (Exposure of each photograph and the difference of a white balance can be corrected automatically in Hugin.)
2) Tripod
Tripod should be prepared. Tripod with the level is better. It shall hold weight of a camera and panorama head, get shooting height. Shooting height is needed more than 183cm for RealFlight G3.5.
3) Panorama head (panorama camera platform)
If a nodal point set by using a panorama head, a panorama photo can be make automatially from taked pictures. The following are cheap and recommended. The leve is also attached. PAYPAL can be used. It arrived in one week (February, 2009 time 75.95+18(shipping cost)US$ =8,662\). It seems that what is sold in 2013 is improved from what I bought.
A camera lens position of this panorama head is 25 cm in height from a tripod attachment side.
http://gregwired.com/Pano/pano.htm (external link)
Reference :PAYPAL: It is convenient for internet shopping.
https://www.paypal.com/j1 (external link)
4) Personal computer : Windows PC when using the following software.
5) Software of making a panoramic photograph: Hugin
It makes the panorama form Cylindrical Image (oblong panorama picture) to read into RealFlight or SimScene (for FMS) from two or more photographs.
http://hugin.sourceforge.net/(external link)
Here Hugin_2009-4-0_win32_setup.exe does not work in my pc windows xp.
http: //adhuikeshoven.pbworks.com/hugin%C2%A0installer%C2%A0for%C2%A0 Windows%C2%A0Vista (external link)
I am using the Hugin-SVN-3778-setup.exe here for windows xp.
6) paint software: GIMP 2.6.4
It is used for adding the sky, changing an image size or an file type.
http://www.geocities.jp/gimproject/gimp2.0.html (external link)
http://www.gimp.org/(external link)

2. Maiking the scale marks for a tripod or a panorama head

Scale marks are put on directions to take pictures. Although this does not need to do, it is helpful for taking take pictures very quickly and knowing angle easily later.
If the panorama head has the scale marks, and if photograph is taken by the scale marks, this mark creation work is unnecessary.

1) Check an angle of camera lens feild at a wide end.
f = The focal length in 35mm film equivalent [mm]
h = 24 mm, w = 36 mm, d = SQR (24^2+36^2), x = h or w or d (tan(a/2) = x/(2*f)),
Field angle a = 2*tan^-1 (x/(2*f)) [rad] = 180/PI*2*tan^-1 (x/(2*f)) [deg]
2) Divide 360 degrees by 0.7 time of a field angle. Divide 360 degree by the rounded out value. The calculated value is a interval for taking pictures. The photograph which overlaps 30% or more now should be able to be taken.
The example of an interval angle for 35mm camera (Excel2003): TripodScale.xls
3) Make the paper which drew the line at the above-mentioned interval angles. I drew and printed by JWCAD.
The example scale marks for Panozaurus (JWCAD JWW file): TripodScale35.jww
Distribution origin of JWCAD: http://www.jwcad.net/(external link)
4) Stick double-stick tape on the paper, cut off round, and stick on the pan axis and tilt axis of a panorama head or a tripod.

* Another way "PanoCell"

This seems to be easier to decide the shooting interval.
V-Tails test version software : http://www.ac.cyberhome.ne.jp/~v-tails/delphi/panocell.html

3. Shooting photograph

Take photographs of all directions at the same position of lens nodal point. An example of procedure is explained below.

1) Take pictures at the height of a lens that shall be about 183 cm or more in RealFlight G3.5. If it has shifted, a photograph is not fit to the obstacle for a collision judging later.
http://www.geocities.jp/aerohawk_7/realflight/(external link)
The shooting height can be written to .scn file later in the case of FMS. If the shooting height is 170cm, 1.7 wiil be written to .scn file.
2) The example of a setting for a compact camera with few manual functions
(1) White balance
A white balance is fixed.
(2) Focus
Since sky may fade if it is auto, it sets most photographs as infinity.
In the case of the photograph which includes a tripod or a panorama head, focus is set to an emphasizing center or a spot, in order to not focus a tripod or a panorama head.
(3) Exposure
When it cannot fix, it sets to multi-light measurement etc.
(4) Pixel size
A pixel size is about 3M pixels when obtaining the panorama image of 8192x4096 at f= 35 mm (35-mm film conversion) camera. The DDS file generated by import of RealFlight is set to 2048x2048. This is general size. A pixel size shall be raised more than 3M pixels if it is a lens of a wide angle more. By the picture of large size, the processing time in a personal computer becomes very long.
In the case of the pixel size 6.3M, the panorama image size becomes 13932x6966 at f= 35 mm. Composition of Hugin takes about 9 hours in PentiumM 1.4GHz and memory 1GB. A memory of 1GB is borderline to import, importing in RealFlight G3.5 takes about 35 minutes. The generated DDS image file size is set to 4096x4096. However, probably, 2048x2048 will be enough, since a pixel size will become fewer if it displays by RealFlight in windows xp. -> 16384x8192 panorama, 4096x4096 devided image is recomennded for after windows 7 PC, because it has more machine power.
(5) Others
Zoom:A wide end, Face detection:OFF, Flash light:OFF, Macro:OFF, Stabilization from shake:ON, ISO speed:Raise within a value that noise are not conspicuous, or it is AUTO (in order to prevent blur of the plants by a wind, etc.).
3) Take a picture of right above first.
4) Set tilt to one lower tilt than previous tilt, take pictures 1 round at intervals of a pan scale in the clockwise direction seeing from a top.
5) If it goes around, set tilt to one lower tilt than previous tilt, take pictures as same above.
6) Finally take a picture of right under. (It is good to also take a picture without a tripod, when erasing a tripod. If the stones or other tings are placed as the marks on a portion of the leg of a tripod, alignment procedure of picture will become easy later.

Tips

4. Stitching photos

1) Start Hugin.
2) Click (1) picture registration button in the assistant tab, select all photo file. (after to additional deletion is also possible).
3) Input a focal length of 35mm film equivalent in a focal length. Input "1" into a focal length conversion factor.
4) Click (2) arrangement button.
5) Since a stiching result comes out on a preview screen, correct a center (left-click) and the horizon (right-click) if it's necessary.
If you want to add only sky photos, see Add only sky Photo.
It seems that an error will come out at the next stitching if there is a duplicate photograph altogether displayed with two or more of other photographs.
In this case, display a preview screen, clear all photos, display photos one by one, clear a photos which is already covered by displayed photos.
In another way, reduce the overlap area by cliping a photo in a "clipping" tab. But to reduce photos is better than this way in uneven exposure.
* Correction when the horizon bends
If the horizon can't be correct to straght when right-click the horizon, it seems that the pitch angle of reference photo is wrong. For this case, correct the pitch angle of reference photo whicth is defined in image tab to the tilt angle when shooting the photo. and click [Optimization=Position(form reference)] - [Optimization] in the optimization tab. Correct the pitch angle of all photos whitch has same tilt angle as reference photo one by one. If it gets wrong result, correct the roll angle to an angle when shooting photo. Furthermore, you can change pan angle at same time.
6) Set a field angle as 360 degrees and 180 degrees in a stitching tab.(Even if there is no photograph to there, it sets up in this way)
Click [Calculate size] to set a panorama image size. (f= 35 mm and the 3M pixels photo makes about 8192x4096.)
Set a projection method to [Equirectangular].
7) Choose an output (check either following).
(1) Usual Blended panorama : It seems to prior exposure. The sun seems over exposure.
normal.jpg(4829 byte)
(2) Exposure composition (fusion) exposure composition : Although the sun does not become white, there is a tendency out of which the unevenness of exposure comes.
fused.jpg(4880 byte)
8) Input "-l29" (half width L of l= small letter) into the option of Enblend. (Input space when deleting option)
This is composite level (1-29). If a result is not pleasing, please set a space (= automatic).
9) Push execution of a stitching. Now, TIFF of an oblong panorama picture (equidistant-cylindrical-projection (equirectangular) panorama picture) is made.

5. Correction of sky, File Conversion

1) Read the above-mentioned TIFF by GIMP.
2) Add lacking areas such as sky, or erase an unnecessary thing.
The portions of right above or right under are prolonged and it is hard to edit Cylindrical Image (oblong panorama picture). Therefore, right above or right under were not edited here, it will be better to edit them after into into CubicVR (6th page of cube division image) later. In RealFlight, it is automatically changed into CubicVR (DDS file) at import procedure which is mentioned later. Refer to "File structure and how to erase tripod". In the case of FMS, it changes into CubicVR (6th page of cube division image) by SimScene.exe in 7. clause.
3) Change into BMP.(In the case of FMS, non-compressing TIFF is also OK.)
RF_mat1.jpg(4083 byte) * In RealFlight, if the file which cut the bottom 1/4 is made and it Imports by RealFlight, it will be automatically covered with a mat underfoot. Thereby, it is unnecessary to erace a tripod which needs the time and effort. However, it seems necessary to set a height and width pixcel of picture size as the multiple of 8. 8000x3000 isn't acceptable. 8610*3060 is acceptable.

6. Taking in to RealFlight G3.5

1) Start RealFlight, and click [Simulation]-[Import]-[Raw Panoramic Image] to import a stitched panorama image.
2) Edit the airfield by the edit function of RealFlight.
The setting way is written in the page of Edit Photo Field for Real Flight G3.5.
The correction way when the horizon leans is Importing Panos for G3 of Forum of RC Universe. -- Please see A Guide (external link). Unfortunately, picture has expired in this page.

Object or terrain under 1.83m from pilot eyes posision cannot be edit, because flat face exist under 1.83.m from pilot eyes position in case of the photo field. This is a shame, but it has't be improved yet 6.5.

7. Creation of Airfield Data for FMS

Please see "Making of photo scenery and landscape for FMS". Since peff.exe introduced here can move the vertices of polygon freely, it can fit a collision to a panorama picture easily.

Old edition : It is using Pano2QVR. QTVR can be made.

8. Creation for Phoenix R/C 5.5 site

Make a site for Phoenix R/C 5.5 from panorama photograph

9. Others

1) V-Tails / 1-minute panorama Making a photo scenery
You can study stiching panorama photo by the Hugin using sample data.
http://www.ac.cyberhome.ne.jp/~v-tails/pano/hugin.html (external link)

10. 360-degree camera

If you use an 360-degree camera that can easily synthesize landscape panoramic images (equirectangular panoramic images), you can shoot very comfortably. The cost performance when compared with panoramic head is very bad.

- RICOH THETA S
It creates a panoramic image of 5376×2688 (equirectangular panoramic image). It is better than 3584 x 1792, but the picture quality is bad.
- Kodak PIXPRO SP360 4K
http://www.maspro.co.jp/products/pixpro/sp360-4k/
2880x2880.Since the hemisphere requires two shots.
Return

2017/08/17 Since 2009/03/22