All Questions
Tagged with framebuffer libgdx
41
questions
0
votes
1
answer
54
views
Using frame buffers with Scene2D
I've been having some trouble with a custom Scene2D actor whose draw method uses a FrameBuffer. The original idea was to draw to the FrameBuffer with one shader and then draw the contents of the ...
1
vote
1
answer
114
views
How does a frameBuffer interact with multiple camera's and viewports
My goal is to draw all my visuals to a framebuffer which has a size that matches 1 by 1 with my pixel art assets. And then output the framebuffer texture to the current screen size. (A common solution ...
2
votes
2
answers
291
views
OpenGLES Alpha value modifies rgb values when reading them out with glReadPixels
When reading out rgba(1,1,1,0.1) with glReadPixels will result in rgba(0.1,0.1,0.1,???). The function is reading modified values from the framebuffer, I assume because of alpha blending.
The example I'...
0
votes
0
answers
608
views
LIBGDX Framebuffer is drawn as a black box
We figured out the issue. I was disposing the framebuffer before using it.
I recently queried about how to use the Libgdx Framebuffer correctly.
Summed up, i am making a tile-based game and i wanted ...
2
votes
1
answer
2k
views
How to use LIBGDX FrameBuffer correctly
This is my first question. I have tried to look at the source (link)
Searched stackoverflow and read some general explanations. But i don't get any wiser as to how to set it up (or understand) it ...
0
votes
2
answers
2k
views
Use default framebuffer depth buffer in a fbo
I want to achieve a post process outline effect on some actors in my game and I want the outline be occluded by other actors closer to the camera. To do so I planed to render the elements that should ...
-1
votes
1
answer
328
views
Set Libgdx FrameBuffer size in world units
I'had like to use a FrameBuffer and to set his size in world units instead of pixel.
When I set the FrameBuffer size in pixel, i have the expected result. But when I use another personal units. The ...
2
votes
0
answers
312
views
How does the libgdx FrameBuffer work
I am currently developing a simple game with libgdx. I am using FrameBuffers to render screen transitions in my game. The code is working perfectly fine normally. The code for handling screen ...
1
vote
2
answers
571
views
Libgdx fbo background transparency
I draw things on an FBO in libgdx. Than I just want to draw that fbo WITH TRANSPARENT background to my screen. But that is allways BLACK.
Is it possible to use a transparent background on the ...
0
votes
1
answer
861
views
Libgdx - different sizes when framebuffer's texture is rendered to screen
Because of my design, i want to get rid of NinePatch object, but i use it to initialize textures at the desired size using framebuffer, and then apply that textures to my custom objects
Im new to ...
0
votes
0
answers
363
views
LibGDX: Render 2D dynamic fbo texture in 3d space
this is my first attempt at a 3d game. My basic idea is that I want to have the player inside a cube, with each wall (all 6 faces) is rendered as 2d using a FrameBuffer and then draw into 3d space. I ...
2
votes
1
answer
993
views
How to correctly set the width and height of a FrameBuffer in libgdx?
I am using a FrameBuffer to rasterize several TextureRegions in a single TextureRegion, to be drawn on an Image/Actor afterwards.
The constructor of a FrameBuffer is the following:
FrameBuffer(...
1
vote
1
answer
944
views
libGDX Framebuffer Alpha Issues
I'm having issues with the libGDX FrameBuffer and Alpha. Below are two images of the expected result and the actual result. Can someone please tell me what I am doing wrong and how can I correct it. ...
1
vote
1
answer
1k
views
OpenGL frame buffer + LibGDX
I have one problem with openGL frame buffer.
I want to achieve:
Bind FBO1. Draw image1 to FBO1. Unbind FBO1.
Bind FBO2. Draw FBO1 to FBO2. Unbind FBO2.
Bind FBO1. Draw image2 to FBO1. Unbind FBO1.
...
0
votes
1
answer
1k
views
Libgdx: Framebuffer for "Fog of War"-Effect
I am writing a RTS Game for Android and I want the "Fog of War" effect on the player's units. This effect means that only a "circle" around each unit shows the background map while on places where no ...