Torsten Dreyer
f8a337fb9f
gcc warning fix: remove unused variable
2011-05-31 15:53:25 +02:00
Torsten Dreyer
c828961327
Merge branch 'next' of gitorious.org:fg/simgear into next
2011-05-28 10:20:03 +02:00
Torsten Dreyer
83a95a0488
(Re)fix bug #285 , textranslate broken
...
Due to fingertrouble, I removed the check for _step == 0 which
this patch re-adds.
Also, make this function look more like a template by not using
0.0 - constants.
2011-05-28 10:17:19 +02:00
Torsten Dreyer
b06e38699a
Make multicast sockets work under windows
...
msdn article 737550 states that "the preferred method is to call the
bind function to associate a socket with a local IP address and then
join the multicast group. Although this order of operations is not
mandatory, it is strongly recommended".
Since binding to the multicast address seems to fail, let's try binding
to INADDR_ANY and joint thereafter.
2011-05-27 21:06:06 +02:00
Torsten Dreyer
3a07e2fe21
ignore cmake generated files
2011-05-25 19:21:08 +02:00
Torsten Dreyer
ca668f8a37
Fix bug #285 textranslate and scroll animation with negative numbers
...
rewrite SGStepExpression::apply_mods so it creates the same step
for negative numbers as it does for positive numbers.
2011-05-25 19:14:09 +02:00
Torsten Dreyer
4e6159aa07
Remove unused class SGEnviro
...
This class and their source files visual_enviro.[h|c]xx were
unused since OSG transition. It's only functionality was to
keep a variable for the enable-state of rendering of precipitation.
This has now been moved to SGPrecipitation.
2011-05-06 14:10:04 +02:00
Torsten Dreyer
6a1d05646c
fix typo
2011-05-06 13:07:21 +02:00
Torsten Dreyer
1cd17e9edd
Improvements to the global 3D clouds system
...
Stuart Buchanan:
Improvements to the global 3D clouds system
- clouds now move with the wind
- bug causing cloud coverage to be less than it should have been fixed
- support for adding 3D clouds with an fg_command.
(https://gitorious.org/fg/flightgear/merge_requests/1554 )
2011-04-23 20:56:28 +02:00
Torsten Dreyer
4ff014d275
Add multicast support for sockets
2011-04-13 18:43:28 +02:00
Torsten Dreyer
83124e0c05
Don't depend on props.hxx
...
There is no reference to anything defined in props.hxx, so remove
the dependency here.
2011-02-27 20:35:44 +01:00
Torsten Dreyer
a079870bca
Add strutils::starts_with and strutils::ends_with
2011-02-20 15:29:06 +01:00
Torsten Dreyer
7479ae521c
Provide easy Tie() for indexed properties
2011-02-14 20:24:41 +01:00
Torsten Dreyer
3a620fe55d
Fix initial value for tied read-only properties
2011-02-12 14:46:58 +01:00
Torsten Dreyer
503310cdb8
Darn! Typo in vc90 project file
2011-02-06 16:37:48 +01:00
Torsten Dreyer
bda8d34c2b
Use tiedpropertylist.hxx in cmake and vc90
2011-02-06 16:35:15 +01:00
Torsten Dreyer
2ee87483f9
Move TiedPropertyList from flightgear to simgear
2011-02-06 15:05:50 +01:00
Torsten Dreyer
6d2646239e
Fix wrong difference calculation in SGExpression
2011-01-25 23:01:14 +01:00
Torsten Dreyer
c955e61ba7
Fix wrong difference calculation in SGExpression
2011-01-25 22:58:50 +01:00
Torsten Dreyer
e988dc0e42
Fix bug in SGMisc<T>:: normalizePeriodic()
...
SGMisc<T>::normalizePeriodic(min,max,value) returned zero for
all values less than min.
Example:
A call of normalizePeriodic(0,twopi(),-pi()) returned zero
where the correct value would be 3*pi().
2011-01-17 19:51:29 +01:00
Torsten Dreyer
58c7edfed6
SGExpression bugfix: allow <sin> within <product>
2011-01-08 13:06:25 +01:00
Torsten Dreyer
122d7f681f
Add <expression> to animations
...
Allow complex animation expressions
Example: translate along the y-axis following a sin
function.
<animation>
<type>translate</type>
<axis>
<y>1</y>
</axis>
<expression>
<sin>
<product>
<property>/some/position-norm</property>
<value>6.28</value>
</product>
</sin>
</expression>
</animation>
2011-01-07 22:43:46 +01:00
Torsten Dreyer
c32ab1b84f
handle NCD (nil clouds detected) in METAR
2010-12-31 13:31:09 +01:00
Torsten Dreyer
6c789f7165
metar: add string constants for cloud coverages
2010-12-12 22:18:10 +01:00
Torsten Dreyer
ab3612517f
Make the max. opacity of a 2d cloud settable
2010-12-09 09:06:40 +01:00
Torsten Dreyer
0909722bb5
Metar: symbolic cloudnames and phenomena exposure
...
- use symbolic names for scattered, broken, overcast, etc. cloud
coverages.
- better approach to expose weather phenomena to the interface
2010-12-04 12:02:38 +01:00
Torsten Dreyer
1cb8f9237c
Expose weather phenomena to the SGMetar interface
2010-11-27 21:04:04 +01:00
Torsten Dreyer
a6138b3445
Make visibility within cloudlayers settable
2010-11-26 19:24:44 +01:00
Torsten Dreyer
9d4f0f5824
A sum without diff is like foo without bar
...
Add a <difference> aka <diff> to SGExpression to compute
differences
2010-11-20 11:05:45 +01:00
Torsten Dreyer
49f038b9d1
Purge some gcc and MSVC warnings
2010-11-18 12:08:16 +01:00
Torsten Dreyer
48c6d3d89a
Provide a little more descriptive error message if TextureBuilder fails
2010-10-12 16:21:38 +02:00
Torsten Dreyer
136676012f
Merge branch 'next' of gitorious.org:fg/simgear into next
2010-10-07 17:43:35 +02:00
Torsten Dreyer
0994ffc195
Don't crash in strutils::trim() with empty strings
2010-10-05 22:39:41 +02:00
Torsten Dreyer
9a28642a4e
tolerate NDV (no directional validation) in METAR
2010-09-27 19:38:15 +02:00
Torsten Dreyer
0b953462f7
Ivan Ngeow: Fix build on FreeBSD
...
FreeBSD 8.0-RELEASE, only a very small patch needed
to be applied to simgear/simgear/compiler.h, to add
so that __FreeBSD_version is defined.
2010-09-23 10:27:06 +02:00
Torsten Dreyer
061eb686c6
Fix wrong movement of 2d cloud layers on N/S courses
2010-09-19 10:53:25 +02:00
Torsten Dreyer
df467b9dba
Let SGCloudLayer handle coverage strings
...
This is currently handled in various places in FlightGear.
2010-08-27 18:20:09 +02:00
Torsten Dreyer
c0e20ad56b
add padding function lpad and rpad to strutils
2010-08-12 13:02:16 +02:00
Torsten Dreyer
49887ff06e
Fix the fix that turned a warning into a bug :-(
2010-08-12 12:16:48 +02:00
Torsten Dreyer
1f6555c9ad
two warning fixes
2010-08-12 11:42:04 +02:00
Torsten Dreyer
7f8efa7cef
use correct parameter types for SGText::UpdateCallback
2010-08-12 11:35:09 +02:00
Torsten Dreyer
fa169d6aa2
Merge branch 'next' of gitorious.org:fg/simgear into next
2010-07-16 18:35:55 +02:00
Torsten Dreyer
d2bcb86e1e
Warning fix: compare signed/unsigned
2010-07-16 18:34:39 +02:00
Torsten Dreyer
ed7361622b
Warning fix: unused variable in TextureBuilder.cxx
2010-07-16 18:19:56 +02:00
Torsten Dreyer
25bb1cc957
Cleanup some nonprinting characters make this file work
2010-05-23 21:02:19 +02:00
Torsten Dreyer
2c6f8299f0
typo in gitignore filename
2010-05-23 19:09:00 +02:00
Torsten Dreyer
6a2773c3ac
ignore generated files
2010-05-23 10:54:23 +02:00
Torsten Dreyer
1eea917121
ignore generated files
2010-05-23 10:45:01 +02:00
Torsten Dreyer
ea1bbbabfa
ignore generated test apps
2010-05-23 10:44:29 +02:00
Torsten Dreyer
399d2bc73c
Fix a gcc warning
2010-05-22 23:40:07 +02:00
Torsten Dreyer
0759dbcdc9
Merge branch 'next' of gitorious.org:fg/simgear into next
2010-05-22 23:36:39 +02:00
Torsten Dreyer
1ae0f9c19d
New pick animation capability from Alex Perry
...
Alex Perry: Adds a new pick animation capability which parallels the existing
"action" for a named object. Specifying "vncaction" and a transform
from model space will enable all mouse clicks on that object to be
delivered directly to the OSG image. Currently, the readers for VNC
and PDF files yield interactive images; more are likely to be added
over time.
2010-05-22 23:35:01 +02:00
torsten
44dd50c0ef
Csaba Halasz:
...
Fix airport signs by reverting to rev 1.22 of apt_sign.cxx. Tweaked a little to handle missing materials better.
2010-01-05 22:11:57 +01:00
torsten
6c14e7127d
add "operator == ()" to SGGeod and SGGeoc
2010-01-03 10:10:32 +01:00
torsten
bcf727cf58
Catch a possible floating point error in SGGeodesy::SGCartToGeod() for cartesian coordinates close to the geocenter region.
2009-09-22 22:44:38 +02:00
torsten
dc2c437a1a
Tatsuhiro Nishioka:
...
Patches for configure.ac and Makefile.am files in FG/SG so Mac developers can build these in a unix way.
These also enables Mac developers to choose either PLIB framework or PLIB static libs.
2009-09-17 12:24:56 +02:00
torsten
78a471f684
Spare one node in the scenegraph if there is no <offsets>
2009-09-02 23:43:13 +02:00
torsten
0c17c5440a
support osgText in models
2009-08-25 09:11:27 +02:00
torsten
c4116da564
support osgText in models. See docs/README.osgtext for details
2009-08-25 09:11:27 +02:00
torsten
d0821953bb
Don't load materials without a name
2009-08-23 21:37:03 +02:00
torsten
e782adef94
Avoid NAN due to floating point rounding errors
2009-08-23 21:37:03 +02:00
torsten
1f3838b155
Alan Teeder: fix incomplete dbg_printf for non-gcc.
2009-08-23 21:37:03 +02:00
torsten
6aa459073e
don't build tabbed_value_test, swap_test, openal_test1 and openal_test2 by default.
2009-08-23 21:37:03 +02:00
torsten
0932c33185
warning fix: unused variables
2009-08-23 21:37:03 +02:00
torsten
5e542aa841
extinguish many warnings (at least for gcc)
2009-08-23 21:37:03 +02:00
torsten
6d53abd5af
warning fix: initializing members in the order they are declared keeps gcc happy
2009-08-23 21:37:03 +02:00
torsten
3ea58bf8db
warning fixes
2009-08-23 21:37:03 +02:00
torsten
71a4c2c3d2
extinguish many warnings (at least for gcc)
2009-08-23 21:37:03 +02:00
torsten
a3e391a523
warning fix: abort program and spit out a message if getNumPrims() is called with unknown mode. (Shouldn't happen anyway)
2009-08-23 21:37:02 +02:00
torsten
9cb15b302c
warning fix: unused variable
2009-08-23 21:37:02 +02:00
torsten
15c1a28d37
warning fix, unused code
2009-08-23 21:37:02 +02:00
torsten
d3a500e54e
don't use uninitialized variables
2009-08-23 21:37:02 +02:00
torsten
a0a5eb8aef
warning fixes
2009-08-23 21:37:02 +02:00
torsten
a92955eade
warning fixes
2009-08-23 21:37:02 +02:00
torsten
f043f3d4f9
warning fixes
2009-08-23 21:37:02 +02:00
torsten
992a057a1b
warning fix (multiline comment)
2009-08-23 21:37:02 +02:00
torsten
07da1e7e1a
warning fix
2009-08-23 21:37:02 +02:00
torsten
2c07222ef6
warning fixes
2009-08-23 21:37:02 +02:00
torsten
918e315d47
Warning fix: array subscript is above array bounds
2009-08-23 21:37:02 +02:00
torsten
1f1e28baf8
Stuart Buchanan: I've been working on a small patch to allow trees to be grouped together into woods. This allows what seems to me to be a more realistic grouping of trees for farmland in particular.
2009-08-09 23:56:10 +02:00
torsten
0e5e760135
Allow multiple <button> elements for <action> elements in pick animations. Nice to have to have a single action for mouse-button and mouse-wheel.
2009-08-08 00:49:40 +02:00
torsten
26b4776394
fix wrong bucket calculation for western hemisphere, close to poles, full-degree-longitude calculations.
...
set_bucket computed false left border, if the span was greater than 1, longitudes were less than zero
and longitudes were within SG_EPSILON on a full degree. Example: -179.0, +87.5 returned -176, 87
but should return -180, 87.
Discovered by Brian Schack
2009-03-30 18:43:39 +02:00