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

0
votes
0answers
13 views

Developing something different game [on hold]

I want to develop something different. Like world of goo ,angry bird ,flappy bird All i want from you guys is just an imagination , an idea, a thought
0
votes
0answers
19 views

Viscosity Term of Animating fluids [on hold]

When animating fluids such as water or air using a simulation method such as the “stable fluids," why is it seldom necessary to an an explicit viscosity term?
3
votes
1answer
98 views

Isometric graphics with fake perspective

Diablo 2 is a game with isometric graphics. However, unlike other isometric games, D2 has the option to activate perspective. Obviously, the D2 developers found a clever trick to convincingly fake ...
0
votes
1answer
78 views

Insufficient memory on creating vertex buffers

I'm building a voxel world generator with XNA where the voxels are rendered as polygonal cubes. The world is divided into 1024 chunks of 32x32x256 cubes each (as 32 chunks by 32 chunks), and each ...
0
votes
0answers
8 views

Fill color in moving object without flickering [duplicate]

Here is my code in which moon is moving around earth but now i want to fill moon and earth with color and also want to remove flickering in the moon while moving. Please help me, i will be very ...
0
votes
1answer
57 views

Rotate OpenGL quad around its center

Sorry, I searched it but couldn't figure how to apply it to my code reading the other answers to similar questions. I what to rotate a quad, my code is the following: glEnable(GL_TEXTURE_2D); ...
0
votes
1answer
70 views

Transformations and basis vectors

I've been reading this very nice tutorial on OpenGL, and I encountered a statement which I can't wrap my head around. In Chapter 6, it states: Transformation from one space to another ultimately ...
0
votes
0answers
23 views

Color from OBJ not displayed in Blender

I want to import some .obj file that I have made with MeshLab. The point cloud file was actually in .pcd format and I used pcl_pcd2ply tools from PCL to change it into PLY-Format. Then I import it ...
0
votes
1answer
38 views

How do I split a button graphic into a 9 patch?

I understand what a nine patch is but I don't understand how to create one with code. I've made an image with a 1-pixel black border, but how do I turn that into a nine patch? How do I make a nine ...
1
vote
1answer
64 views

Getting normal map of an image

I'm trying to achieve the results in this tutorial: Link So far, I was be able to do that; with these; public PixelMap GetNormalMap(double strength) { var newMap = new ...
1
vote
4answers
93 views

How to order points on a 3D grid such that we can connect them in a line loop correctly

I want to recreate an effect as close as possible to X-Com: Enemy Unkown's movement range feedback: The blue line delimits the tiles which the soldier can reach using a single action. We also are ...
3
votes
2answers
106 views

Bevel outline algorithm in 2D

I'm writing a program that creates animated blobs in 2D, to simulate cells. In order to beautify these objects, I'd like to give them a 3D look by adding a bevel-effect. How can this be achieved? ...
1
vote
2answers
103 views

How can I handle position in an entity system where position can be 2D or 3D?

I'm working on a game engine to learn how it's done (so I might better take advantage of the techniques involved and other, similar engines in the future), and I've run into a problem when handling ...
0
votes
2answers
76 views

Mobile Game Development: Supporting Multiple Screen Resolution

When designing the graphics of the game (e. g. for iPhone): What is the resolution I should base it upon? Is it the smaller resolution (iPhone4 screen resolution) so that I could scale it bigger to ...
0
votes
1answer
63 views

Specular light flickering with high specular power

I'm having some issues with specular lights, to be more specific, the specular color seems to be flickering when I set high power, like 512 (I set the specular color to green, so you can see better): ...
0
votes
0answers
72 views

2D pixel art gets “jittery” as camera moves

I'm working on a game that makes use of low-res 2D pixel art. The textures are filtered with nearest neighbor filtering, and sprites are created with 1:1 size ratio of the textures (eg. 16x16 sprite ...
1
vote
0answers
41 views

How to turn off antialiasing in Graphics class?

I have been using the following code with a Graphics2D buffered image g.setRenderingHint(RenderingHints.KEY_INTERPOLATION,RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR); to ensure the image ...
0
votes
2answers
71 views

Game Background graphics blurred edges?

Why when using this code for the background for my game do I receive blocks with blurred edges? public final class State_Play extends State_Template { private BufferedImage background; ...
0
votes
0answers
29 views

Connecting lines from edge to edge of a gameObject Unity

I am trying to get the world position of a gameObject edge so to connect one edge to another edge with a lineRenderer component just like shown in the image below. I ran this script I found online to ...
3
votes
1answer
141 views

Mixing Perspective and Orthographic Projections?

I'm going to start with some background, so jump to my question at the bottom for the TLDR version. Problem: In a Japanese 4gamer article (english translation via Chev on Polycount) explaining some ...
1
vote
1answer
71 views

Quick sprite contouring solutions?

I want to be able to quickly outline sprites(mainly with black, but other colours too) without doing it manually, as pictured. What would be a good program/solution to do so? Edit: I don't want it ...
0
votes
1answer
77 views

Building a unity game without textures? [closed]

For a school project I have to build a unity game. Since the focus is on programming and building the game and not on creating graphics (we are supposed to find free models/textures online) I'm trying ...
1
vote
1answer
80 views

how much memory does Adreno 320 GPU provide? [closed]

I wanted to know how much memory does Adreno 320 GPU provide ? I am using Nexus 4. I Googled about it and not able to find any details about it. Can anyone provide the details?
0
votes
2answers
126 views

How should I fix a graphic glitch caused by t-junctions when using greedy meshing

As you might be able to see in the following image, a "graphic glitch" occurs between triangles. I know you are able to make this less visible by enabling anti-aliasing but i was wondering if there is ...
1
vote
2answers
136 views

How do I create the visual effect of transitioning between night and day?

I am making an open-world project in Unity 4.5.5 and I want to create a visual effect of transitioning from day to night? The Legend of Zelda: Wind Waker HD has a great example of such a transition. ...
0
votes
0answers
54 views

Texturing problem inside Unity

So I created a Hex Sphere using Houdini and exported it as FBX to Maya where I created UV's for the model to use it in Unity This is how my sphere looks inside Unity All the hexes are separated so ...
0
votes
1answer
63 views

How can I inspect 3D model exactness? [closed]

I am neither a game designer nor a graphic designer. I am a .Net and C# software developer. I have a game project and I've still been studying to learn game concepts and technolgies for a year. ...
0
votes
0answers
59 views

Depth texture white in shader

I am trying to implement shadow mapping into my project and am stuck at this problem: If I'm reading the shadow map values with glReadPixels and linearize those values, I am getting exactly the value ...
0
votes
1answer
59 views

Oblique launch within a game

I'm creating a simple game in python that will follow the same logic of DDTank and Worms. The graph is formed by characters. The buildings that will be destroyed are formed by '*', players are '@' and ...
-2
votes
1answer
80 views

Biggest resolution for art assets for mobile games [closed]

I have created a game, and now I need to integrate graphics and distribute it for iOS and Android devices. As there are crazy number of screen resolutions, I think I should have just 3 set of art ...
0
votes
1answer
44 views

HDR and Alpha Blending

I've been reading a lot about HDR techniques and came across Alpha Blending compatibility. Searched even more and found this snippet from the Ogre Forums: With source alpha blending, it sometimes ...
1
vote
1answer
218 views

How to resize my 2d game to fit the screen?

I am currently making a 2D game using Java (Java 2D). I want to make my game resizable. If you play any game on an emulator (e.g. legend of Zelda in fceux emulator) in full screen mode, you'll see ...
2
votes
0answers
36 views

Calculate required resolution

Lets say I have a rectangle with width x and height y. Then there is transformation matrix T. Now, how using only those data can I estimate minimal resolution of texture (that is its width and ...
0
votes
0answers
95 views

Fixing/avoiding Z-fighting with decals OpenGL

I'm trying to draw animated flames as a decal in OpenGL (just a simple quad with an animated texture as a decal on another quad). Problem is as the camera moves away I get terrible Z-fighting in the ...
0
votes
1answer
208 views

How do I rotate and flip 2D sprites stored in a 1D array of pixels?

I am using a 1D array of pixels for rendering in 2D in java. I am interested in rotation (in radians) and mirroring across the x and y axes. The desired result looks something like this: Public void ...
1
vote
1answer
99 views

Collision detection against complex shapes and curves

I am new in game development and for simple games bounding box collision is fine. However, let's say you have a shape or bitmap like this: This is just an example but if you had more elaborate ...
1
vote
3answers
204 views

Why are huge polygon amounts bad?

It is always said that the polygon amount of a single modell must be as little as possible when it comes to realtime simulations such as computer games. (Or at least lower than when rendering a movie) ...
0
votes
2answers
68 views

What is the easiest and fastest way to display an SDL_Surface in a window with SDL2?

I would like to have an SDL_Surface representing the contents of the window, just like in the old days with SDL1.2. What is the best and fastest way to do it in SDL2? What I found is that I need an ...
1
vote
1answer
133 views

Pokemon Yellow wrap transitions

So I've been trying to make a pretty accurate clone of the good old Pokemon Yellow for quite some time now and one puzzling but nonetheless subtle mechanic has puzzled me. As you can see in the ...
0
votes
1answer
110 views

Orthographic Projection Issue

I have a problem with my Ortho Matrix. The engine uses the perspective projection fine but for some reason the Ortho matrix is messed up. (See screenshots below). Can anyone understand what is ...
1
vote
1answer
85 views

Does scaling affect performance in OpenGL? [closed]

I've never been able to understand the best practice in this context. I usually want to ship my game with as minimum size as possible. So whereever possible, I try to use scaling of my graphics. Let's ...
0
votes
0answers
99 views

graphics.IsFullScreen resetting to false after game constructor and graphics.ApplyChanges()

This is a MonoGame 3.2 Windows (DirectX) Project. I've tried setting graphics.IsFullScreen to true in the game's constructor and in the game's initialize function, both times running ...
1
vote
1answer
100 views

How do I draw a line using jme3.scene.shape.Line in JMonkeyEngine 3.0?

I can successfully create the object, but it can't be attached to the rootNode. What can I do to make the line appear? I'll also would like to know how to reverse the effect(making it disappear) ...
0
votes
0answers
148 views

OpenGL shading doesn't work with different projection and view matrices?

I found an online (public-domain) code to do marching cubes, and I am trying to adapt this code to work in my own project. The code uses GLUT and "older-style" OpenGL, whereas I am using GLM and ...
12
votes
4answers
2k views

How can I use the graphics pipeline to render volumetric data based on a density function?

Both graphics APIs (OpenGL and DirectX) devise a well defined pipeline in which several stages are programmable. These programmable stages require to take a fixed minimum amount of data and are ...
1
vote
3answers
119 views

Technique suggestion to render corroded pipes in 3D

We currently have a lot of data relating to cracks/corrosion/deformations in metal pipes which at present, can be viewed in a crude flat/2D application which makes the metal anomalies hard to spot. ...
0
votes
0answers
106 views

Ray-Triangle Intersection Detection using Barycentric Coordinates

I am attempting to convert the algorithm from http://www.cbloom.com/3d/techdocs/fast_ray_tri.txt to java code, but my solution does not function correctly. The only intentional change I made was for ...
1
vote
2answers
76 views

XNA graphics.PreferredBackBufferWidth's new value doesn't immediately change window size

I set the width and height of the window in my game constructor, and then pass the graphics manager to a class to check the value. In the game's initialize function, it doesn't seem to recognize the ...
1
vote
1answer
100 views

Android Game Slows Down

I had been developing a Maze Game which is dragging a bitmap down on the maze going on the finish line. on first my game response quickly on my onTouch and dragging and after couples of adding toast ...
2
votes
0answers
101 views

DX 11 Specular Highlights in Deferred Renderer

I am currently implementing a deferred renderer in DX11.1. Right now I am having a problem that I can't seem to crack with specular highlights when I have multiple light sources. I keep a vector of ...