Re: [Flightgear-devel] Further 3D Clouds updates
Hi Stuart, I cheched your patch in but I still have the checkerboard : http://frbouvi.free.fr/flightsim/fgfs_clouds_checker.jpg but only when the weather scenario is set to none. -Fred -- Frédéric Bouvier http://my.fotolia.com/frfoto/ Photo gallery - album photo http://fgsd.sourceforge.net/ FlightGear Scenery Designer - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Further 3D Clouds updates
Stuart Buchanan wrote: > Vivian Meazza wrote: > > > And I have yet to see any 3d clouds. Any clues on where I should be looking > > (yes the box is checked :-)) > > Something has changed in the environment manager which means that clouds > generateion is now inconsistent. I'm still tracking it down, as my recent > changes shouldn't have affected this. Well, the cause was a bug in my code, but it didn't expose itself until we moved to multiple cameras. The attached patch fixes the problem. I've also put in a new heuristic to improve the frame-rate. Clouds that are already sorted are likely to still be sorted in subsequent frames. Therefore I've put in a back-off mechanism for the bubble-sort pass. This should mean that if you stay completely stationary, once the clouds become sorted they will eventually only perform a bubble sort pass every 128 frames. It would be good to get a feel for how bad performance is with 3D clouds. At the moment I don't have a handle on whether performance is almost good enough, or completely unacceptable. I'd appreciate it if people would post their observations, providing details of their machine spec, graphics options and the frame-rate with and without 3D clouds - ideally with a description of the general load on the machine. Thanks, -Stuart clouds.diff.gz Description: GNU Zip compressed data - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] bugs on current fg cvs/osg
Markus Zojer wrote: > 2.)Using the YASim FDM, the prop consumables/fuel/total-fuel-lbs and > total-fuel-gals show about twice the fuel you have onboard. If it happens on an air to air refueling aircraft you might check how aar.nas is declared in the -set.xml file. The A-6E had the same symptom with some XML like this: fuel Aircraft/Generic/aar.nas that I replaced by a simpler: Aircraft/Generic/aar.nas ... and the count was good again. Hope it helps, Alexis - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Memory corruption in Nasal with MSVC
- "Andy Ross" a écrit : > Frederic Bouvier wrote: > > I get memory corruption caused by writing outside an malloc'ated > memory > > bloc. I tracked the problem down to the recsize() function ( in > hash.c ) > > computing a memory size that is not enough for subsequent > initialization > > in resize() > > Wow, good catch. This was also reported on the nasal list as a > difference > between optimized and non-optimized builds on 32 bit linux. I tracked > it > down as far as recsize() returning the wrong value, but then wrote it > off > as a compiler bug and didn't investigate further. I missed the > alignment > issue completely. > > Try the following patch, which will force the alignment but still > allow the > use of the (IMHO) clever trick to get the memory block size in a > single line: The patch you proposed doesn't solve the issue because void* has the same size than an int. As you want the data to be aligned on the size of a naRef, the modified patch below did the trick : --- simgear/nasal/hash.c26 Sep 2008 18:22:12 - 1.9 +++ simgear/nasal/hash.c25 Nov 2008 19:55:47 - @@ -96,9 +96,12 @@ static int recsize(int lgsz) { -HashRec hr; -hr.lgsz = lgsz; -return (int)((char*)&TAB(&hr)[POW2(lgsz+1)] - (char*)&hr); +/* Union with the naRef for alignment purposes, to guarantee + * that the dummy HashRec has the same alignment as the malloc + * block that will eventually contain the real one. */ +union { naRef align; HashRec hr; } u; +u.hr.lgsz = lgsz; +return (int)((char*)&TAB(&u.hr)[POW2(lgsz+1)] - (char*)&u.hr); } static HashRec* resize(struct naHash* hash) -Fred -- Frédéric Bouvier http://my.fotolia.com/frfoto/ Photo gallery - album photo http://fgsd.sourceforge.net/ FlightGear Scenery Designer - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] for model builders incredible new source of aviation photography from life magazine just released to public by google.
incredible new source of aviation photography from life magazine just released to public by google. http://images.google.com/images?q=Air+History+source:life also look for zeppelin and other key terms for incredible closeups and photos never before seen by the public dirigibles http://images.google.com/images?q=Dirigibles+source:life aircraft http://images.google.com/images?q=Aircraft+source:life I have seen things as far back as 1900 - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Memory corruption in Nasal with MSVC
Frederic Bouvier wrote: > I get memory corruption caused by writing outside an malloc'ated memory > bloc. I tracked the problem down to the recsize() function ( in hash.c ) > computing a memory size that is not enough for subsequent initialization > in resize() Wow, good catch. This was also reported on the nasal list as a difference between optimized and non-optimized builds on 32 bit linux. I tracked it down as far as recsize() returning the wrong value, but then wrote it off as a compiler bug and didn't investigate further. I missed the alignment issue completely. Try the following patch, which will force the alignment but still allow the use of the (IMHO) clever trick to get the memory block size in a single line: Index: hash.c === RCS file: /home/nasal-cvs/nasal/src/hash.c,v retrieving revision 1.51 diff -u -r1.51 hash.c --- hash.c 26 Sep 2008 17:53:29 - 1.51 +++ hash.c 25 Nov 2008 17:18:02 - @@ -96,9 +96,12 @@ static int recsize(int lgsz) { -HashRec hr; -hr.lgsz = lgsz; -return (int)((char*)&TAB(&hr)[POW2(lgsz+1)] - (char*)&hr); +/* Union with the pointer for alignment purposes, to guarantee + * that the dummy HashRec has the same alignment as the malloc + * block that will eventually contain the real one. */ +union { void* align; HashRec hr; } u; +u.hr.lgsz = lgsz; +return (int)((char*)&TAB(&u.hr)[POW2(lgsz+1)]) - (char*)&u.hr); } static HashRec* resize(struct naHash* hash) - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] bugs on current fg cvs/osg
* Melchior FRANZ -- Tuesday 25 November 2008: > BTW: the following patch fixed the white line for me. Bah. No, it doesn't. It just hid for a while and then came back in all it's ugliness. :-) m. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Fwd: Astrasim Expo Flight Simulation Shows 2009
Stuart Buchanan wrote: > > I suspect they may be expecting us to pay for space - the Sherburn event > is free > > to attend, and they've got to make money somehow. > > > > Unfortunately these are both probably a bit too far for me to travel. > However, if they > > were to run one in Scotland ;) > On Tue, Nov 25, 2008 at 7:48 AM, Jon Stockill wrote: > I've requested an exhibitor pack - will pass on the details when it > arrives. > I did explain to John Marshall (the originator of the invitation) that FlightGear is an open-source / volunteer project, we wouldn't have the funds to pay for an expensive booth, and that our developers pay travel and lodging costs out of their own pocket to attend these events. Curt. -- Curtis Olson: http://baron.flightgear.org/~curt/ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Fwd: Astrasim Expo Flight Simulation Shows 2009
On 25 Nov 2008, at 14:48, Jon Stockill wrote: > I've requested an exhibitor pack - will pass on the details when it > arrives. Thanks Jon. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Fwd: Astrasim Expo Flight Simulation Shows 2009
Stuart Buchanan wrote: > I suspect they may be expecting us to pay for space - the Sherburn event is > free > to attend, and they've got to make money somehow. > > Unfortunately these are both probably a bit too far for me to travel. > However, if they > were to run one in Scotland ;) I've requested an exhibitor pack - will pass on the details when it arrives. Jon - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] bugs on current fg cvs/osg
* Melchior FRANZ -- Tuesday 25 November 2008: > I'm "blessed" with an ugly white line where the two cameras > touch, so this was easy for me to verify. BTW: the following patch fixed the white line for me. (0.995 and 1.005 weren't enough). Tim has suggested that my graphics card might only use a 16bit z-buffer (although the FX5500 has 24bit modes). --- a/src/Main/ViewPartitionNode.cxx +++ b/src/Main/ViewPartitionNode.cxx @@ -168,2 +168,2 @@ void ViewPartitionNode::makeNewProjMat(Matrixd& oldProj, double znear, -znear *= 0.999; -zfar *= 1.001; +znear *= 0.99; +zfar *= 1.01; m. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] bugs on current fg cvs/osg
* Frederic Bouvier -- Tuesday 25 November 2008: > Maybe the pick animation is only looking at the scenegraph > displayed by the nearest camera. Yes, scenery clicks only work in the near camera frustum now. I'm "blessed" with an ugly white line where the two cameras touch, so this was easy for me to verify. I've reported both bugs to Tim a few days ago. :-) m. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] bugs on current fg cvs/osg
- "Markus Zojer" a écrit : > Hi all! > > I don't know if you are aware of the 2 described bugs so I drop a > short note. > > I am using latest sg/fg cvs with OSG 2.7.5(svn) and boost 1.34.1. > > 1.) Mouseclicks on terrain only register in the vicinity of the > aircraft (lets say 30ft), this narrows eg. the object placement > capabilities of the ufo. (sim/input/clicks only gets updated within > that limited range) Maybe the pick animation is only looking at the scenegraph displayed by the nearest camera. As I understand the last changes made by Tim, the frustum is now divided by two in the depth ( z ) direction. One camera first display objects farther than the intermediate clip plane, set at about 30m, and then another camera display the cockpit and nearest objects. The Z near problem I reported lately seemed to be caused by only one camera displaying the scene. -Fred -- Frédéric Bouvier http://my.fotolia.com/frfoto/ Photo gallery - album photo http://fgsd.sourceforge.net/ FlightGear Scenery Designer - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] bugs on current fg cvs/osg
Hi all! I don't know if you are aware of the 2 described bugs so I drop a short note. I am using latest sg/fg cvs with OSG 2.7.5(svn) and boost 1.34.1. 1.) Mouseclicks on terrain only register in the vicinity of the aircraft (lets say 30ft), this narrows eg. the object placement capabilities of the ufo. (sim/input/clicks only gets updated within that limited range) 2.)Using the YASim FDM, the prop consumables/fuel/total-fuel-lbs and total-fuel-gals show about twice the fuel you have onboard. Thanks, Markus - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] 3d-clouds- Texture updates
Heiko Schulz wrote: > To: FGFS Developers Mail List > Sent: Monday, 24 November, 2008 23:24:52 > Subject: [Flightgear-devel] 3d-clouds- Texture updates > > Hi, > > There is a lot of improvement left- some days ago I used for testing the > cloudstextures from X-pLane, and they worked better. > So we just need better textures. > > So I did my try and finished today the cl-cumulus textures, and added some > first > nimbustratus and stratos-textures. > > -Well with the last one I'm not satisfied- and there is still the issue with > the > ugly borders. > But they only appear on near clouds- not on far distance clouds. Maybe a > hint... I've still to work on that issue... > -I still need to shape the clouds- If I had knowledge about using Phython I > would make a script for Blender > > Here some pics: > http://www.flightgear.org/forums/download/file.php?id=379 > http://www.flightgear.org/forums/download/file.php?id=378 > http://www.flightgear.org/forums/download/file.php?id=377 Looks good. Thanks for your work on this. > I didn't use the latest snapshots with the improvements, but there should be > not > much change. I don't expect to change the XML format or the cloud modeling from now. Mainly I'll be bug-fixing and making performance improvement. -Stuart - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Fwd: Astrasim Expo Flight Simulation Shows 2009
James Turner wrote: > On 24 Nov 2008, at 20:30, Curtis Olson wrote: > > > I received this email today and am forwarding it to our devel list > > so all our UK based developers can see. > > Assuming the packs are free, worth considering. We have enough people > in the UK (or close to it). Depends if they're offering free space or > paid space, however. I suspect they may be expecting us to pay for space - the Sherburn event is free to attend, and they've got to make money somehow. Unfortunately these are both probably a bit too far for me to travel. However, if they were to run one in Scotland ;) -Stuart - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Further 3D Clouds updates
Vivian Meazza wrote: > I've just applied he latest Sg patch on Win XP/msvc9; builds without error. > I still get: > > Warning: detected OpenGL error 'invalid value' after RenderBin::draw(,) > RenderStage::drawInner(,) FBO status= 0x8cd5 Presumably that is the one that Fred committed 24/11/2008 20:26 ? That really should have fixed the problem, though the "FBO status" is a different error to what I was seeing. Have you tried rebooting the machine - it could be that the graphics card has cached the old shader. I saw something similar a while back when I was regularly changing the shader code. > And I have yet to see any 3d clouds. Any clues on where I should be looking > (yes the box is checked :-)) Something has changed in the environment manager which means that clouds generateion is now inconsistent. I'm still tracking it down, as my recent changes shouldn't have affected this. In the meantime you need to change the Weather Scenario, and/or change the coverage in the Cloud dialog. Sorry for the inconvenience. -Stuart - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel