Questions tagged [masking]
6 questions
5
votes
1 answer
Why does the G1 term have a 2 in the numerator in Walter's formula, but not in Heitz's generalized formula?
In Understanding the Masking-Shadowing Function in Microfacet-Based BRDFs, Eric Heitz derives the Separable Masking and Shadowing function as (P.83-84):
In the mentioned Microfacet Models for Refraction through Rough Surfaces by Walter et al.,…
wip
- 1,809
- 1
- 12
- 26
3
votes
1 answer
How to clip multiple tiled textures to polygon in Webgl / opengl
I have a bunch of planes each with their own texture in a grid. Currently I am rendering these as separate planes, each with their own texture, although I could use a single plane with multiple faces.
Each color is a texture.
I have a polygon mesh…
roob
- 131
- 4
1
vote
0 answers
Implementing the derivation of the Smith Shadowing function for arbitrary distributions
I'm trying to implement the derivation of the masking function G_1 by Smith.
The appendix of Walter et al 1, Hammons presentation 2 and this research paper 3 talk in detail about it and I feel as I do understand the majority of the math behind it.…
Clutterhead
- 41
- 3
1
vote
0 answers
Mask out parts of an image in OpenGL ES
I have the following object in the game
It is a dial with the little triangle showing what part of the disk is being valued.
The dial serves as a controller that sets a variable from 0-1. If the disk has 0 degrees facing left then it is 0, if the…
J.Doe
- 1,445
- 11
- 22
1
vote
0 answers
ThreeJS multicolor material
How can I have a multicolor material in ThreeJS?
I'm looking for a way to have a single material and use one or more b/w masks to color the surface of the model with the same amount of colors; the masks will not blend/overlap each others, so no…
fudo
- 121
- 3
0
votes
0 answers
How to retrieve RGBA mask used to transform image1 into image2
Let image1 be:
And RGBA mask be:
(45, 78, 251, 102)
Apply mask on top of image1 to get image2:
Now I need to do the reverse thing, given image1 and image2, is there a formula or an algorithm (there has to be right?) to find the mask?
Thanks in…
dylanbatio
- 1
- 1