A quick setSkin howto?

mr.Zog

01-12-2007 15:30:27

When I try to set my own skin, I get the same old crash I got here:
http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=5602

Now if I think/read back, it must be a problem with the material.
(ogre again doesn t seem to complain...)

Could you post a short info about what we need in order to let our skin work correctly?

I got:
fear.progressbar.png
fear.progressbar.bar.png
And my material:

material fearMaterial
{
technique
{
pass
{
lighting off
scene_blend alpha_blend

texture_unit
{
texture SkinSet.fear.png
}
}
}
}




Then, fear.skinset and SkinSet.fear.png are created automatically (After loading with QuickGUI::SkinSetManager::getSingleton().loadSkin("fear",QuickGUI::SkinSet::IMAGE_TYPE_PNG, Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME ); ).
All of these files are in the same folder.

What am I missing? :D


I set the skin with:

progressBarTest->setSkin( "fear" );


It crashes in

buf->blitFromMemory(mBarImage.getPixelBox(),Ogre::Image::Box(0, 0, mBarImage.getWidth(), mBarImage.getHeight()));


of

void ProgressBar::_modifyBarTexture(Ogre::Real progress)




Do you got any suggestions were the mistake could be?
Thanks,
Chris



edit:
I did a test and added a fear.label.png, assigned it to a label and this worked fine... maybe it's a progressbar- issue?

kungfoomasta

01-12-2007 19:38:41

Email me the images and I'll try to repro this on my end and see what I can find. Could be a bug in ProgressBar widget.