![]() The view xml I built as an experiment so others like yourself have a simple crude stick code to play with views. HAT codes work between and markers but don't let that fool you is effectively one button, another! HAT is usually not a true axis (unless it is analogue), HAT on most sticks only registers at the extreme end of movement so it acts like 2 x two way toggle switches, (aligned 90 degees apart) HAT will show as two axes ( 6 & 7 in windows, MAC axes 5 & 6 ? ) Button Codes can likewise be swapped between buttons. Sounds like the other path is to a default "stick.xml" which FG does see.Īxis Codes will work on any axis, they are inter-changeable. Maybe Flightgear cannot "see" the xml in your data/joysticks folder. One question, can I change the configuration you set for the joystick(i don't like how you go up by pulling on the stick, how move forward by twisting it etc.)? I think its possible but I just don't know how to change the codes in the stick.xml. Maybe you could acknowledge it in that post of yours(the second one you listed on this post). That was awesome, Sim! It was just what I wanted, brilliant-but I use a mac and pasting your code onto the stick.xml in the data folder does not work-only pasting onto the stick.xml(Another one) at works. Setprop("/sim/current-view/z-offset-m", getprop("/sim/view/config/z-offset-m")) Setprop("/sim/current-view/y-offset-m", getprop("/sim/view/config/y-offset-m")) Setprop("/sim/current-view/x-offset-m", getprop("/sim/view/config/x-offset-m")) Setprop("/sim/current-view/field-of-view", getprop("/sim/view/config/default-field-of-view-deg")) Setprop("/sim/current-view/goal-heading-offset-deg", getprop("/sim/view/config/default-heading-deg")) Setprop("/sim/current-view/goal-pitch-offset-deg", getprop("/sim/view/config/default-pitch-deg")) Setprop("/sim/current-view/view-number","0") This code (below) if you have a spare button for it will reset your view from the pilot seat!ĭon't forget to copy your original stick xml to a safe place on your computer before editing the one in joysticks folder!Ĭode: Select all OR WHATEVER BUTTON No YOU HAVE SPARE Warning if you do fly while experimenting you may find yourself well outside of your aeroplane, hopelessly lost and in danger of crashing. So you will have to use keyboard and mouse if you wish to get airborne Naturally you won't be able to use your normal stick controls to fly! Move your view left or right, up and down, move forward and backwards, pan view horizontally or vertically and zoom view in and out. Simply replace only those controls on your joystick with those codes and you will be able to experiment! KCY here are previous topics the second one includes new code for aileron elevator rudder and throttle and HAT axis. May be difficult to emulate this video using keyboard and mouse. You really do need a joystick with plenty of buttons/axes to do what you say you'd like. This video starts with simple view changes relative to a Cessna 150 parked at the runway threashold, followed by view adjustments relative to the tower. Nice landing sequences viewed from runway touch-down point makes interesting video sequences. By using large x y z inputs you can position your camera anywhere relative to the tower, as far away, as high or low as you wish. The camera will pan to follow your plane, keeping it in the centre of the picture. Setting your viewpoint relative to the tower while flying locally is also interesting. You can move x y z offsets together and pan view horizontally and vertically and zoom in and out at the same time if you can handle coordinating all those movements! Offset y will move camera above or below the aircraft and offset z will propel your camera lead ahead or lag behind. Using offset x will move your "camera" left or right of your aeroplane. If relative to an aircraft your view will move sychronised to your aircraft. By using Keyboard "v" you set your viewpoint relative to your aircraft or relative to the local ATC Tower.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |