possible to draw texture on a single color?

Previous topic - Next topic

spacefractal

I'm thinks my game could have nice some texture on the landscape on the next game im create (only announced on the bonus section). It's a platform game with a minimalist graphics style.

But not sure how to do, but would like to draw a 2d texture on the single colored front landscape, which are drawn directly on back buffer. The game does not use any sort of offscreen buffer due framerate will fall too much, but do scaling directly.

I'm thinks is some sort of a pixel shading the best way?
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Kitty Hello


spacefractal

It's more a pixelshder. Polyvector is used to draw the landscape (foreground), which is near single color. It's could been nice to texture that single color after its have been drawn.

But do have polyvector such a feature?
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

#3
Its seen SETRANSPARENCY does not work with CREATESCREENS at all.

Im have tried to draw the whole scene to a offbuffer in same size of the backbuffer. Here im draw the landscape with the RGB(255, 0, 255), which im want to been transperancy. Im draw with the color in the OFFBUFFER. But when im so use  SETTRANSPARENCY after the offbuffer drawscene on the current backbuffer, the purple is still drawn.

So im are pretty sure its not possible to do correctly, and im have never liked offbuffer at all, due alpha bleending using them is completly wrong.
Im thinks its not a glbasic bug really, so.

Im also guess SETPIXEL() and GETPIXEL() is too slow for a whole screen operation? Its pretty much that.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Kitty Hello

Ah. Search the forums for "Worms". That battle game. You want holes in the sprite, right?

spacefractal

#5
Look on the images in the newly created announce for karma miwa. You see there is a little "noise" filter which draw on the whole screen? See compare for the third screen which don't use that. Originally plan to use the noise filter only on the foreground landscape, etc could texture that, after tiles have been drawn.

The game is no secret anymore.

Ps. No offscreen used, due multiply issues with alpha, im never got worked around.

Pps. Search for worms gave no result, so im thinks its was the team 17 game?
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/