
Updated now.
Moderator: Moderators
It's less work than it sounds actually .. part of the required matrix operations are even already in the ZGE codebase ( for mesh transformations ). Plus, a matrix ( 4x4 ) variable type would be so much more convenient then any array based workaroundVilleK wrote:Shaders in ES requires OpenGL ES 2.0. And the problem with using that is that fixed function pipeline is gone (just like in GL 3 and higher) which means that lot of functionality ZGE relies on (like matrix operations) will need to be rewritten.
I don't think you need to drop support for older versions. When a user decides to target 1.4 / ES 1.1, then Shaders simply won't work ( no point in trying to emulate that ). But for the majority of features, you're going to need this "software layer" for ES 2.0 support anyway.VilleK wrote:So we will come to a point soon where we will need decide if we want to lose backward compatibility with older hardware (GL 2 or lower, GL ES 1.1) or try to support everything through a software layer.
Agreed .. although the fixed-function pipeline is already outdated by today's standards, so I can understand why they chose to lift that "burden" from mobile driver creators of the futureVilleK wrote:I think the GL standard community messed up when they removed older functionality, they could have kept it as a software emulated library at least.
I tested it and it's working fine now. Thank you.VilleK wrote:Ok found the problem with PNGs and it was indeed a fault in my code
Fixed now, please try downloading again.
When you build a executable with UPX compression, in most cases BMP data will get smaller, while PNG might get slightly bigger. Similarly, all imported data in .zgeproj files is stored using zlib compression.Rado1 wrote:BTW why .zgeproj and .exe files are larger with new png compression than previous versions with uncompressed bitmaps loaded from png files?
Yes, it can still import png images but stores them internally in uncompressed format. This gives better overall compression if your exe-file is compressed with zip or exe-compressor. The issue here is whether the Zge runtime should contain a native png decoder or not.jonaspm wrote:So the older version of ZGE without native png doesnt support png images or what?