Image optimization

New releases and general discussions.

Post » Wed Jun 17, 2009 7:24 am

I was thinking about a automatic image size optimizer for non power of 2 images that would cut the images into 2 or more polygons with 1 ore more texture
For example a 1280 by720 would be broken into 2 polygons with with one 1024 texture
While a 1280 by 1024 would be 3 polygons with one 1024 texture and one 512 texture

http://files.getdropbox.com/u/1027218/exmp.png
http://files.getdropbox.com/u/1027218/exmp2.png

I know it can be done manually but was wondering if it can be done as a feature(also is should be optional) especially if some don't know about it and waste memory
B
2
G
4
Posts: 43
Reputation: 1,136

Post » Wed Jun 17, 2009 9:02 am

We talked about this; it's pretty complicated but a possibility for 2.0.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Wed Jun 17, 2009 1:10 pm

It's probably not possible with render targets, however - but some newer graphics cards support non-power-of-two textures anyway. There are other problems with splitting textures, such as slowing down rendering, and also image quality: due to floating point positioning, it's difficult to stitch the two sections together without a visible seam on the join appearing in many circumstances.
Scirra Founder
B
359
S
214
G
72
Posts: 22,951
Reputation: 178,578


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 3 guests