A very generic term referring to visual part of a game. Try to avoid unrelevant usage and instead tag for specific graphics type (2D, 3D), API, framework or a library you are using, if possible.

learn more… | top users | synonyms

1
vote
0answers
59 views

convert 2d pt into non-affine coordinate system

Say I have a coordinate system that goes from (0,0) to (1,1). We'll call this screen_space. Within this coordinate system, I have 4 points that I would like to define another coordinate system. One ...
0
votes
1answer
16 views

Using glm to rotate the modelview matrix based on the cursor position

I am rendering a 3D model of an object, and I want the user to be able to rotate around that object by dragging the mouse. To do this, I want to use the cursor position to continually update the ...
0
votes
2answers
69 views

c++ graphics and pixels help?

Is there a way to change the color of a specific pixel in C++? I've made an example project where I used graphics.h's bar to change every pixel on the screen: #include <graphics.h> int main( ) ...
2
votes
0answers
33 views

What steps can developers take to improve the graphics of their games? [closed]

My understanding is that the differences in graphic quality between games for systems like Xbox One and PS4 and Pixar-style movies stems from that the former are rendered in real-time. But even with ...
0
votes
1answer
35 views

Unity tiles with wierd border flickering when moving horizontal 2D

I recently made some Tiles using a program called Pyxel Edit to create some placeholder graphics. The problem I'm having is that when I move the camera horizontal the edge of the tiles starts to ...
0
votes
1answer
36 views

Can't draw lines in 2D space with GLFW and OpenGL

I'm trying to draw a grid in 2D space using GLFW and OpenGL but for some reason I only get this on the screen: Here's my code: #include <GLFW/glfw3.h> #include <stdlib.h> #include ...
8
votes
0answers
128 views

How can I implement lights & shadows in a multi-layer 2d tilemap?

I am in the process of writing an isometric game from scratch, and I'd like to know how/if I can add lights and shadows. The code I have so far can be found here, but it should be enough to know that ...
0
votes
1answer
28 views

Displaying whole screen image on multiple devices without stretching

In my(Android) game, all of my sprites are scaled against to a particular ratio (this 'guide' ratio stays the same regardless of the actual ratio of the screen on which they are to be displayed) - ...
1
vote
1answer
29 views

Marketing a browser game with a specific audience

My issue is that I have extensively developed an online browser game, but mainly the marketing and independent developer guides tailor to action packed executable games. My game also tailors to a ...
0
votes
1answer
74 views

Render Queue Sorting, HOW?

Recently I'm trying to implement a render queue sorting system, i.e., ordering my renderable objects in an array in such a way that the overhead of OpenGL state changes are minumum. After some ...
6
votes
3answers
97 views

How to have real time (blood) traces?

https://www.youtube.com/watch?v=Tzf3zjPJYw4 In this game, Ink, color blobs fall then they create pretty color spots. The color traces are unlike any other game. For an example, in Super Meat Boy ...
1
vote
1answer
100 views

RPG Game Graphics Help/Review [closed]

I've been working on an simple RPG game and I'm having troubles figuring out how my graphics should look. I'm wondering if any of you could give some advice on how they are/could be more pleasing to ...
1
vote
1answer
43 views

Move a sprite in a sine wave along different angles

I understand this piece of code Enemy.position.Y = StartPosition.Y + (-(float)Math.Cos(position.X / 100) * 100); However it only works along the X axis. What I want to be able to do is move it along ...
1
vote
1answer
97 views

2D World - How to represent my Game Objects graphically?

I want to code my own topdown 2D game with SFML+C++ that later shall have multiplayer functionality. Therefor I want to seperate the graphical and logical Parts of my game. All of my ingame Objects ...
0
votes
0answers
33 views

Sphere texture mapping using Directx 11

I have a spherical panoramic image which I would like onto a sphere and centre it around the camera so I can look around the image, how should I best go about this? I will be using DirectX11. ...
1
vote
1answer
68 views

Map a normal image to a cubemap

How can I map a normal non T form image to a cube map? and if there is no manner with which to do this, is it possible to, via DX11, split the image, as the image may be generated on the fly? ...
0
votes
2answers
33 views

Unity C#: strange texture/sprite problems

I've been making a gallery style shooting game, like something you'd find at a carnival, with ducks to shoot. I'd made the game and it was all working fine. However opening it today, it doesn't look ...
1
vote
1answer
77 views

Screen tearing in emulator

I'm trying to make a game boy emulator, and I'm using Windows for the graphics (StretchDIBits). I'm getting screen tearing like this. I tried enabling vsync in graphic settings but nothing changed. ...
0
votes
0answers
38 views

Texture artifacts depending on texture size

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 ...
5
votes
1answer
138 views

What is a lobe, in reference to lighting and graphics

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 ...
3
votes
1answer
253 views

Swapping graphics engines

Is it possible, or even feasible, to have graphics engine completely decoupled from game logic? Why I ask is because I want to start working on a game (I'm a complete beginner in game development, ...
1
vote
1answer
30 views

Custom Coloring of Tileset Characters

Games like Dwarft Fortress and Dungeon Crawl Stone Soup are drawing their boards using tiles from a tileset image (I think?). I know you can do color keying and replace the background color with ...
2
votes
1answer
35 views

How does hidden surface removal work?

Lately, I've been learning some OpenGL for fun, and I've been thinking about hidden surface removal. Say you have a high poly count static scene, with nothing that moves, no bones, physics, etc. Just ...
0
votes
1answer
24 views

zoom, scale, pan etc in an application and printing

I have a C# windows application where I display photos for editing. The displayed image is scaled to fit the screen. I allow pan, zoom, rotate, crop operations. Once the editing is done, I would like ...
1
vote
1answer
188 views

Unity 2D Graphics Optimization For Mobile Devices

I want some advices on how to create graphical assets for mobile devices so that the game will have a good performance and not lag on mobile devices. I had 3 issues with my games and that is they ...
0
votes
1answer
47 views

Performance overhead on Non-POT Texture in POT Atlas

Using atlas, we can reduce memory and draw call. And the atlas is usally POT(Power of Two) Texture. And I know non-POT texture have a lot of GPU and memory performance overhead. (link) I have many ...
1
vote
1answer
29 views

Does projection take place before clipping in the rendering pipeline?

At first I thought clipping happens before projection since new vertices may be added and the output of projection is in NDC which is 2D. However after a lot of googling, I found that some ...
-1
votes
1answer
43 views

Perspective projection? [closed]

I am trying to write an elite like game and I kind of understand the maths behind it but it would be really helpful if someone could explain it.
1
vote
0answers
74 views

Normal Mapping a Cubemap

I posted a question on Stackoverflow and it was suggested that it would be better asked here. I have a sphere. It was created via the icosphere method outlined here: ...
3
votes
2answers
565 views

How do I use graphics APIs to select the proper display device among multiple attached to a PC?

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)? ...
1
vote
2answers
91 views

Is it possible to run GLFW eventhough my graphic card(Nvidia) supports Direct3d API? [closed]

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 ...
14
votes
3answers
2k views

How to render infinite universe?

I'm curious what are the best practices in game development industry to render 3d universe? To be more specific: The data points are given and static. Each point has position, color and size; The ...
7
votes
1answer
91 views

Is quadrilinear texture sampling hardware supported?

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 ...
1
vote
1answer
68 views

Can you trilinear sample a non volume texture?

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? ...
1
vote
0answers
70 views

Algorithm for creating mesh from 2D image silhouette

I'm looking for an algorithm that can take a 2D image, approximate it's shape and then generate a low poly mesh. Basically, the same what Unity does with sprites when you select tight mesh instead of ...
1
vote
1answer
116 views

Problem, why the mouse cursor position is totally wrong, after resizing the window?

I come here, because i'm trying to add some "menu" interface in my small XNA Game . I found on internet a nice library adviced by many devellopers. Till now everythink is ok, the problem is my C# code ...
0
votes
0answers
28 views

Phong shading blows out things close to white [OpenGL]; is there a way around this?

I'm doing per-pixel lighting using the Phong shading model. In pseudo code this looks like: vec4 ambientColor = light.ambientIntensity * material.diffuse; vec4 diffuseColor = light.diffuseIntensity ...
0
votes
2answers
68 views

How to combine objects in a rendered scene with and without bloom effect?

I'm working on a game and engine as I go under OpenGL. I've had a bloom effect in place for a while that works as a post-procesing effect on the entire screen. It's been fine up until now. I have ...
2
votes
1answer
114 views

How do mipmapping, anti-aliasing and anisotropic filtering contribute to rendering quality?

To my understanding, mipmaps exist to save on computations and memory when textures are far away. In an ideal world, we wouldn't want them. We'd just use the same high quality textures far away and ...
1
vote
1answer
58 views

What is the difference between a Viewport and a Scissor Rectangle?

In XNA, what is the difference between a Viewport and a Scissor Rectangle, and when should I use each one? It looks like viewport clipping is applied to the geometry before the rasterization state, ...
0
votes
0answers
23 views

Where can I buy professionally done isometric tiles for 2d maps? [duplicate]

I recently crafted this ghetto map maker for my web-based game engine and I found a cool tileset. But, the problem is... I need to find and buy more of these kind of space / galaxy themed isometric ...
0
votes
2answers
388 views

Unity how to change material properties at runtime

I'm working on a unity game where I want to change the color of a material from within a script. The material applies to a line renderer. I currently have the following script: using UnityEngine; ...
5
votes
2answers
738 views

How can I tell a fragment shader to not write a particular pixel?

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 ...
3
votes
1answer
125 views

Optimizing the “visibility cone” calculations for a 2d game

I'm creating a simple 2D game and got a little bit stuck with this algorithm. What I wanted to achieve - and achieved - is to draw a visibility cone influenced by walls and other obstacles on the map. ...
0
votes
1answer
33 views

Unity - How To Customize Buttons Graphics

inside my buttons I added some variables (as you can see in the code below). public UnityEngine.UI.Text itemInfo; void Update () { itemInfo.text = itemName + "\nCost: " + (costo_stringa = ...
1
vote
0answers
32 views

Partially colorizing a sprite in XNA

I'm looking for a clean way of making sprites that look like the following glowing circle, except in any arbitrary colour. Originally we thought we could start with a gray-scale version of the ...
2
votes
1answer
153 views

vuforia how do I force objects into a 2D plane

I'm working on a game in which cards are placed on a table and then rendered in augmented reality. These objects have 3D physics attached to them which doesn't work as well if they are either rotated ...
4
votes
1answer
76 views

Why does my Outlined Diffuse 3 shader seem “detached” at a distance?

I'm using the Outlined Diffuse 3 shader from Unity and I'm having a problem with it: the outline looks great when the camera is near the object, but at a distance, it looks detached. From nearby ...
1
vote
0answers
45 views

Integrating specular, diffuse reflection and refraction

I am implementing an MLT bidirectional path tracer. I have a problem integrating diffuse, specular reflection and refraction. 1) The first problem is diffuse and specular reflection. Diffuse ...
3
votes
1answer
807 views

What causes this graphics quality difference between WebGL Build and Unity 5 Editor?

The Editor version and WebGL version of my Minesweeper clone have some graphics quality differences. I chose 'Fast' option when building this deployment. Is this the difference between 'Fast' and ...