All Questions
8,724
questions with no upvoted or accepted answers
16
votes
1
answer
2k
views
Unwanted darkening at polygon edges when using normal maps with SSAO
I'm using a SSAO alghorithm called "SAO", seen here: Scalable Ambient Obscurance.
I'm currently having issues with "smooth" normals, for example when using normal/height maps.
To ...
12
votes
0
answers
523
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 ...
12
votes
3
answers
1k
views
How to hide a post-processed mesh outline when/where the mesh is hidden
I'm working on setting up an active outline in my 3d engine, a highlight effect for selected 3d characters or scenery in the screen. After working with the stencil buffer and getting some ...
11
votes
4
answers
3k
views
Why do prefabs speed up loading?
I have a scene with a massive terrain. It took a long time to load (approximately 60 seconds) when I pressed play. I am in the editor.
I prefabbed it.
Now it only took about 5 seconds to load when ...
10
votes
0
answers
512
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 ...
10
votes
0
answers
476
views
Implementing a SceneManager using OpenFL
I'm trying to implement a basic SceneManager using OpenFL and Haxe. I don't have a lot of experience using OpenFL and Haxe so I have a few problems.
Here is how I designed the SceneManager class:
<...
10
votes
0
answers
1k
views
How do I reconstruct depth in deferred rendering using an orthographic projection?
I've been trying to get my world space position of my pixel but I'm missing something.
I'm using a orthographic view for a 2.5d game. My depth is linear and this is my code.
...
10
votes
1
answer
2k
views
How can I Implement spin in billiard game?
I'm not sure that you played billiard or snooker before.if you played you should know about spin.
but anyway if you don't know about it you can see it in this video
I want to Implement spin like this ...
9
votes
1
answer
1k
views
How do I draw a name above monsters head?
My player HUD works perfect, but when I move, the monster name moves with me instead of getting attached to the monster.
Player has a HUD and I'm using Scene2D.ui ...
9
votes
2
answers
2k
views
Creating a curved mesh on inside of sphere based on texture image coordinates
In Blender, I have created a sphere with a panoramic texture on the inside. I have also manually created a plane mesh (curved to match the size of the sphere) that sits on the inside wall where I can ...
9
votes
0
answers
636
views
How can I compensate for camera rotation changing PCSS penumbras?
I am implementing PCSS and I am using a directional light. The directional light volume is clamped to the camera frustum (as is typical with directional lights). So when the camera rotates, the ...
9
votes
1
answer
1k
views
Using PhysX, how can I predict where I will need to generate procedural terrain collision shapes?
In this situation, I have terrain height values I generate procedurally. For rendering, I use the camera's position to generate an appropriate sized height map. For collision, however, I need to have ...
8
votes
0
answers
297
views
How can I fit a tree graph into a grid?
I have a tree graph that I'd like to fit into a grid, the result being a grid-based maze that adheres to the tree graph. Are there any good maze algorithms that are able to start with a known ...
8
votes
0
answers
232
views
How to draw text with characters rendered in reverse order in a Godot game?
I need to have some text showing up in my Godot game in a way that each character overlaps the character directly to its right, like so:
...
8
votes
1
answer
328
views
How to move a portion of bezier/spline curve along its complete bezier/spline curve?
Based on the image below, I have a curve (orange) which is a bezier sub-curve of an original curve (longer black curve). The original curve consists of a number of cubic bezier curves joined together. ...
8
votes
1
answer
222
views
How to create an illustrator/photoshop-like pentool for creating bezier curves in Unity
I found a very useful bezier curve creation code here, which I am using. I need to create complex segmented bezier curves so I want update the code to create illustrator/photoshop-like pen tool bezier ...
8
votes
3
answers
10k
views
Handling movement on sloped surfaces - clamping character to sloped surface
I've noticed that a lot of people seem to have this issue but I've yet to find an actual working solution - when a rigidbody-based character controller (I'm not using Unity's character controller) ...
8
votes
0
answers
375
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 ...
8
votes
0
answers
1k
views
How do I make volumetric grass?
I've been extremely interested in volumetric technology, especially for grass.
Online resources are extremely scarce on this topic.
What is the difference from creating a lot of mesh billboards?
...
8
votes
1
answer
2k
views
LibGDX Box2D Lights - Illuminate background
I have a box2D world made of tiles. I use a custom DirectionalLight for light up the scene from above (It shines through transparent blocks [eg.: the water] more deeply). The problem is (as expected), ...
8
votes
2
answers
2k
views
Collision detection between draggable object and world objects?
I have a game I'm making in Javascript that will involve combining items by dragging and dropping them onto each other. Think Alchemy or similar.
So far, so good, but I hit a snag while trying to ...
8
votes
2
answers
2k
views
NegaScout with Zobrist Transposition Tables in Chess
I'm trying to put Transposition tables into my alpha beta scout. I do see an incremental speed boost I think toward mid or late game, however, even with a table size of 1-2GB, its may or may not be ...
8
votes
1
answer
1k
views
Why the AnchorPoint doesn't affect the `CCLayer` Positioning?
I think there is a difference between the CCLayer and CCNode behavior when I change their AnchorPoint.
I will describe what I mean and please somebody explain it.
Scenario:
I start with ...
8
votes
1
answer
734
views
Understanding how texCUBE works and writing cubemaps properly into a cube rendertarget
My goal is to create accurate reflections, sampled from a dynamic cubemap, for specific 3d objects (mostly lights) in XNA 4.0.
To sample the cubemap I compute the 3d reflection vector in a classic ...
8
votes
2
answers
501
views
Why isn't my cbuffer updating?
I am really frustrated because my cbufer isn't updating.
This is my VS:
...
8
votes
2
answers
782
views
Android libGDX FreeTypeFontGenerator exception
I am working on a libGDX project for Android. Since I added the following code, running the game on my Android phone produces an exception:
...
7
votes
2
answers
428
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 ...
7
votes
1
answer
2k
views
Unity 5.3.5 - How to setup a lobby with general game settings?
I am currently working on the lobby for my game. I have followed these tutorials (https://www.youtube.com/watch?v=jklWlm5v21k), which were very helpful, and was able to setup my lobby like this.
The ...
7
votes
0
answers
743
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
Implementing proportional navigation in 3D
Good afternoon guys,
a = N * λ' * V
is the formula for the commanded acceleration required to hit the target,
where N is the proportionality constant, λ' is the change in line of sight and V is ...
7
votes
0
answers
842
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
0
answers
693
views
How to link assimp lib to universal app
I cannot make assimp object loader work with universal app, and I got the same problem as this one: Assimp and directX12 universal apps
I tried the static library approach mentioned in the answer of ...
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
550
views
On Android, How can I avoid FPS drops during sensor listener setup/tear down?
When I open my Android app after 5 or 10 seconds it sets up the sensor listener, during which I see clear stuttering and the FPS drops for a second to 40 instead of 60.
Is there a way to avoid 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 ...
7
votes
2
answers
1k
views
Aligning pathfinding to the center of tiles?
I'm looking to achieve tile by tile movement in a project I'm working on. I employed the use of the asset Simply A* Path-finding to allow a unit to navigate the terrain.
Since the tiles are simply ...
6
votes
0
answers
78
views
How can I make sure my OpenCL code works correctly on different graphic cards?
I'm testing on adding some OpenCL code in my game, but I only have a single Nvidia card & I'm not sure the code will run normally on other platforms.
Is there any way to make sure my code runs ...
6
votes
0
answers
138
views
How many Pipelines in a Typical Rendered Scene DirectX12
I'm learning DirectX12 right now and I'm missing a few pieces of the puzzle in my own head on the overall structure of how you would setup a game. Specifically, I'm trying to get an idea of how ...
6
votes
0
answers
303
views
LibGDX Rectangle not Scaling to ImageButton Instance as Expected
below is the class I wrote for a GameButtoninstance:
...
6
votes
0
answers
676
views
Procedurally generated paths with intersections
The Problem
I've been attempting to create some procedurally generated paths for a while now, but I've reached a problem when it comes to generating the intersections of the paths.
The paths are ...
6
votes
1
answer
696
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
2
answers
558
views
Collision detection problem in XNA4/Monogame
I have been trying to get 3D collision detection working for a while and I think (hope) you people can help me.
For my project I have created a 'sprite3d' kinda class which is called ...
6
votes
0
answers
150
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
273
views
How can I call a native mobile API in Construct 2?
How can I use mobile API features in a Construct 2 game (HTML 5/JavaScrit engine)?
I didn't find anything about that on the net, unlike other game frameworks like Corona Enterprise or Cocos2d.
6
votes
0
answers
180
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
809
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
255
views
How do I detect image clicks in Dark GDK?
I am trying to determine if an image has been clicked, using the Dark GDK game engine. I've found no methods in the engine that do this.
I would rather not brute force this with a large nested if/...
6
votes
0
answers
178
views
How can I create a set of collision points for an arbitrary mesh?
In my project I am working on automatically deforming an arbitrary mesh with respect to another arbitrary mesh, within the context of user generated content, similar to this deformer being developed ...
6
votes
2
answers
3k
views
Reading from a staging 2D texture array in DirectX10
I have a DX10 program, where I create an array of 3 16x16 textures, then map, read, and unmap each subresource in turn. I use a single mip level, set resource usage to staging and CPU access to read. ...
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 - ...