Not all overlay elements use that colour to generate their geometry (they don't use vertex colour); TextAreaOverlayElement does, but others like PanelOverlayElement do not (they're just positions and texture coords). You can set the colour in the material though, like this:
Hi Sinbad, thanks for your reply!
I have since modified my code to use a TextArea overlay element and that just doesn't ever seem to be visible, no matter what i set the colour to!!
Have you tried using Rectangle2D instead of an overlay element? It's the same full screen quad used for rendering the shadows; I've used it in the past for a fade in effect with a little manual blending.
NoBrain2k wrote:Hi Sinbad, thanks for your reply!
I have since modified my code to use a TextArea overlay element and that just doesn't ever seem to be visible, no matter what i set the colour to!!
Well, since TextArea only displays text, it ain't gonna show anything unless you give it some text to render. It's not appropriate for a fullscreen effect.
The facilities are there in material like I showed you to change the material to give you the colour you need, you don't need to switch elements.
sinbad wrote:
Well, since TextArea only displays text, it ain't gonna show anything unless you give it some text to render. It's not appropriate for a fullscreen effect.
The facilities are there in material like I showed you to change the material to give you the colour you need, you don't need to switch elements.
Well as i said changing it to red was only going to be a way of testing that I was doing things right before working on the fade effect so changing it in the material doesn't really get me any further.
I think i'll have a crack at leedgitar's suggestion since it sounds a little simpler than what I'm currently attempting.