Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Gideros 2023.7 — Gideros Forum

Gideros 2023.7

hgy29hgy29 Maintainer
edited August 2023 in Announcements
Another improved version is available.



[core/profiler] Hide profiling overhead
[core/sprite] Improve binding performances
[core/layout] Allow to override size after layout
[core/layout] Allow offseting the grid
[core/styling] Support basic math in styles
[gfx/pixel] Avoid unnecessary recomputing for FP precision changes
[gfx/particles] Avoid asking for redraw if graphics haven't changed

[studio] Enlarge Plugins Require Window

[export/android] Separate down and up recovered back key events
[export/html] Upgrade to latest emscripten

[plugin/ads/admob] Update iOS code for SDK 8/10

[core/layout] Fix endless loop when shrink=true sometimes

Download it from here:
+1 -1 (+6 / -0 )Share on Facebook


  • rodrirodri Member

    Thank you, here always grateful that you update gideros, even if we don't always express it... thank you!!

    Likes: MoKaLux, MobAmuse

    +1 -1 (+2 / -0 )Share on Facebook
  • MoKaLuxMoKaLux Member
    edited July 2023
    First of all thank you hgy29 for making Gideros awesome o:)

    I may have found an issue with RenderTarget?
    The code below creates a gradient bg with some moving stars
    -- a gradient bg
    local bggradient = Pixel.new(0xffffff, 1, 800, 480) -- set a white color to start with
    bggradient:setColor(0x0, 1, 0x00007f, 1, -90) -- a gradient set horizontally
    bggradient:setAnchorPoint(0.5, 0.5)
    -- stars
    local spritestars = Sprite.new() -- a sprite to hold all star shapes
    for i = 1, 512 do -- PaulH
    	local s = Shape.new()
    	s:setLineStyle(2, 0xffffff)
    	s:moveTo(0, 0)
    	s:lineTo(1, 1)
    	s:setPosition(math.random(0, 800), math.random(0, 480))
    	s:setScale(math.random(5, 15) / 10)
    	s:setAlpha(math.random(10, 50) / 50)
    -- render stars to a render target
    --local rtstars = RenderTarget.new(800, 480, nil, true, nil, nil, nil, false) -- BUG?*
    local rtstars = RenderTarget.new(800, 480) -- FIX**
    rtstars:save("|T|bgstars.png") -- FIX**
    -- create an image (Pixel) of the stars
    --local bgstars = Pixel.new(rtstars, 800, 480) -- BUG?*
    local texstars = Texture.new("|T|bgstars.png", nil, {wrap=TextureBase.REPEAT, extend=false}) -- FIX**
    local bgstars = Pixel.new(texstars, 800, 480) -- FIX**
    bgstars:setColorTransform(7/255, 221/255, 219/255, 1)
    bgstars:setAnchorPoint(0.5, 0.5)
    local texscale = 0.7
    bgstars:setTextureScale(texscale, texscale)
    -- position
    bggradient:setPosition(800/2, 480/2)
    bgstars:setPosition(800/2, 480/2)
    -- order
    -- game loop
    local velx = 0
    function onEnterFrame(e)
    	-- move the stars
    	velx -= e.deltaTime * 128
    	bgstars:setTexturePosition(velx, 0)
    stage:addEventListener(Event.ENTER_FRAME, onEnterFrame)
    The suspected issue: RenderTarget.new(800, 480, nil, true, nil, nil, nil, false)
    - the true parameter is repeating (default = false) OK
    - the false parameter is extend (default = true) NOT OK?

    Expected behavior : RenderTarget.new(800, 480, nil, true, nil, nil, nil, false) to create a repeatable texture with extend to pot set to false

    Actual result: the texture repeats itself BUT there is a gap in the texture when it scrolls (bgstars:setTexturePosition(velx, 0)). So I suspect extend to be at fault?

    PS: you can uncomment all BUG* lines and comment all FIX** lines to see the issue.

    PS2: to fix the issue I save the rt to file then set {wrap=TextureBase.REPEAT, extend=false} and it works.

    PS3: you can copy/paste the code and it should work

    Hope that makes sense :) , thank you.
    my growING GIDEROS github repositories: https://github.com/mokalux?tab=repositories
  • hgy29hgy29 Maintainer
    MoKaLux said:

    I may have found an issue with RenderTarget?

    Good catch! Fixed it for next release: https://github.com/gideros/gideros/commit/2f3e098af176a6d3c9461464bcb6d88871b482d7

    Likes: MoKaLux, pie

    +1 -1 (+2 / -0 )Share on Facebook
  • good news for windows devs :) windows app store will soon allow all kind of apps

    Support for more types of apps

    Starting today, Windows developers can publish any kind of app, regardless of app framework and packaging technology – such as Win32, .NET, UWP, Xamarin, Electron, React Native, Java and even Progressive Web Apps. Developers can sign-up here to publish desktop apps, or build and package PWAs using our latest open-source tool PWABuilder 3.

    my growING GIDEROS github repositories: https://github.com/mokalux?tab=repositories
Sign In or Register to comment.