Unanswered Questions
1,093 questions with no upvoted or accepted answers
12
votes
1
answer
656
views
Spherical Area Lights do not match reference
So I'm adding spherical area lights to my application, and comparing my results with mitsuba, I am getting some differences (left is my approach, right is mitsuba - a pathtraced reference):
What I am ...
10
votes
1
answer
704
views
Environment mapping without cubemap (need coordinates projection)
I'm working on a project with C++ and glsl (4.1).
I have implemented a mirror object which is a plane at height 0 that works as follow:
I render the scene with a MVP computed such that the camera ...
8
votes
2
answers
490
views
How to generate a multiplier map for radiosity
I am following this tutorial: here
I am at the part where you are creating a hemicube.
I have got the code to render the scene into a texture and therfore an array.
Now how can I generate a so-called ...
8
votes
0
answers
432
views
How to draw Shadow Volumes in one draw call?
I've got a simple app that draws 3D cubes using instance rendering and I'm implementing Shadow Volume. Each cube's vertex, uv, normal and index data are statically stored in 4 vertex array buffers. On ...
7
votes
0
answers
844
views
How to correctly implement 'layered lighting' with Box2D-Lights
How does one only allow Box2D-Lights to affect one and only one OrthographicCamera.
After researching, I found the following answer. This answer goes into detail ...
7
votes
0
answers
1k
views
Irradiance Map ( Irradiance environment map)?
As irradiance map is generated for every possible normal for all the texels in environment map (as every texel act as a light source) so that we can look up irradiance map, based on normal of fragment ...
7
votes
1
answer
1k
views
Draw Edges in OpenGL
I use blender game engine and blender uses OpenGL for graphics. How can I draw lines around all 3D objects? Would this be a job for a filter? Mainly, I want my end result to look drawn.
I found this:
<...
7
votes
1
answer
4k
views
Drawing fonts with LWJGL3 with OpenGL
I'm very sorry if this question has already been answered, but since I've been struggling with this for many days I thought I'd give it a shot here.
My goal is to somehow render some text on the ...
6
votes
0
answers
325
views
LibGDX Rectangle not Scaling to ImageButton Instance as Expected
below is the class I wrote for a GameButtoninstance:
...
6
votes
1
answer
740
views
Spawning enemies in four different positions with a fixed trajectory in android game
This is my first android game, I appreciate all the help. I want to define 4 spawning zones starting from out of the screen (left, right, up and down). Enemies coming from this areas have a fixed ...
6
votes
0
answers
161
views
balloon ligher than air with libgdx, impementation of FixtureDef.density, gravityScale, linearDamping?
I use libGdx/box2d's physic. My intention is to create a balloon filled with helium (a body, what hovers above a surface, if we apply a little force to it - it moves fast but not far, if we push ...
6
votes
0
answers
195
views
Why is my OpenGL enabled Java game not detected by Fraps?
Recently I found out that I could enable OpenGL hardware acceleration in my Java game with the line
System.setProperty("sun.java2d.opengl", "True");
Initial ...
6
votes
0
answers
979
views
Text alignment in OpenGL with FreeType2
I'm trying to implement font rendering and have got into some trouble with glyph metrics.
Here's the code where I get the metrics:
...
6
votes
1
answer
2k
views
Water wave simulation
I'm having a strange behavior simulating water waves. It works perfectly with directional waves, but point waves don't work like expected. If i do not normalize the directional vector(WoldPosition - ...
5
votes
0
answers
257
views
Implementing rubber rope
I'm using LibGDX to implement rubber rope in which player can fly and launch. I know I could use Box2D as physics engine and I'm going to one day, but I'd like to learn it myself for now.
I've ...