美唄市農道離着陸場

Reference original document date : Jan. 31, 2010. This document is translated the original Japanese document Mr. Honda made.

About Photo Scenery Editor SimScence.exe for FMS, RSPSim

Function

  • It outputs the scene file (.scn) for FMS.
  • It outputs the image file for FMS or other flight simulator from the equirectangular projection image file which is made by Hugin or other software.
  • It can outputs the scene file (xscn, X file type) for RCPsim which is developed by V-Tails too. Here is RCPsim page. http://www.ac.cyberhome.ne.jp/~v-tails/delphi/rcpsim.html

Usage of SimScene.exe - Projection tab

プロジェクトタブ画像

Image file name

Set the equirectanglar image file name which is made by Hugin or other software.

When the equirectanglar image file is created, the width (pixel) of the image should be multiples of 8. If it isn't multiples of 8, SimScene.exe takes long time for changing it's size.

This file isn't needed to create or edit the scene file only.

Scene file name

Set the scene file name for making.

If there already has been the scene file, parameter are read from existing scene file.

SimScene.exe writes parameter as comment header in the scene file. If comment header exitsts, it is used. If comment header dosen't exist, the data other than space and angle of scene is read.

It can't read the parameter from following scene file. If it is read, error is displayed and claer parameter.

  • Scene file with 3D_LANDSCAPE section
  • TEXTURE section file image name aren't _left, _front, ... format.
  • TEXTURE section file image name aren't _0, _1, ... format.
  • TEXTURE section file image name aren't _11, _12, ... format.

Please backup the existing .scn file before it is read.

SimScene.exe read the parameter which is needed itself only, therefore it ignores collision polygon data. Collision polygon is set after crating scene file, if it's needed.

* Divided images from panorama image are output into this folder.

Base name of output images

Set base name of divided file. (ex. :"takikawa" of "takikawa_left.bmp" ).

Scene type

Set Cube (6 faces) or Sphere (20 faces).

Naming method

Set identifier after base name for cube (6 faces) type.

ex. _left.._bottom, _0.._5

FMS, RCPSim

Set for FMS or RCPsim.

X, Y, Z direction picture is shown, because FMS and RCPSim are different each other.

fms_X = xfile_X * -1

fms_Y = xfile_Z * -1

fms_Z = xfile_Y

These are relational expression.

Following explanation are based on FMS. If you use RCPSim, set transfered axis and direction by above method for RCPSim (X file tye).

Space (Radius of sphere)

Initial value is 1000. Set all space of photo scenery by radius of sphere.

Angle of scene

Initial value is 0. It is changed when takeoff direction isn(t fit with photo scenery.

Plus value rotate photo scenery in a clockwise direction. (ex.: 25.3) Rotation function moves polygons which is mapped with image, therefore scenery rotates but takeoff position dosen't rotate.

Ground angle X

Initial value is 0. Set X axis angle of ground. Plus value raises up area of takeoff direction (area of plus Y). Minus value is oppositional angle.

Ground angle Y

Initial value is 0. Set Y axis angle of ground. Plus value raises up left area of takeoff direction (area of minus X). Minus value is oppositional angle.

In case of RCPSim, set ground angle Z. Rising up area is same by plus value, but RCPSim version 0.24 doesn't support ground angle, therefore output scene file doesn't apply ground angle.

Pilot position

Initial value is 0. Initial value which is origin of scene = camera position of panorama picture is recommended. By chaging relation with Pilot position Z, you can feel like Choi Hong Man or on a stepladder, but 0 is recommended.

Aircraft possition X

Initial value is -5. If this value is increased for minus direction, aircraft position becomes far from pilot. If this value is plus, aircraft position is behind pilot position. If scene angle is 180 and this value is plus, takeoff direction is reverse.

Aircraft position Y

Inital value is 0. When aircraft position X is minus, plus aircraft position Y moves aircraft right. Minus aircraft position Y moves aircraft left. When aircraft position X is plus, results opposite direction.

Aircraft posion Z

Inital value is -1.7. Set height of aircraft position from camera position = origin of scene. If aircraft size on the ground is bigger than scenery, this value is set in minus. (ex.: -2.3) Eextreme value result collapse of scnery. Especially cube (6 faces) type has small margin. Feeling is change by Pilot position too.

Return reading value button

It can use when the scene file was read and the parameter could be gotten. Click to return data to reading value when reading scene file.

Initialize button

Set initial value to "Space (Radius of Sphere)","Angle of scene","Pilot position","Aircraft position X Y Z","Ground angle X Y".

Output divided images checkbox

When this is checked, divided images which are created from panorama image which is set in Image file name is output to folder which is set in Scene file name.

Output file names are the name which is set in base name of output + following text.

When Sphere (20 Face) is selected in type.

_11, _12, _13, _14, _21, _22, _23, _24, _25, _26, _27, _28, _31, _32, _33, _34, _35, _36, _37, _38

When cube (6 face) is selected in type, it names following by naming method.

_left, _front, _right, _back, _top, _bottom

_3, _0, _1, _2, _4, _5

When cube (6 face) is selected in type, it takes long time for converting to flat images from equirectangular projection image.

Error is appeared in case of following.

  • Image file name isn't set.
  • Image file doesn't exist.
  • Scene file name isn't set.
  • Folder which is set in scene file name doesn't exist.
  • Base name of output isn't set.

Output image size

When sphere (20 face) is selected in type, 512, 1024, 2048 can be selected.

When cube (6 face) is selected in type, 1024, 2048, 4096 can be selected.

When you select 4096, 16,384 * 8,192 pixels or more size of panorama image is recommended.

Output image type

Select Bitmap or Jpeg.

Output scene file

When this is checked, the scene file which is set in scene file name is output.

Error is appeared in case of following.

  • Scene file name isn't set.
  • Folder which is set in scene file name doesn't exist.
  • Base name of output isn't set.

Execute output button

Execute process by output divided image checkbox, output scene file checkbox.

While processing, console tab is activated and it shows process.

When process finishs, the page of project tab is activated.

If process is to output scene file only, process is very short.

Usage SimScene.exe - Image tab

State of displaying image and guide for cube (6 faces)

画像と立方体(6面)用ガイド

State of displaying image and guide for sphere (20 faces)

画像と球体(20面)用ガイド

Show image

When image file name is set in project tab and this checkbox is checked, image file is read. It takes long time in case of large image.

When image file name is set and this checkbox is checked and image file exists, image file is read as above.

When clicking Execute output button in project tab, image is clear in this tab for saving memory. If you want to see image again, you clear this checkbox and check again.

Shoe guide

When this is checked, guide line for dividing image is displayed.

Displayed guide line is changed by type.

Guid line for sphere (20 faces) means not to use 1/4 bottom of image.

Type

Select cube (6 face) or sphere (20 face).

This is linked with project tab.

Width

Display image to fit width of page. When image is read at first time, this mode is applyed.

Height

Display image to fit height of page.

100%

Display image in 100% size.

Guide follows image

If display mode is changed or page is resized, guide follows image.

About photo scenery type (cube and sphere)

Cube (6 faces) type

立方体6面

Sphere (20 faces) type

球体20面


Sphere type (20 faces)

Photo scnery of FMS supports 2 type of image; sphere and cube.

Sphere type consists of 384 faces polygon. 128 faces placed on each sky, upper, lower part which are showes right side of above picture.

4 images are mapped on sky portion, 8 images are mapped on each upper and lower portion.

Mapping image can be cut out simply from equirectangular projection image.

UV value of FMS are set 0 - 255,

// u v x y z

0 0 -707 -0 682

255 255 -707 707 -25

Using from edge to edge of image as above example, seam is appear.

// u v x y z

0.50 0.75 -707 -0 682

254.50 254.25 -707 707 -25

Therefore it is good to use inside in 1 pixel from edge of image.

But when above way is applied on simply cutting out image, continuity in a juncture is lost. Therefore overlap should be made when cutting out image.

This work is very hard manually with PhotoShop or other image software.

And conversion of coordinate for rotating scene can't be proceed manually because polygon has 384 faces. Trigger of developping SimScene.exe was to automate these process.

Cube (6 faces)

It seems that cube type represented by Schneeszenerie.scn is mainstream now. Polygon number is few 6 (actually 7 incleding ground), and mapping is easy because faces correspond with images one by one. It is same with spher type that UV Value should applied inside value from edge of image, but continuity in a juncture isn't lost because each faces are perpendicular.

But images cutting out from equirectangular projection image simply can't be used.

When mapping directly, the area around vertex of cube is shown small bcause it's far from origin, and you feel to flight in the box. And barreled deformation curve is shown.

Therefore to transfer coordinate to cube from sphere is needed. This transfer can be do by Pano2QTVR, but also SimScene.exe. Transferring time of Scene.exe is a little faster than Pano2QTVR. (It's self-praise, and taking most long-term in this developing.) Transferring logic will be write in other chance.

Top
Return
JOYA 2016/11/20 Since 2016/11/20