Not logged inGosu Forums
Forum back to Help Search Register Login
Up Topic Gosu / Extending Gosu / Texplay: Editing large images
- - By RavensKrag Date 2011-08-28 18:36
Is there any way to increase the size of Gosu::Image instances that can be used with texplay? I believe the limit for the size of a Gosu::Image that can be edited in texplay is 1022 x 1022, or something around there.  However, TexPlay.create_blank_image can generate larger images.  Is this a result of how Gosu::Image#gl_tex_info is implemented, or could this possibly be changed?  I would like to be able to edit images that are as large as the ones I can create.
Parent - By jlnr (dev) Date 2011-08-28 19:12
Gosu supports an interface to read and write arbitrarily large images now. Image#to_blob retrieves the whole image even if it's super large, Image#update (or so) write a rectangular portion of it back. If Texplay were updated to use this interface instead of gl_tex_info then there would be no limit on the texture size.

I've been planning to fork Texplay and try and fix this, but plans are plenty :)
Parent - - By Spooner Date 2011-08-29 14:22
When Texplay creates images, it just creates a huge blob of data (string of null/0x00 characters) and passes that into _Gosu_ that creates the actual image (putting that on one or more textures). If Gosu puts that on more than one texture, then Texplay can't edit it.
Parent - - By RavensKrag Date 2011-08-29 16:42
In a related error, it sometimes creates images which overlap, apparently.  Like, the I'll draw a line in one image, and it'll appear in another one as well.  I'm still in the process of trying to isolate the error, but it's a rather weird bug.
Parent - By Trebor777 Date 2011-08-30 11:46
I get a similar bug sometimes on my project with texplay on small generated pictures. Very random and rare, but it happens.
Up Topic Gosu / Extending Gosu / Texplay: Editing large images

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill