Programming related to the visual representation of information on computer screens.
1
vote
1answer
87 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
63 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 ...
-1
votes
0answers
79 views
Linear Algebra topics used in Computer Graphics [closed]
I'm in school and want to take Computer Graphics, though it requires that I take a Linear Algebra class. I'm in the middle of my Linear Algebra class, but hate it. Maybe it's my teacher, maybe I just ...
3
votes
1answer
56 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
260 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
87 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
80 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?
1
vote
0answers
147 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
144 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
59 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
48 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 ...
38
votes
6answers
3k 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
122 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
53 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
108 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
91 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 ...
-6
votes
1answer
102 views
develop a game for pc,ps3,ps2.x-box [closed]
What are the subject requirements for develop a game for pc, x-box, ps3, ps2.etc. And what should be the qualification for gaming.
0
votes
0answers
49 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
431 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
752 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
174 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
73 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
217 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
140 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
119 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 ...
15
votes
5answers
886 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
171 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
85 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
457 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
128 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
318 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
192 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
681 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
186 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 ...
-3
votes
1answer
114 views
I need to make a create-a-class system like in COD
I need to make a create-a-class system like in COD but I don't know what code I need. I am also wondering if I have to make a photoshop image for every way it could look or do I type in the code to ...
0
votes
0answers
208 views
Map 3D space to 2D screen space?
Could some one help me to understand this code and explain it?
It's about converting from 3D space to 2D position, so that I can use it in another Effects (.fx) files, but I am a bit confused.
float ...
4
votes
1answer
382 views
Decal implementation
I had issues finding information about decals, so maybe this question will help others. The implementation is for a forward renderer.
Could somebody confirm if i got decal implementation right?
You ...
2
votes
1answer
105 views
Shader inputs in a general purpose engine
I'm not familiar with SDKs like Unity or UDK that much, so i can't check this offhand. Do general purpose engines allow users to create custom uniform variables? The way i see it, and the way i have ...
8
votes
4answers
1k views
Fixed-Function vs Shaders: Which for beginner?
I'm currently going to college for computer science. Although I do plan on utilizing an existing engine at some point to create a small game, my aim right now is towards learning the fundamentals: ...
1
vote
1answer
131 views
Math major as a viable degree
While I realize there are many topics about CS vs software engineering vs game school programs, I haven't found anything relating to whether pure math degrees (with CS minor and electives) would also ...
4
votes
2answers
713 views
How do I get a new license for gDEBugger after the 1 free year?
I downloaded the gDEBugger from gremedy over a year ago, with their one year free license. The license has since expired and their site says that I'll be presented with the option for 1 year free ...
8
votes
1answer
366 views
What are the advantages of tangent space normals over object space normals?
What are the advantages of normals in tangent space to normals in object space for calculation of bump mapping?
1
vote
4answers
422 views
How to create OpenGL (ES 1.0) texture programmatically?
I need to draw inside a buffer and then upload it as texture to OpenGL. So basicaly unsigned char* buffer and then call to glTexImage2D().
I will be using Marmalade mobile SDK and OpenGL ES 1.0.
0
votes
1answer
214 views
How to select an image on the J2ME Canvas
I am working on J2ME. I have got a canvas, with a layout of a Checkers board. At the position of pieces, I have placed images. The point at which I got stuck is, how to select/highlite a piece's image ...
0
votes
1answer
217 views
Is it possible to extract textures or sprites from compiled game files?
For instance, every map in Portal has what appear to be sprites over a texture indicating the obstacles you'll face (see screenshot). Are these resources compiled into the source as byte code, or is ...
3
votes
2answers
2k views
How many textures can usually I bind at once?
I'm developing a game engine, and it's only going to work on modern (Shader model 4+) hardware. I figure that, by the time I'm done with it, that won't be such an unreasonable requirement.
My ...
5
votes
2answers
629 views
Sorting objects before rendering
I'm trying to implement a scene graph and in all the articles i've come across there is talk about object sorting. So you'd sort your objects by "material" for example. Now untill i sat down and ...
-2
votes
1answer
237 views
Where to begin? [closed]
I'd like to start designing and creating games in either C or Java (as these are the primary languages I know). Is there a good book or online guide on where to begin development with these languages? ...
1
vote
2answers
152 views
Why Inverse Transform the Ray when doing Transformation?
I am adding 3D affine transformations to my ray tracer, and it seems all the literature on the web recommend inverse transforming the ray instead of transforming the 3D objects.
Why is that? There ...