16
votes
0answers
529 views

How can I get PagedGeometry grass to receive shadows?

I made the switch to Ogre3D (v1.7) and to using PagedGeometry. What I'm trying to do is make a simple scene with a terrain, some trees and grass. In a nutshell, I would like to achieve this kind of ...
9
votes
0answers
135 views

Dual Contouring - Finding the feature point, normals off

I am following this tutorial to implement Dual Contouring http://www.sandboxie.com/misc/isosurf/isosurfaces.html My data source is a grid 16x16x16; I traverse this grid bottom to top, left to right, ...
8
votes
0answers
271 views

How to cache resources in my homebrew rendering system

Background: I am designing a simple 3D render system for an entity component system type architecture using C++ and OpenGL. The system consists of a renderer and a scene graph. When I finish the ...
7
votes
0answers
116 views

Collisions between players in multiplayer racing game

I'm creating a simple racing game (spaceships, no gravity) using p2.js, phaser and node.js. What I have done: Client receives world state from server: extrapolate other players based on latest ...
7
votes
0answers
133 views

How do I run functional tests against my Unity3D game?

Context I am continuing some legacy code for a game in Unity3d, and I want to write some functional tests meant for regression, to ensure I don't break things when implementing new things or when ...
7
votes
0answers
359 views

SSAO and normal issues

I'm using a SSAO alghorithm called "SAO", seen here: http://graphics.cs.williams.edu/papers/SAOHPG12/ I'm currently having issues with "smooth" normals, for example when using normal/height maps. To ...
6
votes
0answers
68 views

Learning how to make imposters manually in Unity - how to render an object to a texture not what camera sees?

I am trying to learn the most performant way to make an imposter in Unity manually - not using pre-fabricated solutions. My first guess is that it should be achieved by using RenderTexture and a ...
5
votes
0answers
119 views

Diamond-Square algorithm output is random and noisy

I have implemented a rough interpretation of the Diamond-Square algorithm in C++ to create some semi-realistic fractal terrain, but the output just seems like a random y value at each point rather ...
5
votes
0answers
57 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 ...
5
votes
0answers
356 views

How to make animals Playable in Skyrim

I have some experience with the Skyrim Creation Kit, and have made some small mods. I am really interested in creating new races, and have already made a mod that allows the player to create an old ...
5
votes
0answers
98 views

How can I record voice through using Kinect camera as the microphone?

Originally I intend to use kinect camera as the device for voice communication. But at least now I want to use it as the input device for recording a voice and play that voice in the same pc. How can ...
5
votes
0answers
91 views

OpenGL: Frame partially jumps back and forth

I'm working on a project with SDL and OpenGL. The game works great on Windows, Linux, OS X and iOS. However, the Android version is showing a problem on my phone in particular. I have tested another ...
5
votes
0answers
170 views

How do i find the circumsphere of a tetrahedron?

I'm looking for the most minimized equation to find the center coordinates and the radius of a tetrahedron circumsphere given four 3D points. What I found on the internet mainly deal with the circum ...
5
votes
0answers
162 views

How to use a mask texture with Kobold2D

I am an iOS developer but I'm new to cocos2d. I'm working on new game, I use Kobold2D, have cocos2d installed too, and I want to make this effect: I know how is done with Flash, but can't make it ...
5
votes
0answers
485 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 ...
4
votes
0answers
138 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 about how to prevent one camera from ...
4
votes
0answers
53 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 ...
4
votes
0answers
111 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 ...
4
votes
0answers
39 views

Why Can't I duck reverb on the mix bus in Unity?

i'm surprised there is so little documentation on this issue. But i'm trying to duck the audio on all the mix buses in Unity so that you can clearly hear the VO of the game. Now it works great except ...
4
votes
0answers
81 views

Depth of Field Blur - Weighted sampling?

I've been studying Intel's fantastic article titled "An investigation of fast real-time GPU-based image blur algorithms" (here), where-in they state that Gaussian blur would need to be customized for ...
4
votes
0answers
75 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 ...
4
votes
0answers
69 views

How do I align the cube in which shadows are computed with the view frustrum? (“View Space aligned frustum”)

Short and concise: Given 8 world space positions that form a cube of arbitrary size, position and orientation and given an arbitrary light direction. How do I compute the View and Projection matrix ...
4
votes
0answers
81 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 ...
4
votes
0answers
102 views

XNA Shader working different on different PC's

I am working on a game in C#/XNA which uses custom shaders for drawing. When the code is compiled on my machine it works perfectly on all computers I tested, but when my team member tries to compile ...
4
votes
0answers
84 views

Draw Edges in OpenGL

I use blender game engine, and blender use 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: ...
4
votes
0answers
93 views

Conceptual question regarding Belief-Desire-Intent agent

I've been researching the Belief-Desire-Intent model and the way they used it in the original Black and White Game(which is the same, but they also defined decision trees as opinions). I have a ...
4
votes
0answers
98 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 ...
4
votes
0answers
142 views

Can a sprite be rendered with thickness in Unreal Engine?

Is there a convenient way to have a 2D pixel art image with transparency (not partial) rendered with a thickness in Unreal Engine? Paper2D does exactly what I want, except it's a flat plane. I'm able ...
4
votes
0answers
138 views

How to create a White Hot thermal camera?

I'm very new to Unity and at this point I don't even really know what questions to ask to move forward with what I want to do. My end goal is the ability to switch between a standard color view, a ...
4
votes
0answers
230 views

smoothly recenter view over time

I'm currently using the Google Cardboard SDK for Unity to build a fighter pilot simulator. What I'm currently trying to do is recenter the view(CardboardHead) smoothly over time when the user looks ...
4
votes
0answers
94 views

Raymarching tangents

I've recently started to experiment with raymarching over on shadertoy.com. It seems common to find the normal for a distance field like so: vec3 scene_normal(vec3 p) { vec3 e = vec3(0.001, 0.0, ...
4
votes
0answers
285 views

How much is atomicAdd slower than an atomic counter?

I am considering replacing an atomic counter in my shader code with a SSBO an atomicAdd operation. What I need to know is the difference in performance of these two. I know the atomic counter executes ...
4
votes
0answers
457 views

Ashikhmin-Shirley model implementation: ugly result

I am trying to implement the Ashikhmin-Shirley model using these formulas: This is the GLSL 1.2 fragment shader code: uniform vec4 materialAmbient, materialDiffuse, materialSpecular; uniform ...
4
votes
0answers
128 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 ...
3
votes
0answers
33 views

Unity Capture And Display Live Camera Feed

I want to display the video using the device camera on specific part of the screen on iOS, android and Editor. I was able to find the WebCamTexture which display the camera video on the Quad (3D ...
3
votes
0answers
30 views

Light bounding geometry for deferred rendering

What is the best bounding geometry to use in a deferred renderer for each one of the following light types? Sphere area light (obviously a sphere) Disk area light (obviously a cone) Rectangular area ...
3
votes
0answers
28 views

Unity's Touch API is exposing only half of the available Android touch data (image attached)

Unity is only exposing half of the touch data that Android itself receives. I'm using the standard Input.touchCount and Input.GetTouch() API. My test scene is quite simple. My game is precision swipe ...
3
votes
0answers
23 views

LibGDX: Shader files in assets - Access is Denied

I stored the glsl files in android -> assets -> shaders directory, but when I run the app, an error is displayed: Error:Gradle: Execution failed for task ':android:mergeDebugAssets'. Error: ...
3
votes
0answers
18 views

Tile Texture If Dimensions of Sprite Are Larger Than Texture

I have a sprite that acts as a wall in a game that I am building. I would like to have the brick texture repeat itself instead of stretch to fit the height of the screen. I tried: Texture ...
3
votes
0answers
69 views

Geometry Shader crashing

I keep getting some strange errors in my Geometry shader and when I search for the cause of the errors, it returns nothing substantial. Here is the code. Shader #version 450 core layout(triangles) ...
3
votes
0answers
44 views

How do I find the face of an object?

I'm working on a build mode but the thing of it is the player is able to deform meshes. Part of my build system includes having "snap" points thus I need to be able to find the face and recenter the ...
3
votes
0answers
46 views

Rotation of a ball moving on a surface

I have a ball that moves along a platform. The ball is characterized as a sphere that has a radius and a position. The platform basically is a rectangle consisting of two vertex triangles. Its class ...
3
votes
0answers
22 views

Source Engine - Getting team score

How can i get teamscore in code?in hl2mp_gamerules.cpp i found this: CTeam *pCombine = g_Teams[TEAM_COMBINE]; CTeam *pRebels = g_Teams[TEAM_REBELS]; if ( pCombine->...
3
votes
0answers
25 views

Flicker when drawing multiple shapes over image based texture

I'm rendering video frames with multiple color filled shapes over it using SharpDx and D3D11. Rendering seems to be fine when just rendering the video frame and is as expected. Now if i draw a ...
3
votes
0answers
39 views

Emissive material not casting light on itself in Unreal

I have a static mesh that has an emissive material applied to part of the mesh. The emissive material successfully cast light to surrounding objects. However, the face of the mesh with the emissive ...
3
votes
0answers
82 views

How can I fire a bullet from an actor's position?

I want to shoot a bullet from an actor. I know I need a location in space to fire a bullet from, which I've got in the form of a model set as an actor. Now I need to create a new object (in this case,...
3
votes
0answers
57 views

I get weird perspective using GLM where the depth is flipped. Please help

The depth is rendered wrong and I can't figure out why. using namespace std; using namespace glm; int width = 640; int height = 480; float aspect = (float)width/height; int fps = 60; void start(){ ...
3
votes
0answers
60 views

How to handle clothing poke through for customizable characters?

I am in the process of developing a character customization system and I want to setup the base character model (the body) so that it works with which ever process I end up using. There are 2 aims ...
3
votes
0answers
25 views

Automatic audio segmentation and find the most energetic segments

What algorithm can be used for audio segmentation? I want to divide song to segments and find the most energetic segments (begin and end in seconds). It is needed for the rhythm-game. Examples: ...
3
votes
0answers
102 views

Tick frame: update order problems

Sorry, it's a bit long story but I hope you can help me. First of all: I have an entity class called SceneObject. The SceneObject has components (eg. RenderableMesh, Camera) and transformation data (...

15 30 50 per page