Mix 2 textures with mask texture

Get help using Construct 2

Post » Thu Feb 28, 2013 5:25 pm

Hi, I am trying to mix 2 textures together with gray scale mix map.


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. jojoe2013-02-28 17:27:23
B
28
S
8
G
4
Posts: 767
Reputation: 5,940

Post » Fri Mar 01, 2013 4:17 am

Ok, I found this little gem of a tutorial here:
https://www.scirra.com/tutorials/322/making-an-interactive-treasure-map/page-3

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).
B
28
S
8
G
4
Posts: 767
Reputation: 5,940

Post » Fri Mar 01, 2013 8:23 am

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.
B
24
S
11
G
5
Posts: 140
Reputation: 5,004

Post » Fri Mar 01, 2013 8:48 am

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 :


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



I appreciate this very much
B
28
S
8
G
4
Posts: 767
Reputation: 5,940


Return to How do I....?

Who is online

Users browsing this forum: nimos100, vargazso and 23 guests