jorbascrumps Posted October 28, 2018 Share Posted October 28, 2018 (edited) Hi all, I admit I may be misunderstanding how this is supposed to work, but I can't seem to make a RenderTexture that's larger than the game size. For example, if I define my game as being 800x600 and then create a RenderTexture that's 900x700, then anything drawn outside 800x600 won't render. Can anyone shed some light on this, please? Thanks EDIT: Refer to this comment for demonstration of issue. Edited October 31, 2018 by jorbascrumps Added link to demo Link to comment Share on other sites More sharing options...
samme Posted October 31, 2018 Share Posted October 31, 2018 You would have to move the scene camera to see the rest. Or just scale down the RenderTexture to see the whole thing. Link to comment Share on other sites More sharing options...
jorbascrumps Posted October 31, 2018 Author Share Posted October 31, 2018 My current setup has the camera follow a player-controlled Sprite using `startFollow`. The RenderTexture is the size of the level with only a portion of the level viewable at any time. When the camera moves with the player, the edges of the RenderTexture become visible. Link to comment Share on other sites More sharing options...
jorbascrumps Posted October 31, 2018 Author Share Posted October 31, 2018 To see what I mean, you can add the following to this Labs example: this.add.renderTexture(0, 0, 720 * 2, 600) .draw(player, 790, 100); The crate should be cutoff. Note how the RenderTexture is the size of the camera bounds, which is more than the game size. Link to comment Share on other sites More sharing options...
samme Posted October 31, 2018 Share Posted October 31, 2018 When you draw to a RenderTexture, it's not affected by the scene camera or the game canvas, AFAIK. It's just a blank texture of a defined size. Link to comment Share on other sites More sharing options...
jorbascrumps Posted October 31, 2018 Author Share Posted October 31, 2018 Right, but it doesn't seem like it's respecting the size that I've set (ie, one larger than the camera's viewport but still within its bounds). Link to comment Share on other sites More sharing options...
jorbascrumps Posted November 7, 2018 Author Share Posted November 7, 2018 Looks like this is to be fixed in v3.16! Link to comment Share on other sites More sharing options...
Kouta Posted November 18, 2021 Share Posted November 18, 2021 This is happening to me in version 3.54.0, the snapshot function crops the render texture to gamesize, apparently the scissors doesn't update to the new render texture size, or maybe the scissor size is limited to game size? Link to comment Share on other sites More sharing options...
Recommended Posts