frohlich [Thu, 2 Nov 2006 06:15:14 +0000 (06:15 +0000)]
Modified Files:
projects/VC8/SimGear.sln projects/VC8/SimGear.vcproj: Import Olafs
project files
frohlich [Wed, 1 Nov 2006 21:25:21 +0000 (21:25 +0000)]
Modified Files:
Makefile.am SGMath.hxx SGMathFwd.hxx SGMatrix.hxx SGQuat.hxx
Added Files:
SGVec2.hxx
Improove the matrix functions. Improove the quaterion functions.
Add the 2d vector.
mfranz [Wed, 1 Nov 2006 21:24:24 +0000 (21:24 +0000)]
+ .deps/
frohlich [Tue, 31 Oct 2006 06:26:50 +0000 (06:26 +0000)]
Modified Files:
simgear/scene/model/Makefile.am
simgear/scene/model/animation.cxx
simgear/scene/model/animation.hxx
simgear/scene/model/modellib.cxx
simgear/scene/model/modellib.hxx
Removed Files:
simgear/scene/model/personality.cxx
simgear/scene/model/personality.hxx:
Updates to the animation system.
Personality can be implemented easier now
frohlich [Tue, 31 Oct 2006 06:14:38 +0000 (06:14 +0000)]
Modified Files:
Makefile.am SGStateAttributeVisitor.hxx
SGTextureStateAttributeVisitor.hxx
Added Files:
SGStateAttributeVisitor.cxx SGTextureStateAttributeVisitor.cxx:
Move implementation into cxx files
frohlich [Tue, 31 Oct 2006 05:37:45 +0000 (05:37 +0000)]
Modified Files:
simgear/math/SGQuat.hxx: Initialize with zero not with null pointer
frohlich [Tue, 31 Oct 2006 05:36:50 +0000 (05:36 +0000)]
Modified Files:
simgear/screen/extensions.cxx simgear/screen/extensions.hxx:
use glXGetProcAddress if approriate
frohlich [Tue, 31 Oct 2006 05:33:48 +0000 (05:33 +0000)]
Modified Files:
simgear/timing/timestamp.hxx: Remove reimplemented default
implementations
frohlich [Mon, 30 Oct 2006 19:56:09 +0000 (19:56 +0000)]
Modified Files:
configure.ac: Add a configure flag for osg
mfranz [Sun, 29 Oct 2006 20:08:27 +0000 (20:08 +0000)]
Makefile(.in)
frohlich [Sun, 29 Oct 2006 19:27:08 +0000 (19:27 +0000)]
Modified Files:
configure.ac simgear/environment/visual_enviro.cxx
simgear/ephemeris/ephemeris.cxx
simgear/ephemeris/ephemeris.hxx simgear/ephemeris/stardata.cxx
simgear/ephemeris/stardata.hxx simgear/math/SGMatrix.hxx
simgear/math/SGQuat.hxx simgear/math/SGVec3.hxx
simgear/math/SGVec4.hxx simgear/scene/Makefile.am
simgear/scene/material/mat.cxx simgear/scene/material/mat.hxx
simgear/scene/material/matlib.cxx
simgear/scene/material/matlib.hxx
simgear/scene/material/matmodel.cxx
simgear/scene/material/matmodel.hxx
simgear/scene/model/Makefile.am
simgear/scene/model/animation.cxx
simgear/scene/model/animation.hxx
simgear/scene/model/custtrans.hxx
simgear/scene/model/model.cxx simgear/scene/model/model.hxx
simgear/scene/model/modellib.cxx
simgear/scene/model/modellib.hxx
simgear/scene/model/personality.cxx
simgear/scene/model/personality.hxx
simgear/scene/model/placement.cxx
simgear/scene/model/placement.hxx
simgear/scene/model/placementtrans.cxx
simgear/scene/model/placementtrans.hxx
simgear/scene/model/shadanim.cxx
simgear/scene/model/shadowvolume.hxx
simgear/scene/sky/cloud.cxx simgear/scene/sky/cloud.hxx
simgear/scene/sky/cloudfield.cxx simgear/scene/sky/dome.cxx
simgear/scene/sky/dome.hxx simgear/scene/sky/moon.cxx
simgear/scene/sky/moon.hxx simgear/scene/sky/newcloud.cxx
simgear/scene/sky/oursun.cxx simgear/scene/sky/oursun.hxx
simgear/scene/sky/sky.cxx simgear/scene/sky/sky.hxx
simgear/scene/sky/sphere.cxx simgear/scene/sky/sphere.hxx
simgear/scene/sky/stars.cxx simgear/scene/sky/stars.hxx
simgear/scene/tgdb/apt_signs.cxx
simgear/scene/tgdb/apt_signs.hxx simgear/scene/tgdb/leaf.cxx
simgear/scene/tgdb/leaf.hxx simgear/scene/tgdb/obj.cxx
simgear/scene/tgdb/obj.hxx simgear/scene/tgdb/pt_lights.cxx
simgear/scene/tgdb/pt_lights.hxx
simgear/scene/tgdb/userdata.cxx
simgear/scene/tgdb/userdata.hxx simgear/scene/tgdb/vasi.hxx
simgear/screen/jpgfactory.cxx simgear/screen/tr.cxx
simgear/structure/Makefile.am simgear/threads/SGThread.hxx
Added Files:
simgear/scene/util/Makefile.am
simgear/scene/util/SGDebugDrawCallback.hxx
simgear/scene/util/SGNodeMasks.hxx
simgear/scene/util/SGStateAttributeVisitor.hxx
simgear/scene/util/SGTextureStateAttributeVisitor.hxx
simgear/scene/util/SGUpdateVisitor.hxx
Removed Files:
simgear/screen/ssgEntityArray.cxx
simgear/screen/ssgEntityArray.hxx
simgear/structure/ssgSharedPtr.hxx
Big BLOB on the way to OSG.
curt [Sat, 28 Oct 2006 22:12:48 +0000 (22:12 +0000)]
wim van hoydonck:
Updated to World Magnetic Model 2005.
mfranz [Tue, 24 Oct 2006 20:28:08 +0000 (20:28 +0000)]
- don't need a guarded pointer here
- shorten variable, fix indentation
mfranz [Tue, 24 Oct 2006 19:44:38 +0000 (19:44 +0000)]
allow to switch on/off at runtime a whole imported <model> via <condition>:
<model>
<path>some/model.xml</path>
<condition>
<property>model/switch</property>
</condition>
</model>
Of course, one could add "select" animations for all <object-name> in the
<model>, but this is tedious and can hardly be done e.g. for all
objects in all instruments in $FG_ROOT/Aircraft/Instruments-3d/ etc.
The feature will be used in the bo105, so that civilian variants can
have a HSI instrument, where military variants have a TACAN etc.
durk [Sun, 22 Oct 2006 19:42:17 +0000 (19:42 +0000)]
Compile time fixes needed to build SimGear on recent cygwin versions.
durk [Sun, 22 Oct 2006 19:41:16 +0000 (19:41 +0000)]
Make configuration script compatible with "home-built" openal libraries
on cygwin.
mfranz [Sun, 22 Oct 2006 13:08:09 +0000 (13:08 +0000)]
- // This will come back and remove
- // the current item each time. Is
- // that OK?
No, it is not OK. This messes up the vector and confuses the iterator.
And it leads to crashes. Better read the vector in reverse order.
curt [Thu, 19 Oct 2006 03:36:22 +0000 (03:36 +0000)]
Step #1 towards abandoning the original point lighting scheme in favor of
sprite based lighting.
frohlich [Sat, 30 Sep 2006 07:11:16 +0000 (07:11 +0000)]
Modified Files:
SimGear.vcproj: Import changes from Olaf
durk [Sat, 30 Sep 2006 05:11:25 +0000 (05:11 +0000)]
Memory leak fix.
fredb [Wed, 27 Sep 2006 20:16:32 +0000 (20:16 +0000)]
Win32 only : Don't alloc a console when it is not needed
fredb [Sat, 2 Sep 2006 11:21:22 +0000 (11:21 +0000)]
Add a simple program to benchmark SGTimeStamp::stamp()
fredb [Thu, 31 Aug 2006 18:26:45 +0000 (18:26 +0000)]
Make the SGTimeStamp behave under Windows just like for other environments
fredb [Mon, 28 Aug 2006 19:38:23 +0000 (19:38 +0000)]
Use getNodeValue as initially planned
ehofman [Mon, 28 Aug 2006 18:53:36 +0000 (18:53 +0000)]
MispPro requires an explicit declaration.
curt [Sat, 26 Aug 2006 14:02:17 +0000 (14:02 +0000)]
Frederic Bouvier:
Make line feed behavior consistent between linux/windows.
fredb [Fri, 25 Aug 2006 19:25:56 +0000 (19:25 +0000)]
Better encapsulation for personality
mfranz [Thu, 24 Aug 2006 23:03:52 +0000 (23:03 +0000)]
compile (gcc 4.1.0)
("In member function 'T SGPersonalityParameter<T>::shuffle()':
28: error: there are no arguments to 'sg_random' that depend on a template
parameter, so a declaration of 'sg_random' must be available")
fredb [Thu, 24 Aug 2006 22:46:40 +0000 (22:46 +0000)]
Reorganize personality parameters and add personality to translate, blend and scale animations
frohlich [Tue, 8 Aug 2006 05:05:09 +0000 (05:05 +0000)]
Remove duplicate linker line in the resulting Makefile
fredb [Sun, 30 Jul 2006 21:02:36 +0000 (21:02 +0000)]
Win32 fix
frohlich [Sun, 30 Jul 2006 07:48:06 +0000 (07:48 +0000)]
Remove fastmath funktions like discussed on the list.
Add a new header with forward declarations of the SGMath stuff.
frohlich [Thu, 27 Jul 2006 16:34:32 +0000 (16:34 +0000)]
Clean up scenery center handling.
durk [Thu, 27 Jul 2006 05:15:20 +0000 (05:15 +0000)]
Mark's dynamic sun color changes.
curt [Fri, 21 Jul 2006 15:45:01 +0000 (15:45 +0000)]
Additional functionality for animated point lights (i.e. approach light
rabbits, REIL, VASI/PAPI, etc.)
This allows the calling layer (i.e. FlightGear) better control over the use
of OpenGL point drawing extensions.
curt [Wed, 12 Jul 2006 15:08:00 +0000 (15:08 +0000)]
Updated dist content.
mfranz [Wed, 5 Jul 2006 09:31:36 +0000 (09:31 +0000)]
remove the last redundant "delete" check in all of fgfs/sg (except JSBSim)
andy [Wed, 5 Jul 2006 02:52:06 +0000 (02:52 +0000)]
The previous update (and, embarassingly, the "nasal 1.0" release I
announced on Freshmeat.net) was broken. This is the proper
break/continue fix.
andy [Mon, 3 Jul 2006 05:13:27 +0000 (05:13 +0000)]
Been hacking at Nasal recently:
Fix bug with break/continue inside of a foreach or forindex: Don't pop
the vector/index inside OP_EACH, do it at the end of the loop.
In the process, discovered and fixed a scary corruption issue with
continue; it never really worked right, although simple usage was
likely to get away without crashing. Both the continue's OP_BREAK and
the cleanup code at the end of a loop would pop the "mark" stack,
leading to an underflow. Introduced an OP_CONTINUE which adjusts
stack but doesn't change markTop
Re-inline the PUSH macro. This thing is called all over the place
from the inner loop. If the problem is intra-expression side effects,
then just use another expression in the macro.
Return an empty vector when requesting zero-length subvec, not nil
Have call() return the call stack in the error vector; see docs on
plausible.org/nasal or ask Andy about this feature.
Default closure()'s level argument to zero, not nil
Add an optional "file name" argument to compile()
mfranz [Sat, 1 Jul 2006 20:06:05 +0000 (20:06 +0000)]
actually query the <condition> that is already set up in SGShaderAnimation
mfranz [Sun, 25 Jun 2006 11:55:56 +0000 (11:55 +0000)]
add knots <-> feet-per-second conversion constants
fredb [Sat, 17 Jun 2006 22:02:32 +0000 (22:02 +0000)]
Compile again on Win32 platforms
frohlich [Sat, 17 Jun 2006 16:04:28 +0000 (16:04 +0000)]
Make at least the header aliasing safe.
frohlich [Sat, 17 Jun 2006 16:04:05 +0000 (16:04 +0000)]
Make it compile with gcc-3.3.6
fredb [Fri, 16 Jun 2006 10:03:38 +0000 (10:03 +0000)]
Compile again on Win32 platforms
mfranz [Fri, 16 Jun 2006 09:29:54 +0000 (09:29 +0000)]
add float_to_int() rounding function from Cockpit/hud_opts.hxx. The original
file said "(c) FlightGear Project" and "probably written by Norman Vine".
frohlich [Thu, 15 Jun 2006 19:13:24 +0000 (19:13 +0000)]
Add dist and distSqr functions
frohlich [Thu, 15 Jun 2006 19:12:57 +0000 (19:12 +0000)]
Remove unused extern decls
frohlich [Thu, 15 Jun 2006 08:52:21 +0000 (08:52 +0000)]
Remove deprecated, now unused functions.
frohlich [Thu, 15 Jun 2006 08:27:31 +0000 (08:27 +0000)]
Small cleanups to the SGGeo[dc] classes, provide more hooks to use them directly
frohlich [Thu, 15 Jun 2006 06:14:46 +0000 (06:14 +0000)]
Use function argument in va_start instead of local variable.
frohlich [Sun, 11 Jun 2006 13:59:59 +0000 (13:59 +0000)]
Remove now unused function
frohlich [Sun, 11 Jun 2006 13:30:59 +0000 (13:30 +0000)]
Modified Files:
simgear/scene/material/mat.cxx simgear/scene/material/mat.hxx
simgear/scene/material/matlib.cxx
simgear/scene/material/matlib.hxx simgear/scene/tgdb/leaf.cxx
simgear/scene/tgdb/obj.cxx
Attach userdata to groundtile scenegraph leafs that contains
a SGMaterial reference to the material of that leaf.
Add (physical) material properties to the material definitions.
Plug a memory leak with GlyphSigns.
frohlich [Thu, 8 Jun 2006 05:54:23 +0000 (05:54 +0000)]
Preliminary material lookup hooks - still unoptimized.
mfranz [Wed, 24 May 2006 10:16:09 +0000 (10:16 +0000)]
whoops, sorry (Yes, it *was* tested, but then I made another "trivial"
change and ...)
mfranz [Wed, 24 May 2006 09:37:44 +0000 (09:37 +0000)]
if we are going to die we better tell all our listeners
mfranz [Mon, 8 May 2006 11:31:16 +0000 (11:31 +0000)]
add optional position argument to SGRoute::add_waypoint(). Default is -1,
which appends the WP like it used to. Valid vector indices insert the WP
at this position.
fredb [Thu, 4 May 2006 05:58:59 +0000 (05:58 +0000)]
Mac fix
fredb [Sat, 29 Apr 2006 08:09:51 +0000 (08:09 +0000)]
Fix the initial texture path problem. Loaders are setting the one given to ssgLoad as the default one behind our back :-(
fredb [Fri, 28 Apr 2006 18:05:46 +0000 (18:05 +0000)]
Redefine the default PLIB loader behavior : don't clear the texture cache after every model load
mfranz [Fri, 28 Apr 2006 15:43:13 +0000 (15:43 +0000)]
add method to delete any waypoint (last waypoint if n is out of range)
frohlich [Tue, 25 Apr 2006 18:47:37 +0000 (18:47 +0000)]
Pigeons remaining fix for the soundmanager crashes.
mfranz [Sat, 22 Apr 2006 13:41:06 +0000 (13:41 +0000)]
thanks to Erik's texture map I can now drop empty.rgb altogether and just
specify the same texture in the "foo.lighted" and "foo.unlighted" material
entry. This also allows to drop the state cloning and thereby solves the
most urgent apt_signs.cxx TODO. :-)
ehofman [Sat, 22 Apr 2006 09:38:14 +0000 (09:38 +0000)]
Add a texture cache mechanism. Fortunately this oly seems affective for empty.rgb ...
mfranz [Thu, 20 Apr 2006 17:46:40 +0000 (17:46 +0000)]
don't allow new command name to overwrite material name
mfranz [Thu, 20 Apr 2006 16:06:00 +0000 (16:06 +0000)]
- don't use hard-coded emission values for unlighted signs, but load both
states from material.xml (separate <material> entries for now)
- clone state less often: not once per sign element, but once per material
switch (TODO: clone only once per material)
mfranz [Thu, 20 Apr 2006 15:20:40 +0000 (15:20 +0000)]
fix "unknown.rgb" path (the wrong path was the reason why we always only
got plib's lowres red-white chequer-board pattern along with an error
message, and not ours ... which is much prettier, but also bigger.
(Should we downscale it?)
mfranz [Mon, 17 Apr 2006 11:29:01 +0000 (11:29 +0000)]
make headers include headers they depend on, don't rely on the c(xx)
file to do that. (This is a requirement for header precompiling.)
mfranz [Fri, 14 Apr 2006 14:50:08 +0000 (14:50 +0000)]
rename OBJECT_TAXI_SIGN to OBJECT_SIGN. This isn't about taxi signs any
more, but all sorts of signs. Now is the best time to get rid of a
misleading name.
mfranz [Wed, 12 Apr 2006 20:27:38 +0000 (20:27 +0000)]
add <condition> support to textranslate & texrotate animation
mfranz [Wed, 12 Apr 2006 12:13:03 +0000 (12:13 +0000)]
set sign orientation such, that when the sign heading=0, one looks straight
on the sign face when looking North
mfranz [Tue, 11 Apr 2006 23:04:24 +0000 (23:04 +0000)]
lower signs
mfranz [Tue, 11 Apr 2006 21:32:15 +0000 (21:32 +0000)]
add minimalistic backside to signs as a temporary solution
mfranz [Tue, 11 Apr 2006 17:34:17 +0000 (17:34 +0000)]
re-add hard-coded vertical distance. The coordinates should be surface
points and not add this distance, which depends on the sign housing/hardware,
after all.
mfranz [Tue, 11 Apr 2006 15:57:08 +0000 (15:57 +0000)]
- commands do now have to start with @
- add commands @size, @material, @light
- make "BlackSign" texture default
- make @B, @R, @L, @Y open close their frames automatically (this can be
avoided by setting the @material manually)
- add number variants for those 4 sign commands: @Y2, @B5, etc (according
to the spec; defaulting to the respective biggest panel size, i.e. @B = @B3)
(detailed description will be added to $FG_ROOT/Docs/)
mfranz [Mon, 10 Apr 2006 16:36:52 +0000 (16:36 +0000)]
remove obsolete files (on request by Christian Mayer, who has introduced them):
- they are not used anywhere in sg/fgfs
- and are very clearly *not* GPL compatible!
andy [Mon, 10 Apr 2006 16:21:17 +0000 (16:21 +0000)]
Manabu Nishiyama (non-FlightGear Nasal user) discovered an
uninitialized data bug in naHash_cget(). When the hashcode field of
naStr was introduced, I forgot to set it in this function, which
creates a temporary naStr on the stack.
mfranz [Mon, 10 Apr 2006 15:32:55 +0000 (15:32 +0000)]
drop xscale member again, and use xsize/ysize instead. (One interface
element less to confuse people.)
mfranz [Sun, 9 Apr 2006 19:51:00 +0000 (19:51 +0000)]
rewrite of OBJECT_TAXI_SIGN code. The name is a bit misleading, as this
type can also create runway signs. (/me thinks about changing that ...)
mfranz [Sun, 9 Apr 2006 19:21:13 +0000 (19:21 +0000)]
support for font textures. They are normal (but rather lenghty) <material>,
but contain <glyph> entries with <name>, <left> and <right>. The latter two
describe where in the texture a letter or symbol begins and where it ends.
(range 0-1). <xscale> defines a horizontal scaling factor.
curt [Wed, 5 Apr 2006 18:42:45 +0000 (18:42 +0000)]
v0.3.10 changes.
mfranz [Thu, 30 Mar 2006 14:13:22 +0000 (14:13 +0000)]
protect ssg pointers to avoid occasional crashes (of course it would be
nicer if the Occluder would always get removed before its model branch,
but that's not easily enforcable)
curt [Mon, 27 Mar 2006 18:48:36 +0000 (18:48 +0000)]
v0.3.10-pre3 updates.
curt [Mon, 27 Mar 2006 16:32:15 +0000 (16:32 +0000)]
Olaf Flebbe:
Unfortunatly the original SimGear Project I submitted contained local
changes which I didn't intend to submit. Please use this file instead...
mfranz [Sun, 26 Mar 2006 08:22:26 +0000 (08:22 +0000)]
If the author of this message isn't alerted enough to *fix* this, then I'm
sure the users won't do that either. This is regularly triggerd and leads
to meaningless error reports.
mfranz [Fri, 24 Mar 2006 23:24:20 +0000 (23:24 +0000)]
more guarded pointers (we are still getting spurious crashes on exit because
of that)
curt [Fri, 24 Mar 2006 19:06:05 +0000 (19:06 +0000)]
Initial revision.
mfranz [Thu, 23 Mar 2006 22:05:22 +0000 (22:05 +0000)]
remove so that complete dir can be dropped
curt [Thu, 23 Mar 2006 21:59:59 +0000 (21:59 +0000)]
Updates to remove unneeded and old version of zlib source.
curt [Thu, 23 Mar 2006 21:52:03 +0000 (21:52 +0000)]
Remove old depricated files. There is a much newer version of zlib
available and just about every unix-based platform already comes with this.
curt [Thu, 23 Mar 2006 16:37:35 +0000 (16:37 +0000)]
v0.3.10-pre2 updates.
mfranz [Thu, 23 Mar 2006 15:39:00 +0000 (15:39 +0000)]
Vassilii KHACHATUROV: rain fix, cleanup, read formerly hard-coded values
from provided node
"* minor redundant gl call in DrawCone2 optimized away (twice per frame)
* corrected the glRotatef() order in drawRain even further (a less
obvious mistake than before, which is noticed by looking skywards and wiggling
the mouse in the view direction change mode)
* all the "magic numbers" used in the rain rendering code have been
provided a default (based on the old hardcoded value) in a form of a
define, and a meaningfully named static member in SGEnviro"
mfranz [Wed, 22 Mar 2006 16:02:55 +0000 (16:02 +0000)]
Vassilii KHACHATUROV: fix typos, add/fix comments, change variable names
andy [Tue, 21 Mar 2006 23:12:30 +0000 (23:12 +0000)]
Oops, implement the previously-mentioned fix without breaking support
for omitting a length argument to mean "the rest of the vector".
andy [Tue, 21 Mar 2006 22:22:47 +0000 (22:22 +0000)]
The original code (rather oddly) interprets a length of zero in
subvec() to mean "the whole vector". Melchior showed a use case
(removal of the first element from a vector) where getting a
zero-length subvector is actually desired. And since I can't come up
with a good reason for why the "feature" was there in the first place,
out it goes...
andy [Tue, 21 Mar 2006 21:57:00 +0000 (21:57 +0000)]
Melchior discovered that cmp() was just wrong, failing to actually
inspect the string pointers. It also failed to properly sort strings
where one is a prefix of the other. It looks to me like I just never
finished this, and it ended up in CVS because it just happened to
compile...
curt [Mon, 20 Mar 2006 19:22:20 +0000 (19:22 +0000)]
Updates for v0.3.10-pre1.
mfranz [Fri, 17 Mar 2006 19:01:52 +0000 (19:01 +0000)]
- better error message when submodel loading failed
- use alignmainmodel node in callback (not used anywhere yet)
andy [Thu, 16 Mar 2006 18:01:56 +0000 (18:01 +0000)]
The handle gets nulled out if the user has closed the file; don't pass that
null to fclose() in a garbage collection destructor too...
andy [Wed, 15 Mar 2006 19:42:37 +0000 (19:42 +0000)]
Fix broken checkin in iolib.c. Also add the 'bits' library, which has a buf()
function needed to make convenient use of io.read().