Programming related to the visual representation of information on computer screens.
-3
votes
1answer
84 views
OS X OpenGL 3.2 Core (Black Screen)
I want to render a Quad via VAO, IBO and VBO but nothing is drawn. I'm using glDrawRangeElements in OS X OpenGL 3.2 Core context. The screen is completely black without any error. GLFW3 is used to ...
1
vote
0answers
61 views
Calculating brightness of texture (on GPU)
I want to see how well lit the player character is in an environment. Currently I use get Color Data of a specified extraction region from the final rendertarget. It seems expensive and taxing on the ...
2
votes
2answers
93 views
How can I actually understand Instanced Geometry Rendering - so that I can implement it the way I need it
I'm stuck trying to implement instanced mesh rendering in my project. Particularly because I am failing to understand how certain components actually function - and how the drawing routine is actually ...
-5
votes
0answers
73 views
What is the career growth for a programmer(graphics,AI) in gaming industry? [closed]
i am a final year student and about to graduate from a college and enter into industry.i am very much passionate about gaming and so i want to enter into it.but i have very little knowledge about ...
1
vote
1answer
72 views
3D Reflection - Drawing Upside Down
After reading up on rendering reflections, it seems that the way to do it is the render the scene from underneath the plane of reflection, and then use projective texturing to map the reflected ...
6
votes
4answers
395 views
How are 3D models created in video games?
As the title says, how are 3D models in games designed and displayed? Is it all-code? Drawn on paper, then on a 3D graphics software, then... what?
Of course, game programmers won't define every ...
2
votes
1answer
183 views
Efficient foliage rendering with OpenGL
Rendering foliage usually involves "hanging" triangles and textures that have completely transparent areas. I'm interested in knowing how are these usually handled by a 3D engine.
The first thing ...
3
votes
1answer
116 views
How to optimize SpriteBatch usage?
From what I understand, SpriteBatch's purpose is to batch as many draw operations to send to the GPU. Each batch can handle one texture at a time, and changing SpriteBatch context/texture is ...
1
vote
2answers
66 views
SpriteBatch does not draw on graphicDevice
I'm using a control which is using XNA inside.
But when I try to draw something, it doesn't appear.
I already did a lot of tests but can't figure out what's wrong.
Here is the test I set up:
...
-3
votes
2answers
225 views
Newbie game programmer - Where do I start? [closed]
Okay, so I have been really inclined towards game programming this past few weeks. I have primarily been a web programmer and know a fair number of lanugages like PHP, Java, javascript, python, etc. I ...
5
votes
1answer
327 views
Most efficient way to draw vertex with OpenGL
I am writing an OpenGL 3D game. There will be tons of triangles for terrain and objects in use.
I am studying from the OpenGL official guide and the first presented method is to call a function ...
-1
votes
1answer
37 views
Reverting the view SDL
So in my SDL application, which I setup for OpenGL, if I were to do the following code:
glBegin(GL_QUADS);
glVertex2i(0, 0);
glVertex2i(50, 0);
glVertex2i(50, 50);
glVertex2i(0, 50);
glEnd();
The ...
3
votes
1answer
74 views
sprite animation individual framerate
When animating sprites I am taking the delta difference between frames and locking the rendering frame rate of the sprite animation to the delta time.
float delay = 1000.0f / FPS;
float now = ...
-2
votes
2answers
109 views
How to start graphics programming? [closed]
I'm trying to find a complete guide for OpenGL programming but all i can found is some blogs with non-finished lessons and old books.
I don't want to just make a game, i want to develop my own game ...
1
vote
1answer
101 views
Damage indicator screen overlay
I want to make something already done by a lot of games , which is when I am taking so much hits from enemy red screen drawn like the following , using XNA 4.0:
after it's drawn and I am still alive ...
1
vote
1answer
140 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 .
...
3
votes
2answers
133 views
Screen effects and antialiasing
I have been working on a game for a while using glut for basic window creation.
I was rendering to an offscreen buffer so that I could implement various effects like screen bulging, motion blur, ...
1
vote
1answer
267 views
Selecting and moving object in OpenGL Gameplay3D Engine
I'm using Gameplay3d as a game engine to develop a simple board game. PEG Solitaire
I've come to the part where I've created a 2D grid for all the movable object, empty locations and also where it's ...
0
votes
2answers
90 views
Problem reseting device when using render target
How can I reset the device when I am rendering to a surface, and then stretching that surface to the back buffer. If i don't change the render target everything goes well, but when i change the render ...
3
votes
1answer
63 views
Matrix Translation Transformation Question
I've been reading a lot about computer graphics lately and because of it I'm building my own math library's for fun. I was reading about Matrix Translation and Homogeneous Coords, and was wondering ...
2
votes
2answers
324 views
Does my 2D OpenGL renderer need optimized?
I've started a game engine for learning purposes. I have successfully gotten an opengl renderer working and I can draw textures of varying sizes to the screen. The way I have done this is by creating ...
0
votes
2answers
107 views
Is it possible to push real-world, real-time data into Unity? [closed]
I'm pretty new to this, and I'm having trouble figuring out where to even look. If there's relevant terminology that'll be google-able, that would be a great help.
Suppose I want to have a monitor ...
0
votes
1answer
89 views
Can I use multiple OpenGL version together
I want to use GLSL but keep my current OpenGL 1.1 setup. The thing is that can I use OpenGL 2.0 shaders on OpenGL 1.1 renders?
2
votes
0answers
189 views
Can I use a shader with 2 different textures in Cocos2D (x)?
We are evaluating a variety of different graphic engines for use in our game and we want to be able to use 2 different textures for many of our sprite maps. One sprite map would be the standard RGBA ...
2
votes
3answers
238 views
How can I load 2D texture data without a GraphicsDevice instance?
We have a client/server architecture for our game with the client being the XNA Game, and the game server is separate and only references XNA. They both use a shared DLL for networking. The game ...
1
vote
1answer
69 views
Dealing with field of view when zooming into a terrain from a height
I'm creating a tech demo featuring a small planet. The problem I'm having is that the planet doesn't really feel like the right "scale" when the camera in down on the surface, I think it could be the ...
1
vote
0answers
56 views
Another Question from the Image Efficiency for Memory Handling
At this topic, "Which image format is more memory-efficient: PNG, JPEG, or GIF?", one of the fellow Game Development community @Panda Pajama told about the complex concept about image memory handling ...
46
votes
6answers
5k views
Which image format is more memory-efficient: PNG, JPEG, or GIF?
Which image format is more efficient to save memory? PNG, JPEG, or GIF?
0
votes
1answer
216 views
Box2D and Slick2D: Graphics bug [closed]
The bug
The physics ground represented by a horizontal line. The object is stationary, and seems to be pretending that the ground is lower. This is because the center of the Shape is incorrectly ...
1
vote
1answer
61 views
Drawing sprites messes up my model in XNA4
I have a model which draws correctly in XNA4.
However if I try to add a background image (or any sprite), the rendering of my model is messed up. There are two problems with the rendering
model is ...
0
votes
1answer
119 views
Tile Draw Order
I started working on a tile engine recently and have been trying to get this depth sorting for the tiles right. I am using XNA and the SpriteSortMode.Deferred to get the tiles to sort correctly in the ...
1
vote
0answers
136 views
How to draw a large number of model (identical) with vertex buffer in XNA?
I am facing a problem that many developers as have probably found a solution.
I have a small project with a floor designed with small cubes (100X100).
If I exceed this limit, my game suffered major ...
0
votes
0answers
53 views
What could cause dispersed triangles instead of integral model?
So the thing is, I get dispersed triangles instead of model that I'm loading, in this case it's just a cube. It seems as those triangles have no points that connect them. Is there anyone who had this ...
-3
votes
4answers
872 views
Starting to make 2D games in C++ [closed]
I'm fairly experienced with C and C#, but I've only ever created console/windows applications. I'm also experienced with AS3 and I've made some flash games.
I want to make proper 2D games in C++, but ...
10
votes
3answers
1k views
How do I scale down pixel art?
There are plenty of algorithms to scale up pixel art. (I prefer hqx, personally.) But are there any notable algorithms to scale it down? My game is designed to run at a resolution of 1280x720, but if ...
9
votes
1answer
186 views
Good resources for learning about graphics hardware
I'm looking for some good learning resources for graphics hardware (and associated low level software). Basically I want to learn more about what goes on underneath the opengl/direcx API layers in ...
0
votes
0answers
91 views
Opengl binding shaders vs binding buffers performance
Quick question for an opengl guru, I'm in the process of building a render queue and can either reduce the number of shader binding or the number of vertex buffer binding. I just want to know which ...
3
votes
1answer
255 views
Understanding normal maps on terrain
I'm having trouble understanding some of the math behind normal map textures even though I've got it to work using borrowed code, I want to understand it.
I have a terrain based on a heightmap. I'm ...
0
votes
1answer
179 views
OpenGLES GLSL Shader attributes always bound to 0
So I have a very simple vertex shader as follows
#version 120
attribute vec3 position;
attribute vec3 inColor;
uniform mat4 mvp;
varying vec3 fragColor;
void main(void){
fragColor = inColor;
...
0
votes
1answer
144 views
Objects won't render when Texture Compression + Mipmapping is Enabled
[EDIT: FIXED - Calling setting texture max level fixed that]
I'm optimizing my game and I've just implemented compressed (DXTn) texture loading in OpenGL. I've worked my way removing bugs but I can't ...
16
votes
5answers
1k views
Given a RGB color x, how to find the most contrasting color y? [duplicate]
Possible Duplicate:
Making a symbol appear on any colour
I have to mark a certain item in a way that will make it stick-out in the background. I need it to be surrounded with the color that ...
1
vote
2answers
185 views
Is 2 lines of push/pop code for each pre-draw-state too many?
I'm trying to simplify vector graphics management in XNA; currently by incorporating state preservation. 2X lines of push/pop code for X states feels like too many, and it just feels wrong to have 2 ...
1
vote
1answer
89 views
Game window systems and internal frames
I don't know if this is a valid question, but: What kind of window manager do games use which have internal frames (Frames inside frames)? Does this differ between the programming languages (Are e.g. ...
0
votes
3answers
542 views
graphical interface when using assembly language
I want to learn a framework to use in assembly. I know that's not possible without learning the framework in C first. So I'm thinking of learning SDL in C and then teach myself how to interpret the ...
0
votes
1answer
141 views
How to work with two layers or more in cocos2d?
I want to make a game in cocos2d. I don't know too much about it.
My question is related to communication between two layers or more. For instance, let's say I want a layer with a scrolling road and ...
2
votes
3answers
407 views
Drawing graphics in Java game
I am quite new to game development, so here is a question (maybe a stupid one):
In my sidescroller i have a bunch of different graphics objects that i need to draw (player, background tiles, ...
0
votes
2answers
199 views
In need of Game Development Industry guidance [closed]
Sorry if there is already a question like this, i searched but didn't found the answers i'm looking for. I need advice on what should i focus more and where i should start, i need a plan. Currently ...
8
votes
4answers
2k views
Debugging Shader Code?
I'm writing a game engine, and when I use a perspective camera I get a black screen. I am not going to ask exactly why this is because there would be a lot of code to share and, frankly, I think ...
1
vote
1answer
1k views
global transform to local transform?
If an object is attached to another one and you need to set its position, rotation and scale in global space, what do you do to get the local versions of these values, knowing the same values for the ...
0
votes
1answer
202 views
Engine and level of detail for maze / labyrinth / dungeon scene?
My question is similar to these:
Algorithm for generating a 2d maze
To scene graph or not to scene graph?
I.e. in this case should I use jme3 or some other engine (I heard unreal offers a free ...