James Turner
de959a14f3
Rename Viewer/viewer.cxx to view
...
- keep class and file names in sync.
2016-02-17 21:25:39 +00:00
James Turner
02ff854603
Re-Name FGViewer to flightgear::View
...
- avoids confusion with osgViewer and fgviewer application.
(source files to be renamed in a follow-up commit)
2016-02-17 21:25:39 +00:00
James Turner
ba56c42eb4
Pull Ephemeris out of FGGlobals
2015-12-31 15:19:51 -06:00
James Turner
97a5e15aaf
Show paused message when starting frozen.
2015-11-23 00:48:20 +00:00
Thomas Geymayer
bb38e59ba2
Skydome ends lower with default rendering scheme.
2014-09-18 10:39:01 +02:00
Thomas Geymayer
104dc1170b
Use black clear color only at high altitudes.
...
Black clear color can cause visual glitches on low
altitudes, but a black space is much nicer, so just
switch at 300.000 ft.
2014-09-18 00:16:09 +02:00
Thomas Geymayer
dd8b412060
Black sky for orbital flights outside skybox.
...
as suggested by Thorsten and Lauri.
2014-09-17 12:14:42 +02:00
Thomas Geymayer
c65b2eb6b0
Draw Canvas GUI on top of PUI (to conform with event order).
2014-06-24 11:57:33 +02:00
James Turner
072adde9a6
Remove all references to an alpha-buffer
...
- Current 3D clouds rendering does not use the alpha buffer,
so don't request one at launch, since it consumes valuable GPU memory.
- Remove any references to alpha testing or alpha func in the renderer setup.
2014-02-24 19:43:21 +00:00
James Turner
b76d255d82
Remove pre-OSG 'enable/disable-textures' option.
...
These have been non-functional for a long time, remove
to avoid further confusion.
2014-02-21 07:57:35 -08:00
James Turner
1a372d9366
Update image-server logic.
...
- no dependency on libJpeg or Simgear
- no duplicate rendering of the scene (uses a draw callback)
- supports other image types, eg PNG
- threaded so doesn't block the main loop ever
2014-01-27 09:08:34 +00:00
James Turner
4d0eeb8184
Reset work, fix time-slew on OSG event handling.
2014-01-13 20:13:34 +00:00
James Turner
43358a2418
Fix a crash where we show a message-box on start.
...
Don't assume we got as far as creating a viewer when destroying
the renderer.
2013-12-21 15:31:27 +00:00
James Turner
24c1129140
Bugfix: avoid sky colour errors when vis < 1000m
...
(needs the accompanying Simgear change in SGSky)
2013-12-19 17:18:09 +00:00
James Turner
52f2f5ff78
Bugfix: remove the (totally broken) skyblend option
2013-12-19 14:53:39 +00:00
James Turner
12ea6824eb
Rembrandt: fix sky color at altitude.
...
Don't override global clear color in the Lighting stage. Should fix ugly 'circle' appearing due to sky sphere being clipped when above 32000 ft.
Fix suggested by Emilian H.
2013-12-17 13:56:26 +00:00
James Turner
0bad1258a3
Reset: clear the viewer scene.
...
On renderer shutdown, clear the viewer scene completely.
2013-12-07 15:06:39 +00:00
James Turner
bb0aee4c02
Renderer: get rid of static scene references.
2013-12-06 17:38:23 +00:00
James Turner
7ff9792b96
Reset: listener cleanup
2013-12-04 09:11:26 +00:00
James Turner
58fa30b24d
Reset: uninstall deletion-manager
2013-11-12 22:55:50 +00:00
James Turner
2322fca9c9
Reset: guard against NULL HUD / lighting
2013-11-12 22:51:10 +00:00
James Turner
77768e2698
Assume OSG version 3.0 as a minimum
2013-07-29 22:54:25 +01:00
James Turner
b2d02c3970
Restrict sky-clouds group, avoids skydome picks.
2013-06-22 14:37:33 +01:00
James Turner
312be5410a
Object names for more scene-graph nodes.
2013-06-22 14:34:03 +01:00
Thomas Geymayer
d9881aecf8
Allow Canvas placed on 3D objects receiving mouse events.
...
- Add option 'capture-events' to canvas aircraft and scenery
placements to allow events being forwarded to the respective
canvas.
- Clean up and restructure parts of the mouse event/picking
handling to support forwarding events to canvasses.
2013-05-09 21:38:40 +02:00
James Turner
f2c267f5d7
MouseInput changes to support hover.
...
This adds the framework for platform cursor implementations; Windows and X11 to be done.
It also extend the mouse-input code to generate hover events suitable for driving tooltips.
Note there should be no visible functionality change from this commit, since everything
is inactive until fgdata changes are made.
2013-03-04 23:35:30 +00:00
James Turner
487638be7f
Restructure positional finalisation for sim-reset.
...
Make position finalisation happen in the same phase as scenery load, i.e as a task during the main loop, instead of during the init loop. This is compatible with the existing reset logic. Unfortunately more work is needed; the environment code doesn't update the local station quickly enough on reset. (Fixing that is next!)
2012-12-15 15:25:45 +00:00
ThorstenB
a784443a24
Remove static property dependencies
...
preventing us from wiping properties on reset/reinit/subsystem recreate.
(more work required for "native_gui" and "ATC-Outputs" protocols)
2012-11-18 16:35:54 +01:00
ThorstenB
b577ec70fc
Add command to toggle fullscreen mode.
2012-11-17 23:07:00 +01:00
Mathias Froehlich
74f07982bd
Provide reader writer options to the effects.
2012-10-03 22:03:25 +02:00
James Turner
872e84d827
Make HUD items private to the subsystem.
...
Make the HUD independent of the instrument manager, and push most of the declarations from the header into a private header.
2012-09-26 17:02:11 +01:00
ThorstenB
06170ddaae
Handle scenery-override in a single place only.
2012-09-17 13:45:31 +02:00
Frederic Bouvier
e6cb846ad3
Don't let the cloud alpha value change the lighting buffer
2012-08-12 19:06:41 +02:00
Frederic Bouvier
b7b4553db6
Add forgotten uniforms to the display stage (Rembrandt)
2012-08-11 12:19:44 +02:00
Tim Moore
6110139197
Merge branch 'timoore/optimization' into next
2012-08-03 20:20:01 +02:00
Tim Moore
f2762d0be7
use DeletionManager
2012-08-03 20:18:11 +02:00
Frederic Bouvier
c3de8851f8
Fix incorrectly hardcoded effect in last Rembrandt stage
2012-08-02 23:00:20 +02:00
Frederic Bouvier
64a8924035
Add some predefined uniforms to Rembrandt stages
2012-08-01 22:42:00 +02:00
Frederic Bouvier
b44b8005b8
Don't stop displaying the sky dome in Rembrandt at any visibility
2012-07-22 18:09:47 +02:00
Frederic Bouvier
359b67cf43
Remove a redundant line
2012-07-22 17:43:27 +02:00
Frederic Bouvier
9db625af79
Add a node mask bit for permanent lights (needed by Rembrandt) and select it in the lighting stage
2012-07-16 20:07:59 +02:00
Frederic Bouvier
7e90968c4e
Make the point light non permanent in Rembrandt
2012-07-15 08:13:05 +02:00
Frederic Bouvier
7b4287e151
Restore 2D panels in Rembrandt
2012-07-15 00:09:05 +02:00
Frederic Bouvier
a72caad8bc
Restore point light in Rembrandt
2012-07-14 21:30:18 +02:00
Frederic Bouvier
c1137f371d
Rembrandt: Add debugging properties and fix transparency issues. Side effect: light are not fogged (may be added in the light shader later) and depth buffer precision issues on light are more visible due to near plane really near (0.1m)
2012-07-14 13:07:41 +02:00
Frederic Bouvier
398936d08c
Working 'noshadow' animation
2012-06-30 16:26:42 +02:00
Frederic Bouvier
6d0cacc0a3
Get rid of TexGen magic and do the projective texturing for shadow mapping ourself
2012-06-27 19:38:04 +02:00
Frederic Bouvier
fad7181a2d
Remove hard-coded lighting stage
2012-05-20 00:36:42 +02:00
Frederic Bouvier
3e7b8e57b6
Add world viewer position in cartesian and geodesic coordinate as shader uniforms
2012-05-19 23:50:35 +02:00
Frederic Bouvier
a5dff11f13
Make Rembrandt compatible with multi screen
2012-05-19 15:43:49 +02:00