Bug in overlay ?
Posted: Wed May 11, 2005 4:25 pm
Hello,
When I load a texture manually into a texture unit state of a manually created material and then display it on a overlayelement the U coordinate of the texture seem to be displaced with 1 pixel to the left.
The problem seems to occur on other machines than my own with lead me into thinking that it was not something which was happening due to my gfx card.
The way im corrently fixing the problem is to adjust the U coordinate of the texture like
mTextureUnitState->setTextureUScroll(-0.00483092 );
which should correospond to moving the texture 1 pixel to the right ( on my texture, that is. )
:)
Can anyone please tell me if this is an Ogre specific error ?
Regards
Kristian
When I load a texture manually into a texture unit state of a manually created material and then display it on a overlayelement the U coordinate of the texture seem to be displaced with 1 pixel to the left.
The problem seems to occur on other machines than my own with lead me into thinking that it was not something which was happening due to my gfx card.
The way im corrently fixing the problem is to adjust the U coordinate of the texture like
mTextureUnitState->setTextureUScroll(-0.00483092 );
which should correospond to moving the texture 1 pixel to the right ( on my texture, that is. )
:)
Can anyone please tell me if this is an Ogre specific error ?
Regards
Kristian