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
1answer
34 views
How can I plot points and generate a list of coordinates?
I'm trying to make a game which involves drawing a map. I drew out such a map, with coordinates, in a pixel art program:
Now I would like to get all the coordinate points of the black squares. I ...
-1
votes
0answers
73 views
Are VM-based languages becoming viable for Graphics since the move to GPU computing? [on hold]
Perhaps the title is not the most clear, so let me elaborate it more: I am talking about VM-based languages, by that I mean languages that run on the JVM (java) and for example C#. Also I am talking ...
1
vote
1answer
72 views
Pixmaps, ByteBuffers, and Textures…Oh my
My ultimate goal is to take a specific region of the screen, and redraw it somewhere else. For example, take a square from the upper left hand corner of the screen and redraw it on the lower right ...
4
votes
1answer
221 views
How do I create a 2.5d parallax effect?
I have a decent background in 3D graphics and programming, but I'm new to game development. I'm currently exploring different possibilities and I really want to make an RPG game. I was thinking about ...
0
votes
0answers
23 views
java slick2D - problem using ScalableGame class
I have problem adjusting the size of the screen, using the ScalableGame class from Slick2D library.
So, what I want to achieve, whenever I change display size, background should adjust to screen ...
0
votes
0answers
9 views
What's wrong with this answer? [migrated]
I wrote an answer to this question, but I can't post it even though it's not opinion based. which tile size to choice for 16-bits
What's wrong with my answer?
The Answer:
I'll use these classic ...
2
votes
1answer
122 views
Why is there high performance hit with many meshes?
I am currently reading upon Geometry Instancing, as I want to render a lot of animatable objects on the screen.
However I have come to a more fundamental question first: Why do I even need to use it?
...
3
votes
1answer
82 views
How to Construct a Perspective Projection With 4 Vanishing Points
Is it possible to construct a projection matrix which will create a perspective with four (or more) vanishing points?
This question have an OpenGL tag, but general insights are welcomed as well.
0
votes
1answer
116 views
OGRE 3D: How to create very basic gameworld
I'm considering trying around to create an FPS (First person shooter), using the Ogre 3D engine.
I have done the Basic Tutorials (except CEGUI), and have read through the Intermediate Tutorial, I ...
2
votes
1answer
62 views
Compute Shader Memory Sharing
Ok guys I have had some pretty good success on this site but I feel that this is a pretty complex question.
I am trying to do tile based deferred lighting using DirectX 11 and the compute shader. ...
0
votes
1answer
58 views
Displaying normals of a geometry
I have a rectangle which is created by 2 triangles and it is in x-z plane, and i have object on it. Now, the normals of two triangles (face normals) are y axis i.e. (0,1,0). I want to display normals ...
0
votes
1answer
71 views
rotating 3D object around the center
I have object moving from A to B on x-axis and there is no translation of object apart from it. Now, while moving, i want to rotate it around y-axis and the motion should change accordingly, i mean if ...
5
votes
1answer
131 views
2D Polygon Triangulation
I am creating a game engine using the JBox2D physics engine. It only allows you to create polygon fixtures up to 8 vertices, To create a body with more than 8 vertices, you need to create multiple ...
-1
votes
0answers
26 views
IPhone Game: what additional banner images should I use to promote my game?
I went to iTunes connect and that's the list of images I understand are required:
App Icon
App Screenshot previews
However sometimes I see that featured game have a special banner like this Angry ...
2
votes
1answer
115 views
What is the purpose for multiple windows in games?
A lot of game development APIs recently got support for multiple windows (such as SDL 2, and GLFW 3). But why did they add that feature? I've never seen a game in my life use multiple windows (with ...
-1
votes
1answer
36 views
Render white background with Graphics in Canvas
I am developing a game that I would like the background to be white, and it just sticks to being black. Here is my render method:
private BufferedImage image = new BufferedImage(WIDTH, HEIGHT, ...
0
votes
1answer
56 views
Emulated vector scaling with raster graphics?
this is a fairly loaded question.
I'm looking to develop a Tech Design Document with my programming team and we're now on the fence about a major 2D graphical engine decision.
What we would like to ...
0
votes
0answers
24 views
Is there a transformation or set of transformations that can approximate a “radial scale”?
Is there a way to, with matrices, scale something as if someone were opening a Japanese fan? I'm at a loss of what to call it, so pointers towards avenues of research would be greatly appreciated. If ...
3
votes
1answer
93 views
GGX specular BRDF is way over 1!
Now, the classic Torrance derivation for roughened surfaces which Cook took into vectorized form yields the familiar parametrization of a specular BRDF where we have the NDF which decides how much ...
2
votes
1answer
110 views
what is order of implementation of matrix transforms?
What is the meaning of Tr*Sh*Ro*Sc =M ?
How is matrix M written to form the graphic transformation : 1st Sc=Scale, 2nd: R=Rotate, 3rd : Sh=Shear 4th: T=Translate ?
Is the matrix M above written ...
3
votes
2answers
105 views
How do I draw these tiles without them overlapping?
I want to make a map that is tiled, and I want to start the map with all grass.
I use this tile:
When I display this tile and place another next to it I get the following result:
How do I get ...
0
votes
1answer
94 views
Dynamic Shapes and dynamic animations
I saw this video: Video
And now I am curious about the following: How can you achieve dynamic forms like they are shown in this video.
What I mean is: Do you need to have some "base" models which can ...
4
votes
2answers
231 views
How would I display a unit that is hidden behind another object
Right, I've tried searching for this but as you might be able to tell from the title, I didn't really know how to word it anyway...
In some games such as rts games, when a unit is hidden or half ...
0
votes
0answers
68 views
XNA 4.0 - stretch full screen window?
I have an issue with resolution in XNA 4.0.
I'm running fullscreen. The game runs standard at 1920x1080, and can be scaled down to 1280x720.
The resolutions are both 16:9 (1920/1,5 = 1280, 1080/1,5 ...
0
votes
1answer
87 views
Performance of XNA 4,0 static vertex buffer / VertexPositionNormalTexture in F#
Good afternoon,
I have been toying with the VertexBuffer in XNA just to see what it is capable of. I have done some very minor 3D work in the past, so the concepts are not completely foreign to me; ...
2
votes
1answer
107 views
Auto-tiling with Yoshi's Island style tiles
I'm creating a 2D platformer and I'd like to implement an auto-tiling system. Normally, this wouldn't be particularly difficult. However, I'd like to have tiles like in Yoshi's Island, where the ...
1
vote
1answer
140 views
What is the logic behind a 3D Projection 'Camera Perspective'? [closed]
Suppose I had a 3D Cube on a 2D plane (screen). And I wanted to use the keypad to move and rotate it.
Without referring to a 3D Game Engine that could do this for me can you explain me the logic or ...
2
votes
1answer
55 views
Cascaded Shadow Maps: clipping against scene bounds
I just implemented an initial version of CSMs based on the MSDN articles Common Techniques to Improve Shadow Depth Maps and Cascaded Shadow Maps.
I fit the shadow projection to the view frustum, and ...
1
vote
1answer
61 views
How to render models using a personalized projection matrix?
I'm creating a game with a great sprite demand. Out team is considering automatizing the sprite generation using 3D models. The problem is we have a very particular ortographic projection:
We have ...
0
votes
0answers
56 views
Should you refrain supporting less-than-24 Bit video modes?
Checking the supported video modes on my machine, I noticed that the possible modes consist of the resolutions once with 24 bit color mode, and once with 15.
See for reference the output of the glfw ...
26
votes
5answers
1k views
24-Bit Colordepth not enough?
I noticed that in very soft gradients, the 24-Bit colordepth is not enough as you can see the transitions of the color. This pops out the most in dark scenes or night skies.
Why doesn't anybody ...
2
votes
2answers
260 views
How to code a Game Grid in Java?
Suppose I wanted to code a game grid in java. Not an abstract text one but an actual grid with graphics and 'cells'. Would I have to draw line by line or is there a more efficient way? Also how would ...
12
votes
3answers
608 views
Recreating this flat-shaded look
I'll keep it short. How does one achieve the effect depicted in the image below? Is it feasible to do in realtime? It looks deceptively simple, but it probably isn't. Are there any keywords I can ...
-4
votes
1answer
124 views
How good can the graphics get on a game made only with Python? [closed]
Aside from the game being fun, which is the most important, is it possible to make a "good looking" game with it? The graphics I mean. Like Angry Birds. Could that be made in python, looking like ...
3
votes
1answer
80 views
Symmetry preserving path simplification
I'm using the Douglas peucker (DP) algorithm to simplify some (2d) closed paths forming a shape. This works pretty good, but not so much for closed paths that have some symmetry. Take for example a ...
3
votes
1answer
159 views
Automatic shadow for isometric objects
I have like hunderd of isometric objects. One example:
I'm trying to find a way to automate creation of shadow they're casting. I ended up with following transformation:
matrix.Shear(-0.25f, ...
1
vote
3answers
114 views
What's the difference between using hardware-accelerated APIs and the OS's drawing API?
On Windows, I can do drawing with the OS API without OpenGL or D3D. The code I am writing will make calls to a device driver and tell the GPU what to do regardless, right?
How is using OpenGL ...
-1
votes
1answer
87 views
Definition of graphics needed [duplicate]
It is not isometric, neither is it pure 2D. What is this graphics view called?
2
votes
1answer
122 views
Which camera angle is used for these sprites?
I am trying to replicate these sprites:
But I am not managing to make sense of how it is done. The character is facing forward ( <--- ), but you can see the front of its body instead of just ...
1
vote
0answers
78 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
1answer
179 views
How to create a text-based game? [closed]
I would like to create a text-based game. As simple as that.
I have some understanding of the coding that needs to go into it as I do know a fair amount of JavaScript and I can do it in the ...
1
vote
2answers
121 views
Designing frames and animations for a fighting game - are there any guidelines or a framework?
I am currently starting to outline a fighting game I'm doing with a friend. The biggest obstacle for me now is determining frames for every move. Are there any resources on how many frames should a ...
2
votes
2answers
146 views
XNA 3.1 to 4.0 Vertex Shader Not Drawing
I have recently been converting our XNA 3.1 game to XNA 4.0 and am stuck on the shaders. I have the game running, but nothing is drawing to the screen, except things not using a shader.
This is only ...
1
vote
0answers
45 views
Slick2D : translate -> scale -> translate doesn't return to the old position
I am trying to implement zoom using Slick2D library.
As I understand, to zoom something on non (0,0) coordinates, we need:
translate so the target point is in (0,0)
apply scale factor
translate the ...
2
votes
1answer
127 views
Do I have to keep textures in Android games smaller than 1024^2?
I have read tips in books and article that point out, if you are making a game for Android, make sure your textures are =< 1024^2, or you'll not reach all your potential customers.
I have never ...
1
vote
1answer
72 views
Which Graphics/Geometry abstraction to choose?
I've been thinking about the design for a browser app on the HTML5 canvas that simulates a 2D robot zooming around, sensing the world around it. I decided to do this from scratch just for fun. I need ...
6
votes
3answers
334 views
Why does clipping take place after illumination?
Can you explain why clipping takes place after the illumination process in the rendering pipeline? Would it be not cheaper to clip first and do then the illumination?
1
vote
2answers
175 views
Creating a 2D perspective in 3D game
I'm new to XNA and 3D game development in general.
I'm creating a puzzle game kind of similar to tetris, built with blocks. I decided to build the game in 3D since I can do some cool animations and ...
3
votes
0answers
96 views
ways to program glitch style effects
Most tutorials for generating glitch art usually has to do with some form of manipulation of the compression of files. Should my goal instead to replicate the look of these glitches in shaders or is ...
0
votes
0answers
110 views
OpenGL: Attempt to allocate a texture to big for the current hardware
I'm getting the following error:
java.io.IOException: Attempt to allocate a texture to big for the current hardware
at ...