If it's broken I can look into it. Is the mode7 demo in the downloads repo?
//THE MODE7 EFFECT//Set it as a renderscript to see it in action!//(note: sprites are stretched by the effect too!)var MapImage;var x1;var x2;var y1;var y2;//Modify x1 and x2 to change the top blit map x position. Not recommended.//Modify x3 and x4 to stretch the map more. Make 30 bigger to strech more, and smaller to stretch less.//If x1 and x2 == x3 and x4 then the map will blit like it would normally show.x1 = 0;x2 = GetScreenWidth();x3 = GetScreenWidth()+50;x4 = -50;//Modify both y1 and y2 to change the height from the top of the mode7 map.//Modify y3 and y4 to change the height from the bottom.y1 = 0;y2 = 0;y3 = GetScreenHeight();y4 = GetScreenHeight();var black = CreateColor(0,0,0);function WorldmapEffect(){ MapImage = GrabImage(0, 0, GetScreenWidth(), GetScreenHeight()); //Before we start, cover the original map with black //Turned off by default, but turn it on if you'll need to stetch maps so the old unedited map doesn't //Show under it. Note that the effect then will be slightly slower and won't work on the DirectX driver. //Rectangle(0,0,GetScreenWidth(),GetScreenHeight(), black); MapImage.transformBlit(x1, y1, x2, y2, x3, y3, x4, y4); //Draw the REAL sprite on the screen. //var frame = //RealSprite.images[].blit(160, 120);}
Had a quick glance, looks to me like it should work it's just GrabImage and transformBlit I've used both of those in miniSphere.
var wh = screen.width / 2;var hh = screen.height / 2;screen.transform = new Transform() .translate(-wh, -hh) .scale(4 / wh, 4 / wh)//change the 4 to a different number to make the screen bigger or smaller .translate(0, 0, -1.0) .rotate(15, 1.0, 0.0, 0.0) .project3D(120, wh / hh, 0.1, 2.0);
screen.transform.identity();
Regarding that Mode7 demo: the warping effect is present in Sphere 1.5 too when using the sphere_gl plugin.
Quote from: Fat Cerberus on September 17, 2017, 12:11:38 amRegarding that Mode7 demo: the warping effect is present in Sphere 1.5 too when using the sphere_gl plugin.Because of the issues I had with the video before I added the PCIe card, I never even attempted using the gl. I've just always had it set to standard32.Edit: Just attempted it. The mode7 idea was a good thought but I suppose not very feasible.
Try the v2 code I posted above - will only work in miniSphere but should not have any warping effect.