Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Bug #473: Not possible to replace a RS after Glow init?
Product:
TV3D SDK 6.5
Language:
C++
Current State:
New
Resolution:
Unconfirmed
Created On:
August 12th, 2005
Last Modified:
August 12th, 2005
Reported By:
Loolarge
When you set up a Rendersurface for the glow effect, and resize the RS afterwards, the glow looks off. Like the scaling doesnt fit. See here:
(Link)

even if you call InitGlowEffect() again.

Here is my code:

// Initialize Glow stuff
GlowActive = false;
RSGlow = pScene-CreateRenderSurface(256,256, true, cTV_TEXTUREFORMAT_DEFAULT);
TVEffect-InitGlowEffect(RSGlow);
TVEffect-SetGlowParameters(&cTV_COLOR(1,1,1,0), 1, 1);

and then i want to resize the RS and init the glow again:

RSGlow-Destroy(); RSGlow=NULL;
RSGlow=pScene-CreateRenderSurface(256,256, true, cTV_TEXTUREFORMAT_DEFAULT);
TVEffect-InitGlowEffect(RSGlow);

Comments:

Posted by Loolarge on August 13th, 2005 at 8:44 AM
I was wondering why there is no "Un-initGlow" function or so, so make a clean reinitialization...