FastExt & Sprite Candy Problem

Blitz3D Forums/Blitz3D Userlibs/FastExt & Sprite Candy Problem

Mortiis(Posted 2008) [#1]
Hi, I'm using sprite candy to create a hud for my game. My problem is, hud layers are effected by DOF and Glow and various other filters too. Is there a way to sort this out so my hud can no longer be effected by these post processing.


Naughty Alien(Posted 2008) [#2]
i had that thing and I fixed it by using fastimage since its comming after renderpostprocess...


MikhailV(Posted 2008) [#3]
SpriteCandy HUD — it's simple 3D mesh in Blitz3D scene.

You can render scene without SpriteCandy mesh (HideEntity), apply RenderPostprocess function, and hide all scene objects and render SpriteCandy mesh... Brrr....

Or use RenderEntity function for SpriteCandy mesh for render after postprocess effects (hide before render scene)...


Mortiis(Posted 2008) [#4]
Yep I added a function to Sprite Candy

Function HUD_ReturnHUD%(HUD_ID%)
    Local HUDObj.SC_HUD = Object.SC_HUD(HUD_ID)
    Return HUDObj\Piv
End Function


then changed the main loop to;

While bRunning = True		
    UpdateGame()
    RenderWorld
		
    RenderPostprocess FE_DOF
    RenderPostprocess FE_Glow
    RenderEntity ( HUD_ReturnHUD( hud\hud ), Camera\cam )		
Flip
Wend


Thanks a lot!