alexis
f069dfdc99
- Revert to previous behavior when changing view which shouldn't trigger a FOV reset.
2012-11-11 17:51:18 +01:00
Alexis
bc4371bcd4
view.ScreenWidthCompens() : optional FOV compensation for wider screens.
...
It keeps an equivalent of 55° FOV on a 4:3 zone centered on the screen
whichever is the screen width/height ratio. Works only if width >= height.
2012-10-04 22:15:52 +02:00
ThorstenB
5057b49ed9
#669 : fix fly-by-view when aircraft skips position
...
Reposition when view position is too far away, i.e. due to replay,
relocation etc.
2012-05-03 00:00:56 +02:00
ThorstenB
e282a1e6ed
fgdata/Nasal: avoid performance drop after sim reset/relocate
...
"/sim/signals/fdm-initialized" triggers _every_ time the FDM is reset,
so for every sim reset/relocate.
We need to uninstall the listeners after its first execution, or guard
certain parts of the initialization, to avoid starting multiple
"timer/update loops", or installing multiple property listeners.
Repeating "sim reset" often enough would eventually completely block/
overload the system.
2012-03-20 21:18:20 +01:00
ThorstenB
1d222c06a8
#683 Nasal error with mibs/video assistant
2012-02-25 15:43:20 +01:00
ThorstenB
a0256e47ed
Fixed parentheses when checking conditional view-name property.
...
Avoids stepping through invalid views.
2011-07-03 16:06:14 +02:00
ThorstenB
f84ce36d90
Fixed issue with "unnamed view".
...
Do not show "unnamed views" (views have no name when they belong to
another aircraft).
2011-06-12 15:31:57 +02:00
ThorstenB
f2d2b8e8b1
issue #281 : tutorial's view direction messed-up/unusable by outside views
...
When user switched to a different view mode (e.g. chase/helicopter/tower
view) before or during a tutorial, everything went wrong...
Need to control (save/restore/switch) the view number (view mode) during
tutorials. Also adds an option to explicitly change view mode during
a tutorial, i.e. tutorials can switch to tower view, chase view, ... now.
2011-06-03 00:39:05 +02:00
Curtis L. Olson
1f4371245b
Address Melchior's concern about view prediction depending on a particular
...
aircraft system, rather than "core" data.
Fix a long standing annoyance (for me anyway) when the fly-by-view is first
instantiated, it never put a point forward very far so the first transtion
came very quickly and abruptly. Improve the forward prediction based on
ground speed and time when the view is reset (or switched to.) I like this
a lot better personally.
2011-01-18 11:47:15 -06:00
Curtis L. Olson
8ed16a4de2
Project "fly-by" vantage point ahead based on ground track direction instead
...
of aircraft body heading. This works better when there is significant
cross wind or side slipping.
2010-12-31 15:31:04 -06:00
Torsten Dreyer
351114b999
Fix line endings
2010-09-28 08:58:02 +02:00
Vivian Meazza
74df9856d7
Update
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-07-05 13:25:53 +01:00
sydadams
91c90c0679
added the view zoom popup to the enable property. Might
...
need it's own menu entry
2009-10-15 05:21:54 +00:00
sydadams
a48eb09c7d
Updated the view popup , and restored the original indentation
2009-10-09 00:21:32 +00:00
sydadams
4dbe45348c
added a /sim/view-name-popup bool to enable / disable the viewname popup ... enabled by default
2009-10-08 02:21:18 +00:00
mfranz
a13361766b
initialize view manager at nasal-dir-initialized sig (was: fdm-initialized)
2009-05-27 16:24:17 +00:00
mfranz
540b9368fe
multiplayer.model: more containers, more data, variable renaming,
...
temporarily catching error exceptions, colored missing-ac message ...
2009-02-04 21:47:19 +00:00
mfranz
7985e6e984
model_view: add some orientation parameters
2009-02-01 21:59:41 +00:00
mfranz
a644007c67
disabling the dialog in screenshots is nice in theory, but doesn't really work
2009-01-31 22:01:42 +00:00
mfranz
8bb50c1871
model_view_handler: use multiplayer.model + add selection popup
2009-01-31 19:30:31 +00:00
mfranz
82d4864c24
model_view: remove stale/invalid entries
2009-01-31 10:24:08 +00:00
mfranz
e31acedcfa
model_view: make it more reliable
2009-01-30 15:22:17 +00:00
mfranz
db1fcf2949
model_view: remove experimental mouse handling; cleanup
2009-01-30 12:05:29 +00:00
mfranz
cf69b0d01b
model_view: ignore AI models for now (make that configurable?)
2009-01-30 00:16:14 +00:00
mfranz
6aa74d2e7a
add model-view: switch through all AI/MP models via dialog in bottom/left corner
2009-01-29 23:57:57 +00:00
mfranz
dcb1321923
make constants D2R, R2D, M2FT, FT2M global
2008-11-20 11:24:45 +00:00
mfranz
efaeff5180
- make the limiter a tad faster
...
- fix comment
2008-04-21 21:39:45 +00:00
mfranz
ff6c9ec672
view_limiter: fix wrong starting offset
2008-04-15 16:55:40 +00:00
mfranz
c97010cefd
make panViewDir use new limiter params & some parameter tweaks
2008-04-15 13:29:23 +00:00
mfranz
7fbeb50695
view_limiter:
...
- new parameter naming (left/right instead of min/max; signs are ignored)
- fix wrap-around skips
- use regular constructor so as not to confuse people ;-)
2008-04-15 13:02:18 +00:00
mfranz
c4ebd9a0f2
- use separate view-limiter handler instances per view
...
- cleanup
2008-04-15 07:04:52 +00:00
mfranz
656340fa3d
davidB21 + Vivian MEAZZA + /me: pilot view limiter
...
If a <view> contains a <limits> block, then a view handler gets attached to
it, which limits head turns to a given range, whereby headings beyond a given
threshold cause an additional sideways movement. This is turned off by default
for now.
2008-04-14 10:00:27 +00:00
mfranz
3e9a108288
make view.index (value of "/sim/current-view/view-number") and view.current
...
(a props.Node hash of the current view, e.g. /sim/view[100]/) available
2008-04-12 20:25:21 +00:00
mfranz
cce72f08a9
don't save view-enabled state of nameless views to aircraft config file
...
(the view may have been removed from the *-set.xml file)
2008-01-18 14:16:38 +00:00
mfranz
c96fd4b089
- make stepView() read the <enabled> flag as bool
...
- some more 'var', as usual
2007-12-13 20:16:20 +00:00
mfranz
73bbdd280d
treat "Cockpit View" like other views; limit view.stepView() step to 1 and -1
2007-11-20 11:34:54 +00:00
mfranz
eccdedf12c
- ensure correct order of initialization
...
- only save aircraft view properties that are defined
- unset "userarchive" flags, just in case
2007-11-19 20:20:55 +00:00
mfranz
73aeb8d772
OK, and now it Really Works.
...
(Yes, that's one way to get a better place in the number-of-commits ranking. ;-)
2007-11-19 18:55:24 +00:00
mfranz
87e746a755
sheesh ... another little bug to fix: fixate path for settimer closure
2007-11-19 18:30:55 +00:00
mfranz
59e51fa533
refresh "enabled" state of aircraft views (or they'd last only until the next run)
2007-11-19 18:07:30 +00:00
mfranz
b8b665d347
work correctly if the stepView() step is >1 or <-1 (though such steps
...
don't really make much sense)
2007-11-19 17:08:47 +00:00
mfranz
10c875f75e
make system and aircraft views configurable in Menu->Views->View Options.
...
These are then skipped with view.stepView(n), unless the second, optional
argument is set to 1: view.stepView(n, 1);
Whether a view is enabled or not, is saved in $FG_ROOT/.fgfs/autosave.xml
(system views) or $FG_ROOT/.fgfs/aircraft-data/<aircraft>.xml
2007-11-19 16:26:15 +00:00
mfranz
d6be4c8303
make sure aircraft don't use reserved view indices (0..99)
...
I tried it the nice way, but it didn't work. Why is it important to
reserve indices for fgfs? Because someone has otherwise to go through
all aircraft in CVS and move aircraft specific views out of the way,
every time a system view gets added. Been there, done that.
2007-11-19 14:22:55 +00:00
mfranz
2ba2925cd0
add view manager which manages view handlers. fly-by-view is now implemented
...
as such a view handler. Views that don't use one aren't affected -- the view
manager doesn't run when they are active.
2007-11-06 21:49:33 +00:00
mfranz
2bcddab9b6
setlistener(): accessing the node via cmdarg() is now depreciated. Use
...
a regular function argument for that. Note the "n" in this example:
setlistener("/sim/current-view/view-number", func(n) {
setprop("/sim/hud/visibility", !n.getValue());
}, 1);
2007-10-15 18:27:42 +00:00
mfranz
eafc9c3a1d
rename index() to indexof()
2007-10-03 19:01:01 +00:00
mfranz
63dca5051a
add index() function which returns view index by name. Identifying views
...
by name is safer and especially useful for aircraft specific views, where
the XML index doesn't match the view number.
2007-10-03 18:15:50 +00:00
mfranz
109f38812b
don't reset viewPosition on view.resetView(). This would break
...
"seat adjustment" view MMB-dragging.
2007-08-01 21:28:58 +00:00
mfranz
3132b5c962
Fix mouse MMB+LMB: this reset to view[0] parameters independent of the
...
current view, so it was only usable in cockpit view, and messed up every
other view.
2007-08-01 21:10:04 +00:00
mfranz
886af1b68d
fly-by: more variation of view points in air, with some limits on ground to
...
avoid irritating taxiing through the viewer or down view on the aircraft
2007-07-16 14:42:48 +00:00