Skip to main content

Questions tagged [graphics-programming]

Programming related to the visual representation of information on computer screens.

Filter by
Sorted by
Tagged with
0 votes
1 answer
825 views

I'm a fresher on engine programming. I have a question of how we can get the vertices buffers of vertex formats from the mesh file. For example, in OBJ file or FBX file, we save the positions, ...
LLL's user avatar
  • 3
3 votes
0 answers
898 views

I'm working on a mobile game in Cocos2D. The game mechanic is very similar to Ori and the Blind Forest's parachute (Kuro's feather) mechanic. I want to be able to render a visual effect for wind ...
blastb's user avatar
  • 31
0 votes
0 answers
146 views

I'm making a single-screen scrolling platformer (OpenGL/SDL) and I've made a tilemap out of a 2D array, pre-sized with variables of the LEVEL_HEIGHT and ...
loremIpsum1771's user avatar
0 votes
1 answer
411 views

I'm trying to replicate a certain game mechanic from the game Diggles. This game takes place in a vertical cross-section of the earth and allows the player to dig tunnels and caves into the ...
erlking's user avatar
  • 103
22 votes
6 answers
6k views

I have been developing a game engine, and have been discovering and reading up on game technologies such as anisotropic filtering, ambient occlusion, anti-aliasing, etc. Usually in games, you can ...
Java Man Tea Man's user avatar
1 vote
3 answers
2k views

I am building a tile game using Pixi.js. The game features dynamically-generated terrain and a day/night cycle. I'd like to use a normal map to give the sense of sloping hills or mountains. Luckily ...
JSideris's user avatar
  • 143
1 vote
0 answers
180 views

I am a front end web developer and I've always been interested in building games. I work primarily with HTML, CSS, PHP, and JavaScript on a daily basis, so I'm not new to coding. I would like to ...
JJefferyDev's user avatar
1 vote
1 answer
220 views

Very often I see skeletal animation implemented like this: On Init - store bone's local transforms and inverse bind pose On Update - traverse the skeleton tree, multiplying local transforms on the way ...
user avatar
0 votes
1 answer
429 views

I have a texture shown over the screen using screen space UV's. The Texture is 495x,596x, Screen size is 888,500, but can change. The Texture has a Tile of (3.469775f,1.392644f) to correct for ...
Jeremiah Leslie's user avatar
1 vote
2 answers
2k views

I need some help with getting my camera to work in java for a game that I am making. The problem is is that I've never made a camera in a game before and this is my first time trying to make one in a ...
BlueJet's user avatar
  • 102
2 votes
0 answers
2k views

I'm having trouble understanding Dual Contouring yet and I need some explanations from someone who has first hand experience. I searched all I could before writing this question. I've already read: ...
Arthur 'Gibraltar' Condino's user avatar
1 vote
2 answers
113 views

I'm trying to program a remake of the classic Missile Command Atari game from scratch, but I've run into a problem. So I have a function that can draw a line from one point to another. I figured I ...
Praefervidus's user avatar
4 votes
1 answer
753 views

Here are my Photoshop actions: step1 - convert the current image into gray step2 - use the default parameters, as showed in the screenshot step3 - use the 『Hue/Saturation』 to convert the grey image ...
AGamePlayer's user avatar
3 votes
2 answers
3k views

Mode X was hack invented during the good old days of DOS gaming, offering 320x240 resolution, 256 colors, square pixels, and page flipping. VGA adapters had 256 KB of memory. 320 * 240 = 76800 bytes ...
Ansis Māliņš's user avatar
4 votes
1 answer
631 views

I am trying to make a top down view game in java using the Slick2d library, for lighting I wanted to do something like this : http://www.redblobgames.com/articles/visibility/. I was wondering if there ...
user3558075's user avatar
2 votes
1 answer
168 views

I am trying to generate labeled training data for an artificial visual cortex to learn on. I'm looking for a tool that will, instead of rendering the scene at each pixel just give me the pre-rendered ...
ZKe's user avatar
  • 123
1 vote
1 answer
88 views

I'm working through my first attempt at a "graphics engine" (I use the term loosely as I'm not aiming for much more than something that will display a few meshes). I want to leave my classes as ...
ThisHandleNotInUse's user avatar
2 votes
1 answer
651 views

I need to render a small portion of the display to a texture. I found a script to simulate a scissor rect by modifying the projection matrix - Unity 5 doesn't seem to provide any out-of-the-box ...
3Dave's user avatar
  • 3,141
3 votes
2 answers
3k views

I'm looking for a way to create a dynamic soft see-through hole effect for room walls. I know a few ways how to do it (for example multitexturing with second layer being the hole mask in screenspace), ...
mt_'s user avatar
  • 586
2 votes
0 answers
151 views

For the purpose of the question, a unit = 1 meter. So, I have a triangle strip that is 4x8 meters (for argument's sake; it is procedurally generated by player). I also have a texture which is ...
dmarra's user avatar
  • 161
48 votes
2 answers
15k views

Though I am a programmer by trade, I have barely touched game development at all. I've had this question for some time, and now that I'm looking into game development I thought it would be a good time ...
gnoblin's user avatar
  • 473
1 vote
1 answer
1k views

This is the code that I use to setup my shader: ...
user1610950's user avatar
-1 votes
2 answers
221 views

What is the difference between a line and a line segment from the implementation point of view? To me, line segment means: ...
user avatar
1 vote
0 answers
649 views

These functions sample multiple RGBA pixels but return only a single component. OpenGL: https://www.opengl.org/sdk/docs/man/html/textureGather.xhtml DirectX: https://msdn.microsoft.com/en-us/library/...
Alan Wolfe's user avatar
  • 2,373
1 vote
0 answers
389 views

I get some strange artifacting with textures depending on their size. I run OpenGL 3.3 with an GTX 580 so it should definitely support non power of two textures. I've narrowed down the problem ...
user avatar
9 votes
1 answer
2k views

I sometimes see references to lobes when talking about lighting, especially with specular lighting, but also with spherical harmonics which doesn't do specular. Can anyone explain what exactly a lobe ...
Alan Wolfe's user avatar
  • 2,373
0 votes
1 answer
2k views

After reading the article "An Efficient Representation for Irradiance Environment Maps", I'm a bit confused as how to calculate the spherical harmonic coefficients. I'd like to generate these ...
Phaino's user avatar
  • 3
3 votes
0 answers
211 views

I wonder how skeletal animations in games work. I am writing my own graphics engine for fun, and I have come across several problems with animations. Here is how I do it right now: Load the mesh with ...
mikael törnqvist's user avatar
3 votes
1 answer
10k views

I looked at this page that mentions the SDL2_gfx library for rescaling SDL_Surfaces without the image getting blurry: SDL zooming/upscaling without images becoming blurry? I wanted to know if it was ...
Cuppasoup's user avatar
  • 181
1 vote
1 answer
76 views

So I have a video stream of known resolution and I have a VR headset via HDMI at a known resolution. Is there an existing library to create the slight fisheye and side-by-side layout for these ...
uMinded's user avatar
  • 111
8 votes
2 answers
5k views

I'm seeing low quality bilinear texture sampling in WebGL, OpenGL and Directx, and was wondering if anyone knew how to make it higher quality? The picture below should help show what I mean. The ...
Alan Wolfe's user avatar
  • 2,373
4 votes
2 answers
3k views

I have an LCD monitor display and Oculus Rift attached to my PC. I have an Nvidia 820M dedicated GPU. How does the GPU know to which display device it has to render (or to send rendered information)? ...
veerendra's user avatar
1 vote
2 answers
821 views

I have Nvidia 820M GPU installed in my windows 7 machine. In nvidia control panel it is showing it supports Direct3d API version 11. Am I able to run OpenGL applications(using GLUT,GLFW) on my machine ...
veerendra's user avatar
8 votes
1 answer
441 views

If you have a volume texture with mipmaps, GL_LINEAR_MIPMAP_LINEAR texture sampling will perform quadrilinear texture sampling. Is that implemented in hardware like bilinear texture sampling is? Or ...
Alan Wolfe's user avatar
  • 2,373
1 vote
1 answer
201 views

Let's say that i have a regular 2d texture (not a volume texture). Is it possible to do trilinear texture sampling of that texture even though it isn't a volume texture in opengl or directx? ...
Alan Wolfe's user avatar
  • 2,373
12 votes
2 answers
11k views

In a WebGL I'd like to send a screen space quad through that gets processed by a fragment shader, but have the fragment shader only write out a pixel under certain conditions (say... that it was ...
Alan Wolfe's user avatar
  • 2,373
1 vote
1 answer
3k views

In OpenGL, what is the difference between GL_DEPTH_COMPONENT and GL_DEPTH_STENCIL? I have looked around and have been unable to find a clear explanation. Information on their usage with GLSL would ...
Cimera42's user avatar
0 votes
0 answers
654 views

I'm looking into hdr tonemapping and so far all the equations I've found result in really, dulled results. One i haven't tried uses an average luminance of the image. The pdf I've been reading ...
NeomerArcana's user avatar
1 vote
1 answer
142 views

I know that the formula for irradiance at surface point p with normal n given a point light source at position l is: H = I(cos x) / ||l - p||^2 Where: x = angle ...
Mitch Conner's user avatar
5 votes
3 answers
4k views

A 2D game called Deer Hunter has projectiles like this: Are the projectiles 2D or 3D models? How could I implement something similar?
user64313's user avatar
1 vote
1 answer
332 views

Given a camera position defined as (eye, look, up), where "up" not quite at right angles to eye->look, how would I re-orthogonalize "up"? I've had a hunt around, but did not find anything, yet if I ...
xeolabs's user avatar
  • 147
0 votes
1 answer
3k views

I wanted to know if there was a standard and efficient method to load meshes from a file into DirectX11. Currently, I'm loading .obj's by parsing them in and storing their information into a vertex ...
Phaino's user avatar
  • 3
0 votes
1 answer
134 views

I am currently having issues with HLSL shaders. I am trying to implement point lights but I am getting unusual data when debugging the shader in Visual Studio. I have read on several sites that say ...
Nick's user avatar
  • 113
0 votes
1 answer
250 views

I am working on creating a procedural cylinder mesh with Unity C#. I have everything working but there is one thing I would like to implement in my existing code is to define a vector3 halfAxis which ...
ckzilla's user avatar
  • 415
0 votes
2 answers
928 views

I'm getting into Opengl 2.1 and wanted to know how can I move 2d sprites. I already created my vbo and ibo, and the vertex data is already there. But, how can I move a sprite once it's already drawn? ...
twkmz's user avatar
  • 183
5 votes
2 answers
489 views

My 2D game has a second camera on the scene that renders an upside down image of the scene and distorts it, giving the effect of water reflection. I render this camera first, and on top of it I render ...
Leo's user avatar
  • 1,585
1 vote
1 answer
7k views

I want to add a text to a cube in Unity. I have a cube which has a 3d text as a child. I am using the below UnityScript to write on the 3d text: ...
Dchris's user avatar
  • 119
1 vote
2 answers
387 views

Having "n" number of overlaying channels (bitmaps in the same place, layers etc.) how to calculate required alpha for each of them, so they "hide" background completely? Each layer can have equal ...
madneon's user avatar
  • 295
1 vote
1 answer
914 views

I have set myself onto the task of creating a class BaseObject, which represents a graphics object with an associated shape as the member variable shape, which is a pointer an object Polygon. I'll ...
Tom V M's user avatar
  • 23
2 votes
1 answer
512 views

I've always loved the look of games that just use simple lines and polygons for graphics. Rez is one of my favorite games, visually. I'm a programmer and designer first and foremost, and I'm horrible ...
takua108's user avatar
  • 255

1 2 3
4
5
9