When using a canvas textures as a titlepic or in a shader they do not appear to update correctly when the canvas texture is drawn to.
In the attached example a static event handler draws to a canvas texture from the OnEngineInitialize() function, this canvas texture is used for the titlepic, drawn to the center of the screen by the HUD, and is used as a LUT by a screenspace shader to replicate the "pallet" tonemap setting.
If you load the game the titlepic will be black. starting a new game results in a screen that is black with the canvas texture corectly displayed in the middle of the screen. If you press F7 to exit to back to the menu you will find that the titlepic now correctly shows the canvas texture instead of a black screen. If you start a new game the shader is still not using the updated canvas texture and the scene is still black. The HUD continues to correctly display the canvas texture.
[4.12.2] canvas texture not updated in all cases
Moderator: GZDoom Developers
Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.
If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.
Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.
If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.
Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!
-
- Posts: 2432
- Joined: Thu Jun 25, 2009 1:58 pm
- Location: Time Station 1: Moon of Glendale
[4.12.2] canvas texture not updated in all cases
You do not have the required permissions to view the files attached to this post.