lars.saalbach Posted June 10, 2012 Posted June 10, 2012 Hello together, I attached an example project. If you start the batch, you'll see a TabBox, with a given sprite, that loads a white PNG file and renders it with a given color. If you swap now fast the tab's you'll see, that the color of the sprite swaps to blue/green/yellow and so on, and always render the widget complete from right to left, or left to right whatever, that looks not really "cute" and fine for the consumer. Is there any possibility to manage this problem(s)? Best regards Lars
lars.saalbach Posted June 10, 2012 Author Posted June 10, 2012 Forgot attachment. Sorry. gui_render.zip
frustum Posted June 11, 2012 Posted June 11, 2012 The sprite color should be normalized in 0.0f-1.0f range. sprite.setColor(vec4(13,100,0,50) / 255.0f);
lars.saalbach Posted June 11, 2012 Author Posted June 11, 2012 Hello Frustum, thanks for that fast reply. That solved this problem :D Best regards Lars
Recommended Posts