Jump to content

How to render all scene to texture


Recommended Posts

I need render all scenes to one texture and after that render this texture to the screen

I am try to do so:

1.  I create render texture object

_self.renderTexture = _self.engine.add.renderTexture( 800, 600, 'rendertexture', true);

2. In the update function I render scene to this texture

_self.renderTexture.renderXY( _self.engine.stage, 0, 0, false );

there are two problems:

the image is flipped horizontally

- the image blinking very vast ( the fps frequency I think )

how to fix this problems?


PS As I see that one frame render black screen to texture and second frame render game content to texture and to screen

why black rendered to texture i do not understand

If disable render to texture then all is ok

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...