Saeki Amae Posted August 11, 2020 Share Posted August 11, 2020 Hello I would like to render texture from graphics using the function from the subject but it always constrants my drawing to smallest possible texture. How can I specify the size of the texture in this case? I could draw rectangle in graphics to make proper constraints but then the rectangle will be visible. What is best solution for this case? Thank you in advance for help! ❤️ Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted August 11, 2020 Share Posted August 11, 2020 draw rect with alpha=0.001. or hack that function. With the intensity that you are using pixi, I suppose you already have github source cloned and opened in separate IDE window to search for methods , right? Did you look at generateCanvasTexture and whether it can ba hacked? Quote Link to comment Share on other sites More sharing options...
Saeki Amae Posted August 11, 2020 Author Share Posted August 11, 2020 (edited) hehe no i didn't change anything in the library I am still learning it and I simply look for best solution so my application runs as fast as possible without quality losses But ok, will see what i can do Edited August 11, 2020 by Saeki Amae Quote Link to comment Share on other sites More sharing options...
Saeki Amae Posted August 11, 2020 Author Share Posted August 11, 2020 (edited) I uses alpha rectangle, worked fine! Thank you for help Edited August 11, 2020 by Saeki Amae Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted August 11, 2020 Share Posted August 11, 2020 You dont have to change source code itself, you can hack stuff from outside. "Graphics.prototype.generateMyCanvasTexture = function() ..." , copy src from original source and change something Quote Link to comment Share on other sites More sharing options...
Saeki Amae Posted August 12, 2020 Author Share Posted August 12, 2020 Sure Thank you 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.