B
Bipp
Guest
Hi !
The problem i have is that drawing the application surface or any surface for that matter in the Draw End event results in just a black screen. Everything that is drawn in the Draw GUI event still shows up though.
Drawing regular sprites in Draw End works fine too.
I just use this:
It draws the surface perfectly fine in any other draw event but in Draw End it results in just a black screen.
Im postprocessing by mixing together several surfaces so i need to make sure all the instances draw calls are completed before i mix them.
To avoid unwanted offsets i've stayed away from the Draw GUI event since it doesn't account for scaling the sprites used for the lighting when increasing/decreasing the view_wview and view_hview variables.
That leaves the Draw End event to do the mixing. Looking at the documentation, i can't understand why the surface would show up black. I can't find any answers to this online either.
I use Game Maker Studio 1.4 (v.1.4.1804)
TLDR;
Surfaces drawn in the Draw End event results in black screen with the stuff in Draw GUI on top of the black screen, how to fix?. Thanks in advance!
The problem i have is that drawing the application surface or any surface for that matter in the Draw End event results in just a black screen. Everything that is drawn in the Draw GUI event still shows up though.
Drawing regular sprites in Draw End works fine too.
I just use this:
Code:
draw_surface(application_surface, view_xview, view_yview);
Im postprocessing by mixing together several surfaces so i need to make sure all the instances draw calls are completed before i mix them.
To avoid unwanted offsets i've stayed away from the Draw GUI event since it doesn't account for scaling the sprites used for the lighting when increasing/decreasing the view_wview and view_hview variables.
That leaves the Draw End event to do the mixing. Looking at the documentation, i can't understand why the surface would show up black. I can't find any answers to this online either.
I use Game Maker Studio 1.4 (v.1.4.1804)
TLDR;
Surfaces drawn in the Draw End event results in black screen with the stuff in Draw GUI on top of the black screen, how to fix?. Thanks in advance!