Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [Help] Take screenshot + Shaders ... It doesn't work!

Author
Message
AliceSim1
6
Years of Service
User Offline
Joined: 15th Oct 2018
Location: Barcelona
Posted: 28th Jul 2020 09:36
Hello
I need help,

I make a screenshot using this method:
https://forum.thegamecreators.com/thread/225040


And I am using this Shader that simulates the CRT scanline:
https://forum.thegamecreators.com/thread/225656

You cannot capture the final result screen with the Shader
It only captures the screen without Shader, it does not capture the Shader.
How can it be fixed? Is there any method?
I would like the screenshot to include the final result of the applied Shader.

It can?
janbo
16
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 28th Jul 2020 12:28 Edited at: 28th Jul 2020 12:38
I guess the CRT effect uses a fullscreen shader.
Your code only renders the scene but you have to render the quad which the shader is bound to.
So you could actually just instead of Render() use DrawObject(QuadID).
Qugurun
Valued Member
9
Years of Service
User Offline
Joined: 8th Dec 2014
Playing: AppGameKit
Posted: 28th Jul 2020 13:38 Edited at: 28th Jul 2020 13:41
AliceSim1
6
Years of Service
User Offline
Joined: 15th Oct 2018
Location: Barcelona
Posted: 28th Jul 2020 19:24

I made my own adaptation, since its code has 2 errors and does not display the Shader in the main loop, only when taking the screenshot.



Shader_SC=1 and Shader_SC=1(no visible shader!)



Shader_SC=2 (Yes visible Shader)


But the result is not as desired, paint the Sprite Shader 100% opaque, without transparency ...
I also see that Shader # 1 does not apply the effect.
AliceSim1
6
Years of Service
User Offline
Joined: 15th Oct 2018
Location: Barcelona
Posted: 28th Jul 2020 19:44


This is the desired result, using the FullScreenShader + ObjectDraw technique (does not support screen capture)

Login to post a reply

Server time is: 2024-11-22 00:16:56
Your offset time is: 2024-11-22 00:16:56