607987def5Remove fastmath funktions like discussed on the list. Add a new header with forward declarations of the SGMath stuff.
frohlich
2006-07-30 07:48:06 +00:00
397ec62180Clean up scenery center handling.
frohlich
2006-07-27 16:34:32 +00:00
9315210fbeMark's dynamic sun color changes.
durk
2006-07-27 05:15:20 +00:00
5127990a43Additional functionality for animated point lights (i.e. approach light rabbits, REIL, VASI/PAPI, etc.)
curt
2006-07-21 15:45:01 +00:00
a0412d026cremove the last redundant "delete" check in all of fgfs/sg (except JSBSim)
mfranz
2006-07-05 09:31:36 +00:00
7d2134c488The previous update (and, embarassingly, the "nasal 1.0" release I announced on Freshmeat.net) was broken. This is the proper break/continue fix.
andy
2006-07-05 02:52:06 +00:00
d894f52b97Been hacking at Nasal recently:
andy
2006-07-03 05:13:27 +00:00
735f475c24actually query the <condition> that is already set up in SGShaderAnimation
mfranz
2006-07-01 20:06:05 +00:00
49fe06498aCompile again on Win32 platforms
fredb
2006-06-17 22:02:32 +00:00
bc95ec8084Make at least the header aliasing safe.
frohlich
2006-06-17 16:04:28 +00:00
f79906bf16Make it compile with gcc-3.3.6
frohlich
2006-06-17 16:04:05 +00:00
b3262fcb80Compile again on Win32 platforms
fredb
2006-06-16 10:03:38 +00:00
52b8f924aaadd float_to_int() rounding function from Cockpit/hud_opts.hxx. The original file said "(c) FlightGear Project" and "probably written by Norman Vine".
mfranz
2006-06-16 09:29:54 +00:00
52f57160aaAdd dist and distSqr functions
frohlich
2006-06-15 19:13:24 +00:00
899623f71bRemove deprecated, now unused functions.
frohlich
2006-06-15 08:52:21 +00:00
c5d677ac7bSmall cleanups to the SGGeo[dc] classes, provide more hooks to use them directly
frohlich
2006-06-15 08:27:31 +00:00
c75270a9fcUse function argument in va_start instead of local variable.
frohlich
2006-06-15 06:14:46 +00:00
1588a379ebRemove now unused function
frohlich
2006-06-11 13:59:59 +00:00
72d2075828Modified 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
2006-06-11 13:30:59 +00:00
e99c682637Preliminary material lookup hooks - still unoptimized.
frohlich
2006-06-08 05:54:23 +00:00
c815f70831whoops, sorry (Yes, it *was* tested, but then I made another "trivial" change and ...)
mfranz
2006-05-24 10:16:09 +00:00
0da50eaa79if we are going to die we better tell all our listeners
mfranz
2006-05-24 09:37:44 +00:00
b0af84a549add 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.
mfranz
2006-05-08 11:31:16 +00:00
f664f7a201Fix the initial texture path problem. Loaders are setting the one given to ssgLoad as the default one behind our back :-(
fredb
2006-04-29 08:09:51 +00:00
f72b3882c3Redefine the default PLIB loader behavior : don't clear the texture cache after every model load
fredb
2006-04-28 18:05:46 +00:00
ea47a2973cadd method to delete any waypoint (last waypoint if n is out of range)
mfranz
2006-04-28 15:43:13 +00:00
04be9ca670Pigeons remaining fix for the soundmanager crashes.
frohlich
2006-04-25 18:47:37 +00:00
6f0baf6ca9thanks 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. :-)
mfranz
2006-04-22 13:41:06 +00:00
1f5ec6b8d5Add a texture cache mechanism. Fortunately this oly seems affective for empty.rgb ...
ehofman
2006-04-22 09:38:14 +00:00
a2a91520aadon't allow new command name to overwrite material name
mfranz
2006-04-20 17:46:40 +00:00
fd7b5d3de7- 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
2006-04-20 16:06:00 +00:00
30ea844c43fix "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
2006-04-20 15:20:40 +00:00
efac53b121make 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
2006-04-17 11:29:01 +00:00
73c0ef59c1rename 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
2006-04-14 14:50:08 +00:00
7e65ab2d3badd <condition> support to textranslate & texrotate animation
mfranz
2006-04-12 20:27:38 +00:00
fec769f632set sign orientation such, that when the sign heading=0, one looks straight on the sign face when looking North
mfranz
2006-04-12 12:13:03 +00:00
9d9610a882add minimalistic backside to signs as a temporary solution
mfranz
2006-04-11 21:32:15 +00:00
1fc81f4b66re-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
2006-04-11 17:34:17 +00:00
4f0b1e847c- 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
2006-04-11 15:57:08 +00:00
9567ac32f2remove 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!
mfranz
2006-04-10 16:36:52 +00:00
8dd9cfa2a6Manabu 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.
andy
2006-04-10 16:21:17 +00:00
dbda8ef893drop xscale member again, and use xsize/ysize instead. (One interface element less to confuse people.)
mfranz
2006-04-10 15:32:55 +00:00
cd143c15d5rewrite 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
2006-04-09 19:51:00 +00:00
509a388cccsupport 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.
mfranz
2006-04-09 19:21:13 +00:00
010a44f831protect 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)
mfranz
2006-03-30 14:13:22 +00:00
11ac97cd09If 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
2006-03-26 08:22:26 +00:00
61f6565321more guarded pointers (we are still getting spurious crashes on exit because of that)
mfranz
2006-03-24 23:24:20 +00:00
143ce6fcd5remove so that complete dir can be dropped
mfranz
2006-03-23 22:05:22 +00:00
e264c6ad2eUpdates to remove unneeded and old version of zlib source.
curt
2006-03-23 21:59:59 +00:00
036b6785f1Remove old depricated files. There is a much newer version of zlib available and just about every unix-based platform already comes with this.
curt
2006-03-23 21:52:03 +00:00
6b056e915eOops, implement the previously-mentioned fix without breaking support for omitting a length argument to mean "the rest of the vector".
andy
2006-03-21 23:12:30 +00:00
9d6c0dc580The 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
2006-03-21 22:22:47 +00:00
6e973e07f4Melchior 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...
andy
2006-03-21 21:57:00 +00:00
c8098b9eacUpdates for v0.3.10-pre1.
curt
2006-03-20 19:22:20 +00:00
ed20ce388a- better error message when submodel loading failed - use alignmainmodel node in callback (not used anywhere yet)
mfranz
2006-03-17 19:01:52 +00:00
33e01e431dThe 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
2006-03-16 18:01:56 +00:00
7d631e4959Fix broken checkin in iolib.c. Also add the 'bits' library, which has a buf() function needed to make convenient use of io.read().
andy
2006-03-15 19:42:37 +00:00
29eb566448Melchior found the first bug -- report EOF as nil in readln().
andy
2006-03-15 19:35:30 +00:00
a770d2a972Add the Nasal I/O library so Melchior can play with it. Not enabled currently (see NasalSys.cxx in the flightgear CVS)
andy
2006-03-15 18:09:50 +00:00
f96f083bb5close zone.tab file after having read all entries
mfranz
2006-03-14 12:58:28 +00:00
2e078aff7dprevent animations from losing nodes, because other processes removed them (We are currently getting a lot of aborts in the condition code when running MP. I don't expect this to fix it, but a bug is a bug.)
mfranz
2006-03-14 10:38:06 +00:00
bd1f192dc4Better use a node that is very clearly not used by other services (e.g. animations). The data class doesn't mind.
mfranz
2006-03-12 18:56:48 +00:00
b62f241051activate model load/unload callback again. It turned out *not* to be the cause for the MP crashes -- the same crashes did still occur without it.
mfranz
2006-03-12 10:09:34 +00:00
95d1ac354eMac OS X fixes from Ima Sudonim.
ehofman
2006-03-11 22:20:19 +00:00
54728f5d57commenting out Nasal in scenery models for now. This could be responsible for an MP/AI crash. Still investigating.
mfranz
2006-03-10 22:58:24 +00:00
359a8c4a81model.[ch]xx: add abstract class SGModelData. If a pointer to such a class is handed over to sgLoad3DModel, then its modelLoaded() method is called with path, property node and branch. And then it's added to the scene graph so that it's destroyed when the model branch is removed from the graph.
mfranz
2006-03-09 09:03:57 +00:00
dcb95d131b- new FSF addresses - coplied license headers from h(xx) files to respective c(xx) files - removed trailing spaces - fixe $Id$ - fixed typos
mfranz
2006-03-08 18:16:08 +00:00
f4e37ba7c0Ignore generated binaries.
david
2006-03-04 13:27:11 +00:00