All Questions
8 questions
0
votes
0
answers
309
views
OpenGL I want my image to change color based on stencil
I have an image and a rectangle on the screen, using the using this stencil functions I managed to render or not render a certain part of my image.
...
2
votes
0
answers
297
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 ...
0
votes
2
answers
189
views
Cannot get mask with multiple textures to work
I am trying to render three textures: Background, Black/White Foreground Mask and Foreground.
I have used this OpenGL - mask with multiple textures, but I cannot get it to work. I only get the last ...
4
votes
1
answer
4k
views
OpenGL Positional 2D Texture Masking
I have a simple 2D java game engine running using LWJGL. I have my own vertex and fragment shaders, and I'm able to render quads with textures.
I want to be able to mask one quad using the texture ...
1
vote
2
answers
880
views
How can I chain together Stencil tests from the same re-occurring routine, but keep the tests separate?
Sorry for the bad title; I don't know how else to explain this.
I have a class called a Container. An instance of Container has ...
3
votes
3
answers
1k
views
How are red dot/reflex/holographic sights implemented?
In first-person-shooters like Call of Duty, the hologram only appears when it is behind the glass portion of the sight.
In OpenGL, would it be implemented by rendering the glass to the stencil buffer ...
2
votes
1
answer
2k
views
Masking OpenGL texture by a pattern
Tiled terrain. User wants to build a structure. He presses build and for each tile there is an "allow" or "disallow" tile sprite added to the scene. FPS drops right away, since there are 600+ tiles ...
1
vote
1
answer
691
views
How to only render part of an image in lwjgl/openGL
I'm making a mining/building game in java using slick2D and I want to make it so you can only see a few blocks in any direction while you are underground. The best example I could find of what I want ...