Hi it's late and I'm being a little dense so I wonder if you can help me please.
I have a newspaper with text and a picture which is a 32bit png image that I fade in and fade out over a background. I want to draw some dynamic content on the newspaper picture (so like a person). This dynamic content has to fade in and out with the main newspaper graphic and that's where the problem is.
Naturally I use SetBlend ALPHABLEND to daw the newspaper as it fades in and out. I use this to also draw the dynamic content on the newspaper. BUT it means that the dynamic content is drawn half faded over the half faded newspaper. This resulks in two things a) transparent dynamic content i.e. a see through person that you can see the newspaper picture through! and b) the newspaper picture and the dynamic contents colour values are added so that the dynamic content looks brighter!
Clearly the only way round this that I can see is to get the newspaper image and draw the dynamic content onto it beforehand and then use the resulting image to fade in/out on screen.
So how do I do that please?
I'm thinking:
1) I could draw the newspaper to the screen full alpha blend and then draw the dynamic content onto it and then grab it back to an image (via a pixmap?) but would it retain it's alpha channel so that I could draw it over a background later properly blended?
2) Draw the dynamic content directly onto the newspaper picture. Do I need the famous Render To Texture mod for that or can it be done some other way? (like with pixmaps?) The dynamic content must be drawn properly alpha blended onto the newspaper as I don't want jagged lines on it.
Any advice? Pointers? Many thanks in advance!
I have a newspaper with text and a picture which is a 32bit png image that I fade in and fade out over a background. I want to draw some dynamic content on the newspaper picture (so like a person). This dynamic content has to fade in and out with the main newspaper graphic and that's where the problem is.
Naturally I use SetBlend ALPHABLEND to daw the newspaper as it fades in and out. I use this to also draw the dynamic content on the newspaper. BUT it means that the dynamic content is drawn half faded over the half faded newspaper. This resulks in two things a) transparent dynamic content i.e. a see through person that you can see the newspaper picture through! and b) the newspaper picture and the dynamic contents colour values are added so that the dynamic content looks brighter!
Clearly the only way round this that I can see is to get the newspaper image and draw the dynamic content onto it beforehand and then use the resulting image to fade in/out on screen.
So how do I do that please?
I'm thinking:
1) I could draw the newspaper to the screen full alpha blend and then draw the dynamic content onto it and then grab it back to an image (via a pixmap?) but would it retain it's alpha channel so that I could draw it over a background later properly blended?
2) Draw the dynamic content directly onto the newspaper picture. Do I need the famous Render To Texture mod for that or can it be done some other way? (like with pixmaps?) The dynamic content must be drawn properly alpha blended onto the newspaper as I don't want jagged lines on it.
Any advice? Pointers? Many thanks in advance!
