A few issues with the imageset
Posted: Sun May 18, 2008 08:55
Ok, this is my first time experimenting with CEGUI, but I'd studied the .scheme, .looknfeel and .imageset files before so already kinda knew what to expect. I thought it was going to be a walk in the park trying to make a simple new skin based off Taharez, but obviously.. not so much.
I changed all the occurences of 'Taharez' in all the related files to my own name, lets call it 'Teletubby' for sports. I also just copied the .tga from taharez and renamed it in the imageset file. Then i resized the .tga to 512x512 (from the 256x256 original) thinking i should just add my own images and leave the old taharez images intact, so i could skin one component at a time (changing the coordinates in the imageset file). My first try totally blew up in my face. I extracted the coordinates in photoshop using the selection tool and enterred them, but all i got was what seemed to be random taharez-look control textures spread across my framewindow (I was just trying to reskin a framewindow).
Which leads me to my other problem, I noticed i actually had to change the LAYOUT files too just to get it to work with my skin. I mean, i understand that one skin may not have some widgets another does have, but come on, for flexibility's sake why should i have to alter my layout's just to switch skins? Any widget that's not available should just be discarded or something.. In my opinion layout should be independent of theme/skin. Anyway that's just my opinion, i'm willing to just deal with that fact.
But my biggest problem is by far this:
Like i said my textures wouldn't show and it was using random control textures all over the place. So i thought, maybe it's the size of my .tga, so i made it 256x256 again, removing all the taharez look stuff (i also changed the coordinates accordingly in my imageset). Now i get nada, zit, nothing. Just a completely transparent gui with some text. So I'm thinking, well i should at least get SOMETHING if i just make the background color of my .tga grey. So i do this and now bingo, some of my gui textures actually pop up, but with grey borders all over the place (btw this doesn't make any sense to me, it means that cegui is taking different coordinates for the textures just because i changed the background color from white (which it sees as transparent i'm guessing?) to grey). So i'm like wth are the grey borders doing there, so i change the width/height of my widgets in the imageset and fiddle with them subtracting 1 to 2 pixels from each and manage to get rid of some of the borders. But come on, a pixel is a pixel, i measured those dimensions pixel-perfect in photoshop, so why isn't it just taking my 22x22 pixels surface?
And even after that, some of the surfaces don't even line up right with eachother, they're like off 1 to 5 pixels at times.
It's just, if i have to fiddle this much just to get something crappy looking, i don't know.. it's killing me here.
If someone could please make me see some light?
Thanks (I didn't mean to be negative, i think cegui is a great initiative, it's just that i didn't expect this much resistance )
Oh yea btw I'm using the GUI sample from the latest Ogre 1.4 (dunno what cegui version that is exactly).
I changed all the occurences of 'Taharez' in all the related files to my own name, lets call it 'Teletubby' for sports. I also just copied the .tga from taharez and renamed it in the imageset file. Then i resized the .tga to 512x512 (from the 256x256 original) thinking i should just add my own images and leave the old taharez images intact, so i could skin one component at a time (changing the coordinates in the imageset file). My first try totally blew up in my face. I extracted the coordinates in photoshop using the selection tool and enterred them, but all i got was what seemed to be random taharez-look control textures spread across my framewindow (I was just trying to reskin a framewindow).
Which leads me to my other problem, I noticed i actually had to change the LAYOUT files too just to get it to work with my skin. I mean, i understand that one skin may not have some widgets another does have, but come on, for flexibility's sake why should i have to alter my layout's just to switch skins? Any widget that's not available should just be discarded or something.. In my opinion layout should be independent of theme/skin. Anyway that's just my opinion, i'm willing to just deal with that fact.
But my biggest problem is by far this:
Like i said my textures wouldn't show and it was using random control textures all over the place. So i thought, maybe it's the size of my .tga, so i made it 256x256 again, removing all the taharez look stuff (i also changed the coordinates accordingly in my imageset). Now i get nada, zit, nothing. Just a completely transparent gui with some text. So I'm thinking, well i should at least get SOMETHING if i just make the background color of my .tga grey. So i do this and now bingo, some of my gui textures actually pop up, but with grey borders all over the place (btw this doesn't make any sense to me, it means that cegui is taking different coordinates for the textures just because i changed the background color from white (which it sees as transparent i'm guessing?) to grey). So i'm like wth are the grey borders doing there, so i change the width/height of my widgets in the imageset and fiddle with them subtracting 1 to 2 pixels from each and manage to get rid of some of the borders. But come on, a pixel is a pixel, i measured those dimensions pixel-perfect in photoshop, so why isn't it just taking my 22x22 pixels surface?
And even after that, some of the surfaces don't even line up right with eachother, they're like off 1 to 5 pixels at times.
It's just, if i have to fiddle this much just to get something crappy looking, i don't know.. it's killing me here.
If someone could please make me see some light?
Thanks (I didn't mean to be negative, i think cegui is a great initiative, it's just that i didn't expect this much resistance )
Oh yea btw I'm using the GUI sample from the latest Ogre 1.4 (dunno what cegui version that is exactly).