1
0
Fork 0
Commit graph

4609 commits

Author SHA1 Message Date
ehofman
154ab45912 Latest cosmetic updates to the sunrise code. I still have to figure out why the colors on a PC are much nrighter in some places and much darker in others, but the color itself matches nicely now. 2003-05-18 11:40:57 +00:00
ehofman
b666d71d89 Rename an error message so it won't conflict with other output (especially property names) 2003-05-18 09:06:44 +00:00
ehofman
959996f17c Fix a view offset bug in some external views 2003-05-18 09:04:14 +00:00
ehofman
ebaa19f1d6 Changes needed after adding the gamma correction. I think it needs (atleast) one round of updates to get it right, but I've got to go now 2003-05-17 14:29:34 +00:00
ehofman
5b2e9467be Add gamma correction to the sky color functions 2003-05-17 12:45:27 +00:00
ehofman
119559597f Small, time related color adjustments for the sunrise/sunset code 2003-05-16 22:50:08 +00:00
ehofman
9c05297660 Make the sunset color view direction dependent again. 2003-05-16 20:32:21 +00:00
ehofman
93487f06b3 Darken the clouds near sunrise/sunset 2003-05-16 17:35:48 +00:00
curt
e9f4fc5972 Jim Wilson:
> > Here's a patch to add manual-pitch control to the propeller in YASim.  A new
> > control axis "PROPPITCH" is added.  Requires "manual-pitch" boolean property
> > in the "propeller" tag.
> >
> > Tags and Properties to add in order to enable:
> >
> > manual-pitch="true"
> >
> > <control-input axis="/controls/engines/engine[0]/propeller-pitch"
> > control="PROPPITCH" src0="0" src1="1" dst0="0.40" dst1="0.80"/>
> >
> > Note that for the time being, excessively low RPM or excessively high RPM is
> > brought undercontrol by a scaling range defined in the control-input tag
> > (see "dst0" and "dst1" properties).
2003-05-16 17:27:17 +00:00
ehofman
ff7408fdf2 Adjust sunset/sun rise color scheme 2003-05-16 16:33:23 +00:00
curt
6200c3cb62 Changes to track updates to SimGear. 2003-05-15 21:35:51 +00:00
curt
55ff4577d3 Split out some code from obj.cxx to userdata.[ch]xx 2003-05-15 16:21:18 +00:00
curt
3e3d79dec3 Changes to track SimGear cvs. 2003-05-15 15:12:39 +00:00
ehofman
48fc16432b MSVC fixes 2003-05-15 08:17:53 +00:00
ehofman
a0e829059a Add an otherwise lost header file to the Makefile 2003-05-15 08:13:38 +00:00
curt
9d16b308b1 Break a few more dependencies ... working towards being able to move
obj.[ch]xx over into simgear.
2003-05-14 20:48:31 +00:00
curt
df1cae3b65 Did some renaming of new simgear code. 2003-05-14 19:32:10 +00:00
curt
8dcf08c965 Moved some of the low level scene graph construction code over to simgear. 2003-05-14 19:22:24 +00:00
ehofman
e1f96243ec Update the sunset colors 2003-05-14 19:22:04 +00:00
curt
d6ae1c2205 Create an instance of SGMaterialLib in the "globals" structure and use
that.
2003-05-14 18:33:56 +00:00
curt
c51b629d8e Drop support for rendering both w/ and w/o textures, now we only support
texturing.
2003-05-13 19:09:43 +00:00
ehofman
db8cc2aba9 Update the fog color based on the color of the sun. This is a first attempt and probably needs tweaking 2003-05-13 19:00:27 +00:00
curt
7289eaa8ba Robert Deters:
I have attached some revisions for the UIUCModel and some LaRCsim.
  The only thing you should need to check is LaRCsim.cxx.  The file
  I attached is a revised version of 1.5 and the latest is 1.7.  Also,
  uiuc_getwind.c and uiuc_getwind.h are no longer in the LaRCsim
  directory.  They have been moved over to UIUCModel.
2003-05-13 18:45:04 +00:00
david
d403c2e568 The lookup method was always skipping the first ILS for any frequency
-- I discovered the problem while puzzling over an LOC that wouldn't
come in.
2003-05-13 14:15:30 +00:00
curt
d03087c3df Initialize a couple values before using them. 2003-05-13 11:35:35 +00:00
curt
3c7bdc31d9 Cosmetic changes for new code moved into simgear to make the naming scheme
better follow simgear conventions.
2003-05-13 03:18:42 +00:00
curt
65c3caa032 Moved fgfs_src/Object/newmat.[ch]xx and fgfs_src/Object/matlib.[ch]xx into
simgear/scene/material/
Adjusted flightgear code to match this change.
2003-05-12 21:34:29 +00:00
ehofman
2c10f3c878 Update the red and green fog colors for better matching cloud edges 2003-05-12 09:31:55 +00:00
curt
caea114d06 Fix a preset in the air problem. 2003-05-10 13:33:04 +00:00
curt
56db994994 Moved src/Model/loader.[ch]xx and src/Model/model.[ch]xx to
simgear/scene/model/
2003-05-09 20:40:59 +00:00
curt
51c04e9e4c - Added "SG" prefix to sound classes that recently moved to SimGear.
- Cleaned up some minor compiler warnings.
- Moved src/Model/placement.[ch]xx over into simgear/scene/model/
2003-05-09 19:39:48 +00:00
curt
eafdb70890 Remove dependency on model.hxx. 2003-05-09 18:51:16 +00:00
ehofman
5ecfcca7e4 Extract the sound code from FlightGear and move it to SimGear 2003-05-09 18:44:33 +00:00
ehofman
228d6b2f29 Jim Wilson:
This is a patch to viewmgr.cxx that I've had for a long time.  This just prevents a possible segfault caused by misconfiguration.
2003-05-09 08:31:56 +00:00
ehofman
8ef4374edb Jim Wilson:
What is actually happening is the camera is pointing to the right place (try zooming in),  but the camera is also travelling up and down with the nose and it should be staying more steady (in sync with the CG altitude).

Attached is a fix for this. There is still something a little funky going on with the camera, but this solves the biggest problem.  You will note that I deleted an unecessary reference to scenery.hxx in the patch.
2003-05-09 08:31:14 +00:00
curt
575b3ac98c Working at unraveling and breaking dependencies inside of src/Model.
I split the FGModelPlacement code out into it's own set of source files.
I created two versions of the fgLoad3DModel() routine.  One that is
  unecumbered by a panelnode dependency and one that is.  acmodel.cxx is
  the only place that needs to load an aircraft with instrument panels.
model.[ch]xx are now pretty much free to move over into simgear.
loader.[ch]xx should be able to follow closely behind.
This will be a big step towards being able to move the material management
code over into simgear.
2003-05-08 20:28:46 +00:00
curt
fe7a61d3ff Moved src/Model/*Animation* classes over to simgear. 2003-05-08 16:33:48 +00:00
curt
b85ff8c210 Timed animations now working again. 2003-05-08 15:56:31 +00:00
curt
677ec873be Clean up various dead, depricated, or otherwise unused code. I don't believe
the ascii scenery file format has actually worked in quite some time, and the
ADA runway light code has been supersceded by a slightly different mechanism.
2003-05-08 03:29:49 +00:00
curt
3c6b1bf9f2 Oops backout the last changes to these files. I was diddling with some
time based extrapolation and this wasn't far enough along to be usable.
2003-05-07 17:41:37 +00:00
curt
fc5f98a3cb Missed this one since I didn't have jpg server support activated. 2003-05-07 17:37:54 +00:00
curt
18b2464b4e When reseting the aircraft position, the system looks at a number of the
requested parameters to determine if this should be an on-ground vs. in-air
start.  The problem was that we never defaulted the value to anything so
if we didn't match an in-air condition, we simply inherited whatever value
was there from before.
2003-05-07 16:00:31 +00:00
ehofman
18dec3596d Curtis found another inconsistency in the sky repaint check. I am afraid that adding more checks would eventually give the same framerate as repainting every frame. Consider this a failed experiment. 2003-05-07 15:53:50 +00:00
curt
ec36086865 Moved into simgear. 2003-05-07 00:13:36 +00:00
daveluff
a142091a08 Fix to an ATC/AI communication timing bug 2003-05-07 00:07:20 +00:00
curt
198b88ca9b This is step "1" of probably "many" in the process of separating out the
scene management code and organizing it within simgear.  My strategy is
to identify the code I want to move, and break it's direct flightgear
dependencies.  Then it will be free to move over into the simgear package.

- Moved some property specific code into simgear/props/
- Split out the condition code from fgfs/src/Main/fg_props and put it
  in it's own source file in simgear/props/
- Created a scene subdirectory for scenery, model, and material property
  related code.
- Moved location.[ch]xx into simgear/scene/model/
- The location and condition code had dependencies on flightgear's global
  state (all the globals-> stuff, the flightgear property tree, etc.)  SimGear
  code can't depend on it so that data has to be passed as parameters to the
  functions/methods/constructors.
- This need to pass data as function parameters had a dramatic cascading
  effect throughout the FlightGear code.
2003-05-06 23:54:17 +00:00
curt
2119db35c3 This is step "1" of probably "many" in the process of separating out the
scene management code and organizing it within simgear.  My strategy is
to identify the code I want to move, and break it's direct flightgear
dependencies.  Then it will be free to move over into the simgear package.

- Moved some property specific code into simgear/props/
- Split out the condition code from fgfs/src/Main/fg_props and put it
  in it's own source file in simgear/props/
- Created a scene subdirectory for scenery, model, and material property
  related code.
- Moved location.[ch]xx into simgear/scene/model/
- The location and condition code had dependencies on flightgear's global
  state (all the globals-> stuff, the flightgear property tree, etc.)  SimGear
  code can't depend on it so that data has to be passed as parameters to the
  functions/methods/constructors.
- This need to pass data as function parameters had a dramatic cascading
  effect throughout the FlightGear code.
2003-05-06 23:46:24 +00:00
curt
f347d6d291 Removed support of old Ascii scenery format. The loader had not been
maintianed or upgraded in a *long* time so it didn't support many new
features like the runway lighting.  If anyone was using it for anything,
it should not be a huge amount of work to switch to the binary format.
SimGear includes a reader and writer for the binary format.
2003-05-06 14:20:30 +00:00
ehofman
b49b93f1ed Make sure the sky is also repainted when the relative view direction gets out of sync. Add a refference to /sim/rendering/debug for always repainting the sky dome. 2003-05-06 14:00:18 +00:00
ehofman
9b2ff882af Make the sky colour brighter, change the fog colour accordingly and add support for macintosh 2003-05-05 12:40:37 +00:00