Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: textures blending  (Read 1489 times)

0 Members and 1 Guest are viewing this topic.

bostonbrooks

  • Newbie
  • *
  • Posts: 6
    • View Profile
textures blending
« 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.

kitteh-warrior

  • Guest
Re: textures blending
« Reply #1 on: June 29, 2015, 02:15:33 pm »
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. 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.

bostonbrooks

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: textures blending
« Reply #2 on: June 29, 2015, 03:04:56 pm »
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.

 

anything