You've got me interested.
I (finally) took a look at the splash.rgb file...
I don't have kde, but I do have imagemagick installed, and using
# identify -verbose
I get a long list of technical specs, that only differ from bo105-splash.rgb
or danube-splash.rgb in a couple areas:
Image: an2-splash1.rgb
Format: SGI (Irix RGB image)
Class: DirectClass
Geometry: 512x512+0+0
Type: TrueColorMatte (Type: TrueColor in bo105)
Endianess: Undefined
Colorspace: RGB
Channel depth:
Red: 8-bit
Green: 8-bit
Blue: 8-bit
Alpha: 8-bit Alpha: 1-bit in danube, and 0 bits in bo105
Channel statistics:
Red:
Min: 0 (0)
Max: 255 (1)
Mean: 53.1742 (0.208526)
Standard deviation: 75.8434 (0.297425)
Green:
Min: 0 (0)
Max: 255 (1)
Mean: 66.2499 (0.259804)
Standard deviation: 79.7865 (0.312888)
Blue:
Min: 0 (0)
Max: 255 (1)
Mean: 84.0289 (0.329525)
Standard deviation: 82.9706 (0.325375)
Alpha:
Min: 255 (1)
Max: 152 (0.596078)
Mean: 254.998 (0.999993)
Standard deviation: 0.403287 (0.00158152)
Colors: 40641 Colors: much less in other files
Rendering intent: Undefined
Resolution: 72x72
Units: Undefined
Filesize: 467.566kb Filesize: not the largest seen
Interlace: None
Background color: white Background: black in bo105
Border color: rgb(223,223,223)
Matte color: grey74
Transparent color: none
Page geometry: 512x512+0+0
Dispose: Undefined
Iterations: 0
Compression: RLE
[snip]
I tried loading it in Gimp, and saving in the same manner I have created the
other rgb via sgi files, as I commented last week from the documentation.
It didn't work.
Still SegFaults with error 11.
So, since the Alpha channel is the biggest difference,
I tried Flattening the image, and it loads!
Conclusion: 1-bit alpha is supported. 8-bit alpha is not.
Hey, nice picture Yurik!
Melchior FRANZ wrote:
> * Erik Hofman -- Sunday 15 April 2007:
>> So it's indeed required not to use the aggressive RLE option for the
>> splash screen images [...]
>
> Umm ... but $FG_ROOT/Aircraft/bo105/splash.rgb *is* "aggressively"
> compressed. Does it crash fgfs for anyone?
First time I've seen this.
> Can someone send me a link to a splash texture that crashes fgfs
> for him/her? And a backtrace for the crash if possible.
For the an2-splash with 8-bit alpha color:
(gdb) run --aircraft=danube
Starting program: /usr/local/bin/fgfs --aircraft=danube
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 3331)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 3331)]
0x40559955 in _int_free (av=0x4060d5c0, mem=0x8b32000) at malloc.c:4177
4177 if (!nextinuse) {
Current language: auto; currently c
(gdb) bt
#0 0x40559955 in _int_free (av=0x4060d5c0, mem=0x8b32000) at malloc.c:4177
#1 0x4055874f in __libc_free (mem=0x8b31e00) at malloc.c:3355
#2 0x404b36b3 in operator delete (ptr=0x9800)
at /usr/src/gcc-3.3.2/libstdc++-v3/libsupc++/del_op.cc:39
#3 0x404b370f in operator delete[] (ptr=0x9800)
at /usr/src/gcc-3.3.2/libstdc++-v3/libsupc++/del_opv.cc:36
#4 0x0854bae9 in SGTexture::read_rgb_texture (this=0x872e208,
name=0x8b31e00 "") at texture.cxx:276
#5 0x0807fe1b in fgSplashInit (
splash_texture=0x8a35748 "Aircraft/danube/an2-splash1.rgb")
at /usr/local/include/simgear/misc/sg_path.hxx:132
#6 0x08054c5f in fgMainInit (argc=2, argv=0xbffff5d4) at main.cxx:1037
#7 0x08050e3a in main (argc=38912, argv=0x9800) at bootstrap.cxx:203
> Used on the bo105 texture:
>
> $ sgi $FG_ROOT/Aircraft/bo105/splash.rgb
> /usr/local/share/FlightGear/Aircraft/bo105/splash.rgb
> Name: Bo105 -- http://www.flightgear.org/ -- Melchior
> FRANZ 2005
> Bit Depth: 24 bpp
> Color Mode: RGB
> Compression: Runlength Encoded, 50.5%
> Dimensions: 512 x 512 pixels
> Shared Rows: 0.3%
>
>
> The "Shared Rows" percentage says that it's "aggressively" compressed.
That's an interesting detail I don't know about.
Stewart
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel