playMaker

Author Topic: Visual artefact when moving camera after fade out [SOLVED]  (Read 2187 times)

JonathanBurroughs

  • Junior Playmaker
  • **
  • Posts: 73
  • Some kind of independent game developer
    • @HiFiHair
Visual artefact when moving camera after fade out [SOLVED]
« on: June 26, 2014, 01:22:07 PM »
Hello!

In my game I'm using "Camera Fade Out" / "Camera Fade In" to mask repositioning the game camera.

I wait until the fade is complete before using "Set Position" / "Set Rotation" on my game camera. But even so during the transition I get a brief blip where the full screen black effect vanishes and I can see the transition occur. After which "Camera Fade In" works as expected.

Does anyone know what might cause this?
« Last Edit: June 26, 2014, 06:14:23 PM by HiFiHair »

JonathanBurroughs

  • Junior Playmaker
  • **
  • Posts: 73
  • Some kind of independent game developer
    • @HiFiHair
Re: Visual artefact when moving camera after fade out
« Reply #1 on: June 26, 2014, 01:32:59 PM »
I've done some more experimenting. So if I don't call "Camera Fade In" at all then at the moment when I reposition the game camera the full screen black effect is removed. Which seems odd.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: Visual artefact when moving camera after fade out
« Reply #2 on: June 26, 2014, 03:02:43 PM »
The camera fade in/out actions use Draw Texture to render the effect, but the effect is only active while the action is active. As soon as you transition to the next state the effect stops. You could use Draw Full Screen Color to keep the screen black on the state that re-positions the camera...

JonathanBurroughs

  • Junior Playmaker
  • **
  • Posts: 73
  • Some kind of independent game developer
    • @HiFiHair
Re: Visual artefact when moving camera after fade out
« Reply #3 on: June 26, 2014, 06:14:03 PM »
Thanks, Alex. That totally fixed it!