Pryme8 Posted March 28, 2018 Share Posted March 28, 2018 When doing a rtt and returning the texture where can I get access to its data Array? like: rtt.getInternalTexture()._data; the equivalent of ctx.getImageData Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted March 28, 2018 Author Share Posted March 28, 2018 found it: rtt.readPixels(); But now I found that the arguments do nothing effectively. rtt.readPixels(); returns the same as rtt.readPixels(0,0,1,1); Is it 0-1 space? *EDIT* nope they dont do anything. Quote Link to comment Share on other sites More sharing options...
Guest Posted March 28, 2018 Share Posted March 28, 2018 I have pushed the code comments for the entire Engine class. So now I can just link it http://doc.babylonjs.com/api/classes/babylon.engine#readpixels Pryme8 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.