A very generic term referring to visual part of a game. Thus try to avoid unrelevant usage and instead tag for specific grapics type (2D, 3D), API, framework or a library you are using if possible.
0
votes
4answers
65 views
Changing color of a moving image without lowering the fps
I just added an option to my game that makes it so that all the enemies will have a random color for their clothes instead of the regular blue. I use this code to draw rectangles over the shirt of the ...
3
votes
2answers
120 views
Using a programmable pipeline in a game engine
As a learning experience, I'm developing my own 3D game engine using OpenGL. I'm a little confused as to how to implement my rendering engine such that it uses a programmable pipeline while still ...
1
vote
0answers
17 views
How do I remove control points from imported curve in Maya?
When I create a path from an Illustrator file, it adds extra control points for bezier handles for each point in the AI file, even though I don't drag out the handles in Illustrator. All my points in ...
0
votes
0answers
43 views
Default material properties and assimp
I am using assimp to import 3d models and I have a question on the default properties on materials, more specifically on the diffuse, ambient and specular material colors.
In assimp, if the model ...
0
votes
0answers
26 views
DrawIndexedPrimitive bug
Hello I have problem with DrawIndexedPrimitive function.
I create vertex buffer for each wall like that:
1----2
| |
3----4
I put 1,2,3,4, and then I create index buffer this way:
short * ...
0
votes
3answers
131 views
Gravity independent of game updates per second
Edit
Just for clarification, my sprite's 'movement' isn't the problem. If I set my Time variable to 4 seconds, then it will cross the screen in exactly 4 seconds regardless of logic updates rate per ...
-1
votes
0answers
34 views
How to align sprites from a non-aligned sprite sheet?
When I deal with sprite sheets, I have to cut each sprite and adjust their offsets by hard.
This is too much work, so I've made a tool that does the following:
Analyze the image, detecting bounding ...
1
vote
2answers
184 views
How do I create a “flying through space” effect?
On the Final Destination stage in Super Smash Bros Brawl (and SSB Melee) the players fight on a platform seemingly moving through space:
I see particle effects, but I don't understand how they made ...
-3
votes
0answers
64 views
C# Rendering Loop [closed]
I kind of need help understanding how rendering graphics works in C#. I have a java background and I've made a basic game engine with custom rendering that I use for all of my projects. After trying ...
1
vote
1answer
51 views
Jogl2 won't accept jogl 1.0 code - GL_LIGHTING and GL_LIGHT_MODEL_AMBIENT cannot be resolved or is not a field?
I'm trying to run my code on jogl 2.0 , for the first time (until now I worked with jogl 1.0) however Eclipse throws to almost every that I have a "cannot be resolved or is not a field" message .
...
1
vote
4answers
79 views
vertices, better to have more but draw a smaller area or less but expand a larger area
I have a simple question really. I am creating water for a game and had two different design approaches:
Make a single plane that expands the entire playspace, which would take 6 vertices but cover ...
-4
votes
1answer
92 views
What's the complexity, given current technology, of writing a decent scene renderer in OpenGL? [closed]
What's the complexity, given current technology, of writing a scene renderer that produces reasonably high-quality output in OpenGL?
I'm definitely not asking about writing a full games engine - ...
0
votes
1answer
25 views
Divide single SVG into separate files
I have an SVG file contatining deck of cards, each of them in g-container:
<g id="kingspades">...
How do I render individual cards or separate big SVG files into pieces?
0
votes
1answer
54 views
Are there shaders or at least shader like things in Swing?
Is there? Because I'm wondering if it supports GLSL, HLSL, or it's own shading language? I don't know much about Swing graphics. Does anyone know?
2
votes
1answer
81 views
Should my assets match my reference resolution?
I'm confused over supporting multiple resolutions in my 2D game.
I'm currently working with a reference resolution of 1280x720. That means that all elements are positioned in a 1280x720 coordinate ...
2
votes
1answer
71 views
Low FPS on Java drawing in BufferStrategy
I ran into a very strange problem while using BufferStrategy, I've tried searching for an answer but all I have found are non-relevant threads and discussions. So here is my query.
for (int i = 0; i ...
2
votes
1answer
68 views
Support for different resolutions in a tabletop environment
Right now I am experimenting with XAML and C# to write a small Windows Store App which supports displaying a playmat with cards. However not everyone uses the same resolution and with a somehow fixed ...
2
votes
2answers
176 views
Android: Loading bitmaps without premultiplied alpha (OpenGL ES 2.0)
Is this possible? To load textures in non-premultiplied format (Straight alpha?)?
My game has 1 or 2 images which have semi-transparent pixels and I need to be able to fade them in and out but this ...
0
votes
1answer
123 views
Ogre3d or OpenGl or other [closed]
I want to learn Graphics for games or use a game engine. I don't know whether to use ogre3d, I know its a rendering engine however android isn't really supported, Boost is used for multithreaded when ...
0
votes
1answer
78 views
Reinhard tone mapping and color space [closed]
I found two ways of doing tone mapping (first, second):
//Ld - this part of the code is the same for both versions
float lum = dot(rgb, vec3(0.2126f, 0.7152f, 0.0722f));
float L = (scale / ...
-5
votes
1answer
91 views
camera2d class will not work [closed]
using System;
using System.IO;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using ...
2
votes
1answer
92 views
RGB to xyY color space conversion and luminance
The luminance calculated by following GLSL functions (fragment shaders - tonemap) has different value:
float GetLuminance (vec3 rgb)
{
return (0.2126 * rgb.x) + (0.7152 * rgb.y) + (0.0722 * ...
8
votes
1answer
233 views
How do I load graphical resources asynchronously?
Let's think platform-agnostic: I want to load some graphical resources while the rest of the game is running.
In principle, I can load the actual files on a separate thread, or using async I/O. But ...
0
votes
0answers
39 views
Prerequisites for developing a 3D simulation program? [closed]
What all do I need to learn or work on before creating a 3D virtual environment to simulate a welding process in order to train workers? Any books or tutorials that might help me begin? I have a basic ...
0
votes
1answer
199 views
Game Designer or Game Programmer, please help me choose! [closed]
I know this question is asked a lot but I am still so confused and overwhelmed by the different opinion and comments everybody has on the internet, that I wanted to ask my questions in a single thread ...
0
votes
0answers
105 views
graphic effects of Android game “Achtung” [closed]
I would be very gratefull if someone can give me a hint how the graphic effects of this android game ( http://www.isignz.nl/achtung ) works. Let us let this "pixie dust"-stuff aside for the moment; I ...
1
vote
0answers
108 views
How to achieve supersampling / anti-aliasing in pixel shaders?
I am trying to write a couple pixel shaders to apply to images similar to Photoshop effects. For example this effect: ...
0
votes
0answers
31 views
Interpolation of surface normals on the face of a triangle and Goroud shading
My question is detailed at this link.
I linked it instead of copy paste because here I can't seem to get the fancy math symbols to show properly here.
Thoughts?
1
vote
1answer
106 views
How to draw different textures on my cubes DrawUserIndexPrimitive with XNA?
I'm having some problem to draw textures with class "DrawUserIndexPrimitive" on Xna.
I can draw my cubes / models without problem. But I want to draw different textures on my cubes.
I loop on each ...
4
votes
3answers
323 views
What are normal, tangent and binormal vectors and how are they used?
I would like to find out the following information:
What are they?
Example usage in game development (the area they are used in)
About the following vector types:
Normal
Tangent
Binormal
A ...
2
votes
1answer
135 views
2D Software Lighting Issues in Java
I'm creating a 2D top-down tiled game in pure Java and by now I'm trying to implement a way to do lighting.
First, some details on how I render: there is a screen class which handles all the ...
-1
votes
2answers
140 views
Draw 60,000 cubic with DrawUserPrimitives on xna with only 20 fps-buffer problem?
I'm working on a minecraft style games on xna. I know it is not easy to draw a lot of cube with a good ratio of fps. I use the method "DrawUserPrimitive" with a buffer to draw a floor 250X250 cubes. ...
0
votes
0answers
55 views
How calculate distance for fog effect model in xna?
I struggled for some time to add a fog effect in my xna games.
I'm working with a custom shader effect in a file (. Fx).
The "PixelShaderFunction" works without error. But the problem is that all my ...
0
votes
0answers
255 views
How to do collision detection in 3D using bounding boxes?
I am using c++ in visual studio 2010 with opengl. I am trying to make a programme that has 2 boxes that are able to be stacked on top of each other but I am having some trouble with the collision ...
0
votes
3answers
119 views
How can SpriteBatch use a single texture/asset as multiple independent objects/instances
I'm using LibGDX to create a game, but I'm encountering a problem with SpriteBatch. Whenever two objects that use the same image for their sprite come onto the screen, the new object replaces the old ...
2
votes
1answer
127 views
How do I improve terrain rendering batch counts using DirectX?
We have determined that our terrain rendering system needs some work to minimize the number of batches being transferred to the GPU in order to improve performance. I'm looking for suggestions on how ...
2
votes
1answer
80 views
How can I access bitmaps created in another activity?
I am currently loading my game bitmaps when the user presses 'start' in my animated splash screen activity (the first / launch activity) and the app progresses from my this activity to the main game ...
3
votes
1answer
160 views
Poor image quality on Android through Unity Remote
I have started to work on the company's latest project using Unity3D and the workflow is just awesome.
The problem is when running the game on a real Android device (using Unity Remote) the image ...
1
vote
1answer
92 views
Movement constrained to the faces of a cube
The basic setup I'm working with is a cube rendered in-Engine (Panda3d, although I only am looking for a generalized solution) as well as a 2d square on one face of the cube. The eventual outcome I'm ...
3
votes
1answer
92 views
Messed up UVs in Unity3D for Android
All of my quads appear correctly textured on the Unity3D editor, a Motorola Xoom Android tablet, and on an iPad 2:
But on our Samsung Galaxy Mini 2 smartphone they kinda look like this:
I wrote ...
1
vote
2answers
396 views
Detecting Screen Resolution in Android/AndEngine to display high or low quality images
I am developing a game with 1024x600 resolution. I can't target smaller resolution devices at this resolution, so I intend to use two graphics for the game. How do I detect which graphics to use for ...
-5
votes
3answers
206 views
in the shadow of a sphere [duplicate]
(Related, but somewhat different, to my previous question)
How can I determine in a fragment shader if a fragment is in the shadow of a sphere?
That is, if it is occluded by the sphere and is past ...
0
votes
1answer
81 views
Devices or Smartphones That Can Run and Displayed Images Properly While Power of 2 Code is Disabled
Before making game apps, I want to have any certain smartphone device brands that runs on OpenGL. I have to make a code for images that doesn't need to required power of 2 images so that I can resize ...
1
vote
2answers
198 views
What causes polygonal twitching in older games?
I'd like this answer large part to curiosity and I'd like to recreate it with our modern computers somehow.
By old games I'm referring to ps1 games. My specific example would be Megaman Legends I've ...
0
votes
2answers
78 views
Is it better to import photoshop files or illustrator files into flash? [closed]
I was wondering what would be better to import into flash for when I animate.
My intention is to animate my characters and objects and then export as a png sequence and make a sprite sheet then take ...
2
votes
1answer
90 views
Finding holes in mesh
I have a mesh that has holes. I found a paper, An Automatic Hole-Filling Algorithm for Polygon Meshes
It details an algorithm that uses a k-d tree for finding holes (from a manifold triangle mesh). ...
4
votes
1answer
118 views
UV mapping doesn't work without duplicating vertices, but duplicating will reduce performance, right? Is there another solution?
Situation: I've been trying to gradually get a lower and lower level of understanding of how games work, and lately I've been following Rastertek's DirectX 11 tutorials. Of course, I started branching ...
3
votes
1answer
297 views
Is basic SDL hardware accelerated?
I'm going over some SDL tutorials aimed at creating 2D games.
However, when I create a basic SDL program - is it hardware accelerated?
Or is hardware acceleration only relevant when it comes to 3D ...
0
votes
0answers
50 views
JFrame on OS X with buffer strategy disables rounded corners
I'm trying to create a simple JFrame window in OS X and render a simple black square on it like so using Graphics2d:
public Start() {
running = true;
window = new JFrame("Finest Hour");
...
6
votes
3answers
512 views
How can I draw an outline in Unity3d?
I am trying to highlight a rectangle of arbitrary height. I thought the easiest way to do this would be to create a separate "box" gameobject that outlines the rectangle.
I've tried with both a ...


