SFML community forums
Help => Graphics => Topic started by: bostonbrooks on June 29, 2015, 01:22:40 pm
-
I am experimenting with 2d isometric game worlds.
I am using csfml.
I currently only have one texture for the ground which is just grass.
I have a texture that represents the area that is visible.
I have a texture that represents the area that has been explored.
I want to blend them so to give the actual texture to display.
The attachment shows the results i would like to acheive.
I would also like to blur/fade the edges of the light and dark regions.
-
What's the question, or even problem here? ;)
If you are asking for suggestions about how to blend textures together, then I suggest using sf::BlendMode (http://www.sfml-dev.org/documentation/2.3/structsf_1_1BlendMode.php). Another suggestion would be to go and try something, see how it works, and if it isn't satisfactory try again. I'm not sure what else to tell you.
-
Thats OK, what you described is what I have been doing.
I have been doing many small experiments of what I need for my engine,
although I wouldnt expect to produce a commercial-grade product in like five years.
Working things out for myself is something i excell at,
but I was hoping some pro would swoop in and give me an easy answer.
Its annoying having to convert between textures and rendertextures.
I may decide to switch to a different media library.
Wotevs OK have nice day.