Questions tagged [masking]

Masking is a digital image processing term simialar in concept to bitmasking. An image mask is applyed pixel-by-pixel to other image and behaves like a sieve to color values.

12 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7
votes
0answers
180 views

How to use a mask texture with Kobold2D

I am an iOS developer but I'm new to cocos2d. I'm working on new game, I use Kobold2D, have cocos2d installed too, and I want to make this effect: I know how is done with Flash, but can't make it ...
5
votes
1answer
431 views

How to clip or mask entity in android/andengine?

I want to implement masking with sprite in Andengine. I want same functionality as in ios class called SKCropNode which works like an masking node! Is there any workaround like this in andengine/...
3
votes
1answer
380 views

How do I make mask work

I have been trying to make a game, but mask collision doesn't seem to work. Here is my code: ...
2
votes
0answers
144 views

How can I make a transparent hole with shaperenderer using stencil masking in libgdx?

I'm making a 2d game, where I need a resizeable, moveable rectangle outline. I'm trying to use stencil masking to do it by cutting a hole in a solid rectangle, and I thought this would help: How can ...
1
vote
0answers
28 views

“Cut through” an object to view another

I have a raster image of a map. I also have coordinates corresponding to the boundaries of the ocean, so I can create my own ocean in Unity as a mesh. If I render both at the same time, I see a square ...
1
vote
0answers
29 views

Adding underwater shadow to 2D top down boat

I have a boat/hovercraft sprite in my game. It's topdown 2D view, but it's actually a 3D scene, for better lighting and other effects. I want to add a buoyancy effect, so that the hovercraft floats ...
1
vote
0answers
324 views

Stencil inside Stencil? (Multiple masks on same object)

So please take a look at what I want to achieve The Red and Blue part is the object I want to mask. The thing is that it will be masked by the green area, and only after that it will be masked by the ...
1
vote
0answers
127 views

Stencil IncrSat and DecrSat explanation

Can someone please explain me what is the purpose of IncrSat and DecrSat? Currently I know that they increment/decrement the current value in the buffer and they make sure the value is between 0 and ...
1
vote
0answers
842 views

Unity Free Inverse Depth Mask?

How would it be possible to create an inverse depth mask? In this case, I refer to a depth mask as a shader attached to a mesh that 'pokes a hole' through the current camera layer to let you see the ...
0
votes
0answers
24 views

How to programmatically overlay a shader on a terrain by mask (Unity)?

I can paint the terrain with textures.I would like to see water drawn with a shader, and not a stationary water texture on the terrain. Moreover, it was possible to assign a shader to the terrain, but ...
0
votes
0answers
14 views

Masking a 3d object (Unity)

I have a 3d model of a glass and I want to mask a cube so that I can emulate water filling the glass. Any ideas on how I can do this?
0
votes
0answers
74 views

Pygame Mask Doesen't Detect Collisions

I'm trying to make my game's collisions with masks. I have 6 masks but only 2 works. My code is: ...