Pryme8 Posted July 18, 2018 Share Posted July 18, 2018 https://www.babylonjs-playground.com/#NAG06Y#58 On line 266, I am generating a custom rtt that outputs its internal texture. What method do I need to use to get it so I can be like ctx.drawImage(texture._someParam, 0,0... ); on a dynamic texture. Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted July 18, 2018 Author Share Posted July 18, 2018 https://www.babylonjs-playground.com/#NAG06Y#62 There has to be a better way then iterating though a whole imageData set... Why cant I just set the data to rtt.readPixels()? Quote Link to comment Share on other sites More sharing options...
Guest Posted July 18, 2018 Share Posted July 18, 2018 Unfortunately the dynamic texture is pure CPU side code and the RTT is pure GPU. But you are not forced to iterate though: https://www.babylonjs-playground.com/#NAG06Y#63 Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted July 18, 2018 Author Share Posted July 18, 2018 >_< that moment when you knew how to do something but just did not think of it... you are non-replaceable @Deltakosh GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.