Board index FlightGear Development New features

Alternative camera control

Discussion and requests for new features. Please note that FlightGear developers are volunteers and may or may not be able to consider these requests.

Re: Alternative camera control

Postby wkitty42 » Sat Apr 23, 2016 9:15 pm

it may not be needed but if there are spaces it may... it all depends on how FGFS reads if and if it reads it all or not...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 5990
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: Alternative camera control

Postby Lydiot » Sat Apr 23, 2016 9:38 pm

I don't think Windows has spaces in path names.
Lydiot
 
Posts: 987
Joined: Tue Oct 22, 2013 10:50 pm

Re: Alternative camera control

Postby wkitty42 » Sun Apr 24, 2016 3:16 am

ummm... "C:\Program Files\" and "C:\Users\yourname\Application Data\" are two that come to mind ;)
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 5990
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: Alternative camera control

Postby Lydiot » Sun Apr 24, 2016 4:30 am

Oh, right, I see what you mean...... I was thinking between "\" and locations.
Lydiot
 
Posts: 987
Joined: Tue Oct 22, 2013 10:50 pm

Re: Alternative camera control

Postby Lydiot » Sun Apr 24, 2016 4:54 pm

wkitty42 wrote in Sun Apr 24, 2016 3:16 am:ummm... "C:\Program Files\" and "C:\Users\yourname\Application Data\" are two that come to mind ;)


Thank you, that indeed did the trick it seems.

Now, I haven't tweaked settings yet because I actually have to work today :-( but it seems the mouse input is different now. Previously when moving my cursor distance X it would cover the entire range of control for the aircraft (say bank left for example), whereas now with FGcamera on it'll cover X/5 distance banking.
Lydiot
 
Posts: 987
Joined: Tue Oct 22, 2013 10:50 pm

Re: Alternative camera control

Postby Marius_A » Sun Apr 24, 2016 8:16 pm

Mouse sensitivity can be adjusted by editing mice.xml:

Code: Select all
      ...
         <x-axis>

            <!-- No buttons pressed: control ailerons -->
            <binding>
               <condition>
                  <not>
                     <property>/devices/status/mice/mouse[0]/button[0]</property>
                  </not>
                  <not>
                     <property>/devices/status/mice/mouse[0]/button[1]</property>
                  </not>
               </condition>
               <command>property-adjust</command>
               <property>/controls/flight/aileron</property>
               <factor type="double">1.0</factor>
               <min type="double">-1.0</min>
               <max type="double">1.0</max>
               <wrap type="bool">false</wrap>
            </binding>

            ...
         </x-axis>

         <!-- Mouse up/down motion -->
         <y-axis>

            <!-- No buttons pressed: control elevator -->
            <binding>
               <condition>
                  <not>
                     <property>/devices/status/mice/mouse[0]/button[0]</property>
                  </not>
                  <not>
                     <property>/devices/status/mice/mouse[0]/button[1]</property>
                  </not>
               </condition>
               <command>property-adjust</command>
               <property>/controls/flight/elevator</property>
               <factor type="double">-1.0</factor>
               <min type="double">-1.0</min>
               <max type="double">1.0</max>
               <wrap type="bool">false</wrap>
            </binding>

            ...
         </y-axis>
      ...


To increase sensitivity, change <factor>1.0</factor> to <factor>4.0</factor> and <factor>-1.0</factor> to <factor>-4.0</factor>
Marius_A
 
Posts: 89
Joined: Wed Dec 04, 2013 2:20 pm

Re: Alternative camera control

Postby Lydiot » Mon Apr 25, 2016 10:35 pm

Marius_A wrote in Sun Apr 24, 2016 8:16 pm:Mouse sensitivity can be adjusted by editing mice.xml:

Code: Select all
      ...
         <x-axis>

            <!-- No buttons pressed: control ailerons -->
            <binding>
               <condition>
                  <not>
                     <property>/devices/status/mice/mouse[0]/button[0]</property>
                  </not>
                  <not>
                     <property>/devices/status/mice/mouse[0]/button[1]</property>
                  </not>
               </condition>
               <command>property-adjust</command>
               <property>/controls/flight/aileron</property>
               <factor type="double">1.0</factor>
               <min type="double">-1.0</min>
               <max type="double">1.0</max>
               <wrap type="bool">false</wrap>
            </binding>

            ...
         </x-axis>

         <!-- Mouse up/down motion -->
         <y-axis>

            <!-- No buttons pressed: control elevator -->
            <binding>
               <condition>
                  <not>
                     <property>/devices/status/mice/mouse[0]/button[0]</property>
                  </not>
                  <not>
                     <property>/devices/status/mice/mouse[0]/button[1]</property>
                  </not>
               </condition>
               <command>property-adjust</command>
               <property>/controls/flight/elevator</property>
               <factor type="double">-1.0</factor>
               <min type="double">-1.0</min>
               <max type="double">1.0</max>
               <wrap type="bool">false</wrap>
            </binding>

            ...
         </y-axis>
      ...


To increase sensitivity, change <factor>1.0</factor> to <factor>4.0</factor> and <factor>-1.0</factor> to <factor>-4.0</factor>


The term "factor", without the following "type" or other words, does not appear in the code you listed above. It appears elsewhere. If I change it where it does appear (without other words, and instead the way you just wrote it) the situation is still the same. In other words; in order to go from center to banking full left I have to move my mouse (trackball actually) cursor center to full left (screen) at least 3-4 times.

EDIT:

To explain further: The cursor when it is set to a crosshair/plus sign doesn't move all the way from center to all the way right (for example), with the indicator in the HUD following to maximum bank. Instead whenn moving the crosshair towards the right, once it is center between the distance-to-ground indicator and the altitude meter it snaps back to center of screen instead of continuing all the way to the right. Therefore the 'travel' of the mouse/trackball/cursor is far longer to get maximum bank.

Additionally the "5"-key no longer resets ailerons etc.
Lydiot
 
Posts: 987
Joined: Tue Oct 22, 2013 10:50 pm

Re: Alternative camera control

Postby jaxsin » Tue Apr 26, 2016 10:27 am

this is the code he is talking about

Code: Select all
<factor type="double">1.0</factor>


I do not know what the default type is, but in programming if type was set to integer, then putting a value of 1.2 will truncate the value to type integer which doesn't use decimal places. A more thorough explanation from a computer programmer will help clarify the above. Again, adjust the following factors in the code marius posted to increase mouse sensitivity.

As for your second question, I do not think fg_camera was meant to be used that way, but I may be misunderstanding and marius will better to address that.
jaxsin
 
Posts: 396
Joined: Mon Dec 28, 2015 3:54 pm

Re: Alternative camera control

Postby Foxtrot15 » Sat May 21, 2016 8:27 am

Hi, I am trying to do the --config in Mac. May I know what would be the path name then?
Foxtrot15
 
Posts: 379
Joined: Thu Aug 27, 2015 5:01 am
Location: Singapore
Callsign: Ice-99
Version: 2016.1.0
OS: OS X

Re: Alternative camera control

Postby Timi » Mon Nov 21, 2016 8:14 am

Hi,

seems FGCamera is broken on FlightGear 2016.4.1. Had to revert to 2016.3.1
to get it working again.
Timi
 
Posts: 37
Joined: Mon Nov 21, 2016 8:08 am
Callsign: Jaeger
Version: 2019.1.2

Re: Alternative camera control

Postby Marius_A » Tue Nov 22, 2016 6:01 pm

It works on FG 2016.4.1
fgcamera_cfg.xml has to be loaded using method described in this message.
Marius_A
 
Posts: 89
Joined: Wed Dec 04, 2013 2:20 pm

Re: Alternative camera control

Postby Timi » Fri Nov 25, 2016 2:57 pm

Indeed it does. I put the config option to the properties of the FlightGear icon:
"D:\FlightGear 2016.4.1\bin\fgfs.exe" --config="D:/FlightGear 2016.4.1/data/Nasal/fgcamera/fgcamera_cfg.xml" --launcher

Thanks a lot!

-Timi

Image

Timi
 
Posts: 37
Joined: Mon Nov 21, 2016 8:08 am
Callsign: Jaeger
Version: 2019.1.2

Re: Alternative camera control

Postby GabrielYV » Mon Nov 28, 2016 8:47 am

@Timi Where I find the helicopter please??
New Boeing 737-800YV (Improved version) https://github.com/YV3399/737-800YV
Programmer at the it0uchpods Design Group
GabrielYV
 
Posts: 211
Joined: Sun Dec 13, 2015 6:06 am
Location: Venezuela
Callsign: YV3399/YV123B
Version: 2017.3.1
OS: Mac OS X 10.10.1

Re: Alternative camera control

Postby Timi » Sat Dec 03, 2016 8:17 pm

Hi GabrielYV,

it's not released yet. But Flight Gear UK is developing it.
Please have a look at their hangar here:
http://fguk.eu/index.php/hangar/category/13-rotary-wing

Cheers,

-Timi
Timi
 
Posts: 37
Joined: Mon Nov 21, 2016 8:08 am
Callsign: Jaeger
Version: 2019.1.2

Re: Alternative camera control

Postby jarl.arntzen » Sat Mar 04, 2017 2:20 pm

Hi.
Anyone got this working on MacOS/OSX? I can get it to load and I see the dialogs but I am not able to select any of the cameras and none of the settings have any effect. If I look in the Nasal console, it's full of "Nasal runtime error: vector 0 out of bounds (size: 0)"

Thanks.
Frequent Flyer. Occasional Lander.
jarl.arntzen
 
Posts: 106
Joined: Thu Jan 03, 2013 9:43 pm
IRC name: Jarl Arntzen
Version: 2017.1.1
OS: Ubuntu 14.04

PreviousNext

Return to New features

Who is online

Users browsing this forum: No registered users and 2 guests