Re: [Flightgear-devel] [Flightgear-commitlogs] FlightGear Base Package branch, master,
Flightgear-commitlogs wrote: The branch, master has been updated - Log - commit 7206a7aef7af552e216d09897eb3a70dac359525 Author: BARANGER Emmanuel Date: Thu May 24 02:50:36 2012 +0200 New plane : Heinkel He 111 Feels like I've seen this before ;-) Martin. -- Unix _IS_ user friendly - it's just selective about who its friends are ! -- -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Random Buildings - memory consumption
Hi, On Wednesday, May 23, 2012 10:37:00 Stuart Buchanan wrote: So - Does anyone have any bright ideas on what I can do to reduce the base memory occupancy? One option might be to not generate the basement if the terrain is level. - Could a fresh pair of eyes take a look at the obj.cxx, mat.cxx and SGBuildingBin.[ch]xx code to see if I've missed something obvious. I may be false since I really only spent *very* little time on that. But I believe you never free the content of the building bin list. That means the pointers stored in the list are gone, but the building bins - the pointees - are still alive. Greetings Mathias -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] No sound under Ubuntu 12.04
Hi all, I am trying to compile FG under Xubuntu 12.04 using Brisa's script (version 1.31). At first sight the compilation went fine, however sound is not working: when I run fgfs I get the following error and no sound: AL lib: oss.c:169: Could not open /dev/dsp: No such file or directory Error: Audio device not available, trying default AL lib: oss.c:169: Could not open /dev/dsp: No such file or directory Error: Default Audio device not available. (and indeed there is no /dev/dsp device on my machine). A closer look at the compilation log (http://www.mguillaud.net/fg/compilation_log_20120523.txt) reveals that PLIB fails to compile due to some incompatibility with the OSS interface (the compilation script does not stop, though). Then I tried to build OSG, Simgear and FGFS against the PLIB version from the Ubuntu repositories instead - same result. Compilation goes fine, but running fgfs with --show-sound-devices produces the same errors as above, and then: unknown provided by unknown No. Device What I find suspicious is that no sound devices at all are detected, although I believe I have ALSA and Pulseaudio properly installed (including -dev packages). Any clues about what is going on and how to further debug this ? Maxime -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Hawaii regional textures merge request
Okay, given yesterday's discussion, I don't know if there is still need to discuss further or not or if this should be merged or not, but I'm putting this up now as I'll be travelling next week and won't have any decent internet connection to rebase my local branch properly, so anyone can have a look. https://www.gitorious.org/fg/fgdata/merge_requests/154 This has still issues (I couldn't find a decent GPL tundra texture to get the desired effect, so I had to do one myself, but it still has some tiling problems and too little variation, and of course the transition of lush tropical to dry volcanic shrub cover is somewhere between Oahu and Molokai with the line determined by visibility (i.e. it probes aircraft position at tile loading time, and the tile is of course at the view edge). Still, I think it makes the Hawaii experience much nicer. Cheers, * Thorsten -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] No sound under Ubuntu 12.04
Salut Maxime, Maxime Guillaud wrote: AL lib: oss.c:169: Could not open /dev/dsp: No such file or directory Error: Audio device not available, trying default AL lib: oss.c:169: Could not open /dev/dsp: No such file or directory Error: Default Audio device not available. I didn't care about FG sound for years, but as far as my rusty memory serves, /dev/dsp is provided by some OSS compatibility layer on top of ALSA (or whatever you're using). Thus I'd suspect the respective kernel module is not available. Cheers, Martin. -- Unix _IS_ user friendly - it's just selective about who its friends are ! -- -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] No sound under Ubuntu 12.04
On Thu, 2012-05-24 at 08:06 +0200, Maxime Guillaud wrote: Hi all, I am trying to compile FG under Xubuntu 12.04 using Brisa's script (version 1.31). At first sight the compilation went fine, however sound is not working: when I run fgfs I get the following error and no sound: AL lib: oss.c:169: Could not open /dev/dsp: No such file or directory Error: Audio device not available, trying default AL lib: oss.c:169: Could not open /dev/dsp: No such file or directory Error: Default Audio device not available. /dev/dsp is Open Sound System specific. Ubuntu 12.04 does not faire well with Open Sound System (although I've got it working on my laptop, just for testing). But this is really OpenAL telling it can't find any output devices. You could try running openal-info but I expect it will also show no output devices in which case Linux does not seem to find your hardware somehow. Erik (and indeed there is no /dev/dsp device on my machine). A closer look at the compilation log (http://www.mguillaud.net/fg/compilation_log_20120523.txt) reveals that PLIB fails to compile due to some incompatibility with the OSS interface (the compilation script does not stop, though). FlightGear doesn't use the PLIB sl library anymore so that should not be a problem. Then I tried to build OSG, Simgear and FGFS against the PLIB version from the Ubuntu repositories instead - same result. Compilation goes fine, but running fgfs with --show-sound-devices produces the same errors as above, and then: unknown provided by unknown No. Device The line 'unknown provided by unknown' is suspicious, it seems to find a version of OpenAL but could not detect which one..? That should not happen. Erik -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] [SPAM] No sound under Ubuntu 12.04
On Thu, 24 May 2012, Maxime Guillaud wrote: What I find suspicious is that no sound devices at all are detected, although I believe I have ALSA and Pulseaudio properly installed (including -dev packages). Any clues about what is going on and how to further debug this ? You OpenAL intsallation might not be properly configured, check your /etc/openal/alsoft.conf and/or ~/.alsoftrc files. (If you have OpenAL-soft. The location in /etc may vary with the distribution.) On my system I have anders@sleipner:~$ cat ~/.alsoftrc format = AL_FORMAT_STEREO16 cf_level = 2 drivers = alsa [alsa] # ALSA backend stuff device = plug:dmix capture = plug:dsnoop [wave] file = /dev/null to make OpenAL use ALSA. Cheers, Anders -- --- Anders Gidenstam WWW: http://gitorious.org/anders-hangar http://www.gidenstam.org/FlightGear/ -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Total aero Moment != Total Moment from all Cm ???
I've checked the Total Aero Moment from /fdm/jsbsim/moments/m-aero-lbsft and compared with the summation of all Cm from aerodynamics section. Do these two properties have to be equal or not? (I think it should be equal). This happended with FG V.2.0.0 and 2.4.0 but never test with FGv.2.6.0 and with all aircraft. Please help me about this. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Random Buildings - memory consumption
Hi, I don't have any clue of the opengl and simgear based stuff, so I looked only at the struct Building and how to optimize that. In the attachment you can find 3 structs representing the data. The original is yours. 'small' is a very small optimization that doesn't require you to map floats to discrete values. The flags variable holds bool pitched and the building type. I assumed floors not to be bigger than 65k, so I reduced it to 16 bit ;). In 'aggressive' I replaced the floats which I think doesn't require the full 4 byte precision of a float. However the mapping from float-int int-float can take much time depending on the translation function you use. If normal float division/multiplication is too slow, you could write some functions to directly accessing the float (shifting the fraction depending on the exponent) (http://en.wikipedia.org/wiki/Single_precision ). However just ideas on that struct. Sizes in bytes: original: 44 small: 36 aggressive: 28 Regards, scosu On 23.05.2012 11:37, Stuart Buchanan wrote: Hi All, Emilian and Vivian have pointed out a problem with the random buildings - they gobble memory. I'd like to get some advice on whether there's any solution, and also to ask someone with more C++ knowledge than myself to take a look at the code and check I'm not doing something stupid. The specific problem scenario is starting a KLAX (Los Angeles) which is in the middle of a massive urban area. Using the default random building density, the tiles that are loaded initially when sitting on the runway generates ~ 340k random buildings. Each building consists of between 9 and 12 quads (we have a basement at the bottom to handle slopes, 4 walls, and a roof which may be pitched). In turn, each quad has 4 corners, each of which has a position (vec3), a normal (vec3) and a texture coordinate (vec2). So, the absolute minimum memory occupancy of the data for the random buildings is 340k * 10 * 4 * 8 = 108MB. On top of that will be some OSG overhead and the building texture itself. Once you start flying more tiles are loaded (presumably well before any old tiles are unloaded?) so memory occupancy rapidly increases. Flying east from KLAX is particularly bad. Using a higher building density makes the problem much worse, as you need 4X the number of buildings to get double the linear density. I ran out of memory on a 4GB system pretty quickly (and tile loading takes an age - something I need to look at again). So - Does anyone have any bright ideas on what I can do to reduce the base memory occupancy? One option might be to not generate the basement if the terrain is level. - Could a fresh pair of eyes take a look at the obj.cxx, mat.cxx and SGBuildingBin.[ch]xx code to see if I've missed something obvious. Thanks, -Stuart -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel #include stdint.h #include stdio.h enum BuildingType { SMALL = 0, MEDIUM, LARGE }; struct building_original { enum BuildingType type; float position[3]; float width; float depth; float height; int floors; float rotation; bool pitched; float radius; }; #define BUILDING_FLAGS_SMALL 0x01 #define BUILDING_FLAGS_MEDIUM 0x02 #define BUILDING_FLAGS_LARGE 0x04 #define BUILDING_FLAGS_PITCHED 0x08 struct building_small { uint16_t flags; uint16_t floors; float position[3]; float width; float depth; float height; float rotation; float radius; }; #pragma pack(push,1) struct building_aggressive { float position[3]; uint16_t width; uint16_t depth; uint16_t height; uint16_t rotation; uint16_t floors; uint8_t alignment_no_data; // to get better access times for variable radius uint8_t flags; uint32_t radius; }; #pragma pack(pop) int main(void) { printf(original: %lu\n, sizeof(struct building_original)); printf(small: %lu\n, sizeof(struct building_small)); printf(aggressive: %lu\n, sizeof(struct building_aggressive)); } -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net
Re: [Flightgear-devel] Total aero Moment != Total Moment from all Cm ???
On Thursday 24 May 2012 01:26:35 Burin Sungketkit wrote: I've checked the Total Aero Moment from /fdm/jsbsim/moments/m-aero-lbsft and compared with the summation of all Cm from aerodynamics section. Do these two properties have to be equal or not? (I think it should be equal). This happended with FG V.2.0.0 and 2.4.0 but never test with FGv.2.6.0 and with all aircraft. Please help me about this. They are equal only if, and only if, the center of gravity (CG) is equal to the aerodynamic reference (aerorp) point. Otherwise, when AeroRP != CG you get sum(aero/moments) + sum(aero forces)*(AeroRP-CG). In other words, the aerodynamic forces set up moments as well. Those are visible in the main property moments/m-aero-lbsft but aren't created by the moment axises in the FDM file so they don't appear in your Cm properties. Ron -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] XMLgrep
On Wed, 2012-05-23 at 16:53 +0200, James Turner wrote: On 23 May 2012, at 13:09, Erik Hofman e...@ehofman.com wrote: Hi, Year ago I added xmlgrep to the utils directory of flightgear and I have been developing it since. But I think it is time to remove it from the flightgear package and reference it tot the new location instead (http://www.adalin.com) Does anyone have any objections for me removing the current outdated version from git and just add a README with an URL? Sounds a good idea to me. Done. Erik -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] [SPAM] No sound under Ubuntu 12.04
Maxime, Can you please provide more details on how you solved this issue? I have also upgraded to Ubuntu 12.04 and my sound is gone in FG. I checked my home directory and I don't have any .alsoftrc directory there. IB Thanks to all for your answers and the hint about checking the OpenAL configuration - the problem was caused by a stale .alsoftrc config file that had persisted in my home directory across the OS upgrade. Sorry for the noise... You OpenAL intsallation might not be properly configured, check your /etc/openal/alsoft.conf and/or ~/.alsoftrc files. (If you have OpenAL-soft. The location in /etc may vary with the distribution.) On my system I have anders@sleipner:~$ cat ~/.alsoftrc format = AL_FORMAT_STEREO16 cf_level = 2 drivers = alsa [alsa] # ALSA backend stuff device = plug:dmix capture = plug:dsnoop [wave] file = /dev/null to make OpenAL use ALSA. Cheers, Anders -- sent from my armchair -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Hawaii regional textures merge request
Okay, given yesterday's discussion, I don't know if there is still need to discuss further or not I guess there is. Still, I think it makes the Hawaii experience much nicer. I'm sure about that, beacuse personally I follow all your contributions and it is really nice work, just to state. But ... there is no visible structure in textures folder yet for regional textures, is it ? Want a zurich_kreis_6_neighbourhood_grass.png as a 30mb .dds for my next merge request ? ;-) I miss some ideas and proposals from core developers here where this should go. Materials have a structure now, but textures and aircrafts still miss a naming convention and better structure (and some textures committed the last months just filled up the clonable repository, even they have been removed because this area is under heavy development). Cheers, Yves -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] [SPAM] No sound under Ubuntu 12.04
Hi Ignacio, My old .alsoftrc was forcing everything to be played through OSS (I guess that used to make sense back when OSS was the only reliable option, but now OSS seems to be broken). I simply deleted the .alsoftrc file from my home directory. Now OpenAL sees all the available options, and I get the following list when I run fgfs --show-sound-devices 0. PulseAudio Default 1. Flight Sound X Analog Stereo via PulseAudio 2. Built-in Audio Analog Stereo via PulseAudio 3. ALSA Default 4. HDA ATI SB [VT1708S Analog] (hw:0,0) via ALSA 5. HDA ATI SB [VT1708S Digital] (hw:0,1) via ALSA 6. HDA ATI SB [VT1708S HP] (hw:0,2) via ALSA 7. Flight Sound X [USB Audio] (hw:2,0) via ALSA 8. PortAudio Default 9. No Output (the Flight Sound X is a USB audio adapter for aviation headsets). Maxime On Thu, 24 May 2012 16:54:33 -0400 Ignacio Bravo ibr...@hotmail.com wrote: Maxime, Can you please provide more details on how you solved this issue? I have also upgraded to Ubuntu 12.04 and my sound is gone in FG. I checked my home directory and I don't have any .alsoftrc directory there. IB Thanks to all for your answers and the hint about checking the OpenAL configuration - the problem was caused by a stale .alsoftrc config file that had persisted in my home directory across the OS upgrade. Sorry for the noise... You OpenAL intsallation might not be properly configured, check your /etc/openal/alsoft.conf and/or ~/.alsoftrc files. (If you have OpenAL-soft. The location in /etc may vary with the distribution.) On my system I have anders@sleipner:~$ cat ~/.alsoftrc format = AL_FORMAT_STEREO16 cf_level = 2 drivers = alsa [alsa] # ALSA backend stuff device = plug:dmix capture = plug:dsnoop [wave] file = /dev/null to make OpenAL use ALSA. Cheers, Anders -- sent from my armchair -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel -- sent from my armchair -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel