Mix 2 textures with mask texture

0 favourites
  • 4 posts
From the Asset Store
25 Royalty free tracks from 16 genres including western, sci-fi, war, mythical and many more.
  • Hi, I am trying to mix 2 textures together with gray scale mix map.

    <img src="https://dl.dropbox.com/u/1660874/help.png" border="0" />

    I have tried the various blend modes, and some of the effect modes, but I can not seem to find a simple mix solution.

    The blend mode tutorial in the C2 examples folder did not help. They use textures that are already alpha masked.

    Thanks in advance for any help.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Ok, I found this little gem of a tutorial here:


    He is using textures with an alpha channel. Great tutorial though, I learned a lot.

    If no one has any ideas maybe I will email Scirra tomorrow morning, I hate to bug them. They seem really busy making us cool new features 8).

  • Hey, was wondering :

    How exactly you want to use this?

    Do you want to have the edges of some terrain blend ?

    Do you want to edit this at runtime?

    Do you want to edit in the editor (changing alpha)?

    Reason I ask is I had a idea you could use two sprites or sprite and a tiled backgrounds in a container. When you spawn it you can set the top sprite animation to different alpha'd frames (in your example above the fibres would already have the checkered alpha applied).

    Not sure if that is exactly what you want though, hence asking the barrage of questions.

  • Thank you labithiotis,

    I want to use a black and white texture to determine where 2 textures are mapped.

    I want to do this at runtime, I am making a dynamic texture template like the ones in Genetica and AutoCad. The result will be a terrain texture tileset

    The texture I can produce is like this :

    <img src="https://dl.dropbox.com/u/1660874/texture%20dump/pngbump.png" border="0" />

    The result of mixing the 2 textures would be something like this:

    <img src="https://dl.dropbox.com/u/1660874/texture%20dump/awesome.png" border="0" />

    I appreciate this very much <img src="smileys/smiley1.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)