Thank you, I will look at it..Maybe this will help you:
[B4X] BitmapCreator Effects
BitmapCreatorEffects class includes all kinds of very simple to use image effects. The class is cross platform and compatible with B4J (v6.3+), B4A (v8.3+) and B4i (v5.0+). Example: 'Greyscale an image: Dim GreyImage As B4XBitmap = effects.GreyScale(ExistingBmp) 'Blur an image: Dim BlurImage As...www.b4x.com
It looks like the samples show specific effects on the whole image or its border. I may start from it, though my particular interest is on certain portion of an image, say a circular area similar to that when pointing a flashlight to a photo in a dark environment where the circular light pattern is soft at the edge.Maybe this will help you:
[B4X] BitmapCreator Effects
BitmapCreatorEffects class includes all kinds of very simple to use image effects. The class is cross platform and compatible with B4J (v6.3+), B4A (v8.3+) and B4i (v5.0+). Example: 'Greyscale an image: Dim GreyImage As B4XBitmap = effects.GreyScale(ExistingBmp) 'Blur an image: Dim BlurImage As...www.b4x.com
Thank you, i'll check it then..Perhaps this can be interesting?
”Graveyard Keeper: How the graphics effects are made”
I'm not into game development at all, but I still can't help but find it interesting. :) I came across the article below, which contains fascinating insights into some beautiful graphic effects. I thought it might be inspirational for somebody here in the forum, especially now that Erel is...www.b4x.com
No codes or the like provided but gives very useful concepts for a good 2D game that mimics a 3D effect and space by using sprites, color shades, 3D light simulation, shadows, etc.. thanks for sharing the link..Perhaps this can be interesting?
”Graveyard Keeper: How the graphics effects are made”
I'm not into game development at all, but I still can't help but find it interesting. :) I came across the article below, which contains fascinating insights into some beautiful graphic effects. I thought it might be inspirational for somebody here in the forum, especially now that Erel is...www.b4x.com
Wow, such a nicely made game it is and that glowing and animated light as the player moves in dark areas. It seems i would need to stay with LibGDX for the moment while crossplatform using XUI2D has yet to provide similar capability (unless i could make or find XUI2D codes to achieve the samethere are many technics to make lightning effects without any library. for example, the image im post #1 can be done in a simple way.
you have 1 texture that is the wall then you have another texture that is basically a dark background with a gradient to the center from black with alpha of let say 150 to transparent. now you just move the image with your player and you get a nice light effect. i did this in my Pixel Knight game (made with Libgdx). have a look at it here:
the light effect i show you in the game can be made easily with xui2d as i don't use shaders for that. see the explanation on how to do it in post #10It seems i would need to stay with LibGDX for the moment while crossplatform using XUI2D has yet to provide similar capability
Ah okay, i may have missed that.. I will explore how this can be done in xui2d using textures, gradient and transparency..the light effect i show you in the game can be made easily with xui2d as i don't use shaders for that. see the explanation on how to do it in post #10
you create 2 bitmaps in any painting software you want. i use GIMP. then you draw the wall bitmap to the canvas and then you draw the dark bitmap above it. i attach a simple example using simple tools like b4xCanvas and that's it. NOTE that i draw each time I move the mouse the wall bitmap BUT because the wall bitmap is not changing you don't need to do that so you can draw it only once by using an imageview or in xui2d the relevant element. this is just an example to show you how it can be done.gradient and transparency.
Thank you @ilan, your code works and saves some effort to re-invent the wheel, i may do my intended app/game cross platform with xui2D..you create 2 bitmaps in any painting software you want. i use GIMP. then you draw the wall bitmap to the canvas and then you draw the dark bitmap above it. i attach a simple example using simple tools like b4xCanvas and that's it. NOTE that i draw each time I move the mouse the wall bitmap BUT because the wall bitmap is not changing you don't need to do that so you can draw it only once by using an imageview or in xui2d the relevant element. this is just an example to show you how it can be done.
run the b4j project and move the mouse above the image and you will get a simple but nice light effect
View attachment 110961
draw only what is needed and something that does not change. this will increase your game performanceNOTE that i draw each time I move the mouse the wall bitmap BUT because the wall bitmap is not changing you don't need to do that so you can draw it only once by using an imageview or in xui2d the relevant element.