StaticImage: image is 'smeared' [solved]

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

User avatar
pfo
Just popping in
Just popping in
Posts: 3
Joined: Sun Jan 01, 2006 05:52

StaticImage: image is 'smeared' [solved]

Postby pfo » Sat Mar 25, 2006 12:40

I'm having trouble loading an image. I defined an imageset like this:

<?xml version="1.0" ?>
<Imageset Name="WorldEditor" Imagefile="MyWorld_Colormap.Small.png" NativeHorzRes="256" NativeVertRes="256" AutoScaled="false">
<Image Name="MyWorld" XPos="0" YPos="0" Width="256" height="256" />
</Imageset>

And then in a layout, I load it like this:

...
<Window Type="TaharezLook/StaticImage" Name="MapImage" >
<Property Name="UnifiedAreaRect" Value="{{0.1,0},{0.1,0},{0.1,256},{0.1,256}}" />
<Property Name="BackgroundEnabled" Value="False" />
<Property Name="FrameEnabled" Value="False" />
<Property Name="Image" Value="set:WorldEditor image:MyWorld" />
</Window>
...

My image appears 'smeared', it's solid lines of color forming a gradient going from left to right. The colors seem correct (based on the image colors) but somehow the image file is getting messed up. I tried using a .tga and that didn't help. I checked the rest of the forum and couldn't find anyone else reporting this problem. Any suggestions?

User avatar
pfo
Just popping in
Just popping in
Posts: 3
Joined: Sun Jan 01, 2006 05:52

Postby pfo » Sat Mar 25, 2006 13:06

Yeah, that 'H' in height should be capitalized in the imageset definition.. guess I should have looked at that one a little longer...


Return to “Help”

Who is online

Users browsing this forum: No registered users and 25 guests