PDA

View Full Version : Desktop Problem



mr_h
April 26th, 2010, 23:17
I'm attempting to change the background for my WW2 themed skin. The image I'm hoping to use is this desktop background (https://mrh.boxofgeeks.net/WW2/desktop.png). The image is 2248x1024.

When I use it on a regular, windowed mode it comes through fine. But if I expand the size of the window to the full size that my 23 inch monitor (resolution 1920x1080) will allow, I get this:

https://mrh.boxofgeeks.net/WW2/fgscreenproblem1.jpg

I did make an update to my updated_frames.xml file



<framedef name="desktop">
<bitmap file="frames/desktop.png" />
<middle rect="0,0,1024,1024" />
<right rect="1024,0,97,1024" />
</framedef>



I can't seem to figure out what's causing the black line to appear. These backgrounds have been annoying me lately:)

Thanks
H

Zeus
April 26th, 2010, 23:43
Try replacing your png file with the new one attached.

I cropped the transparent block you had to the right of the main image since you don't seem to have a decal defined for the frame. With no decal in place I'm wondering if the transparent block is somehow causing the problem.

Your original png:
https://farm4.static.flickr.com/3207/4555562905_10aa624c53_m.jpg (https://farm4.static.flickr.com/3207/4555562905_b749158520_o.png)

New png:
https://farm4.static.flickr.com/3418/4556198590_63a04b96c7_t.jpg (https://farm4.static.flickr.com/3418/4556198590_07abd3a8b5_o.png)

You'll need to also change your frame definition to:



<framedef name="desktop">
<bitmap file="frames/desktop.png" />
<middle rect="0,0,1024,1024" />
<right rect="1024,0,99,1024" />
</framedef>


If you do intend to use a decal as a centre motif you will need to restore the transparent region to the png and add your decal definition to the frame def.

drahkar
April 26th, 2010, 23:43
Why is the source image so much larger than the usable area you are trying to use? I'd start correctly that. I've run into situations where that can cause unpredictable display issues. You should have every pixel accounted for in the definition file.

This is basically just saying in short text what DrZeuss says above. He posted right before I did. :)

mr_h
April 27th, 2010, 00:15
That did the trick, thanks Zeuss (and drahkar who apparently was a few seconds slow :b)

I kep the transparent section in because, well, frankly, I thought it was necessary :) Every other background I've seen has had it. That'll teach me to assume things.

Zeus
April 27th, 2010, 07:42
mr_h, I'm glad that sorted it for you.

In theory your original png would have been fine if you had included a decal entry in your framedef which encapsulated the transparent region of your png.

I suspect that because this area was undefined FGII had trouble rendering the image, it simply didn't know what to do with the transparent region. Hence the black block you got.

Most rulesets include the transparent region in their respective desktop.png images because they also include a 30-50% transparent image or decal. If you open up the standard 3.5E or 4E or d20 rulesets and flood the background of the desktop.png with a white fill, the decals will become more evident.

mr_h
April 27th, 2010, 14:06
That makes sense.

If my brain weren't fried from work, I suppose it would have made sense to me, but it refused to work another minute. :)