2
votes
0answers
90 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 ...
0
votes
1answer
134 views

Why does my SFML game cause screen tearing on Linux?

I wrote a little game of a bouncing ball, using SFML and Box2D. On Windows, the graphics animate smoothly. However, on my Linux machine, the animation stutters randomly. To be precise, I get a ...
1
vote
1answer
57 views

Draw a rotated rectfill in Allegro 4.2?

I'd like to use Matricies to transform primitive geometric shapes and draw them using the Allegro library using version 4.2 (I can not switch to 5.x just yet). This works fine for non-filled objects ...
5
votes
2answers
280 views

Do I really need to clear the renderer every iteration?

Just a quick question about fine-tuning/optimization. If I'm making a 2D platformer with a parallax-scrolling background (meaning no two frames are the same) do I really need to clear my renderer for ...
1
vote
2answers
237 views

Creating weapons/armor procedurally

In my current project I am creating a 2d game (rpg) which should be able to dynamically create new weapons and armor based on different components. So, i.e. a sample weapon would consist of barrel1, ...
1
vote
1answer
384 views

glsl shader to allow color change of skydome ogre3d

I'm still very new to all this but learning a lot. I'm putting together an application using Ogre3d as the rendering engine. So far I've got it running, with a simple scene, a day/night cycle system ...
1
vote
1answer
49 views

Vertexquads are not being drawn in 2D space

I started teaching myself DirectX a short time ago and have come across a problem which I can't figure out by myself unfortunately. I'm trying to build my own font system, so I can draw strings in 2D ...
0
votes
0answers
30 views

Rotating an object towards a point in OpenGL C++ [duplicate]

I calculate the matrix like this: modelMatrix = glm::translate<float>(position) * glm::rotate<float>(orientation.x, glm::vec3(1, 0, 0)) * glm::rotate<float>(orientation.y, ...
3
votes
1answer
297 views

Solving banding with additive blended particles

I needed to implement particles for my 2D game, written in C++ with OpenGL for graphics, so I went ahead and created a nice geometry container to batch particles together and then implemented the ...
2
votes
1answer
387 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
125 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 ...
4
votes
2answers
369 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 ...
-5
votes
1answer
197 views

Starting off C++ games development? [closed]

I've just finished my 2nd year of college, and now that I have time on my hands I want to start working on a 3D game, though my stumbling point is trying to find the resources to learn C++ games ...
0
votes
0answers
1k 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 ...
4
votes
1answer
237 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 ...
2
votes
1answer
2k 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 ...
-3
votes
3answers
3k 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 ...
1
vote
2answers
502 views

Recommended formats to store bitmaps in memory?

I'm working with general purpose image rendering, and high-performance image processing, and so I need to know how to store bitmaps in-memory. (24bpp/32bpp, compressed/raw, etc) What is the "usual" ...
6
votes
4answers
599 views

Sharing data between graphics and physics engine in the game?

I'm writing the game engine that consists of few modules. Two of them are the graphics engine and the physics engine. I wonder if it's a good solution to share data between them? Two ways (sharing ...
0
votes
1answer
216 views

How can you easily determine the textureRect for tiled maps in SFML 2.0?

I'm working on creating a 2d map prototype, and I've come across the rendering bit of it. I have a tilesheet with tiles, each tile is 30x30 pixels, and there's a 1px border to delimitate them. In ...
-3
votes
1answer
295 views

What is the best way to get into game development and learn how to program with graphics? [closed]

I'm a 16 year old learning C++. My friend and I have dreams of starting our own indie game company and we would, both, like to know how to get into game development. One of our major questions is: ...
-3
votes
1answer
196 views

Algorithmically generating neon layers on pixel grid [duplicate]

Possible Duplicate: How to achieve a Neon-Light effect? In an attempt at a screensaver I am making, I am a fan of neo-like graphics, which, of course, look great against a black background. ...
3
votes
1answer
429 views

Fog with Blend in OpenGL

I want to add fog in my scene which contain transparent textures made by Blend , when i enable the fog the transparent textures appear white From a distance but when i disable it the textures ...
2
votes
5answers
870 views

Attach simple, portable 2D graphics for a c++ game

I have a game written in C++ (using STL and c++11 extensively). I would like to do the following things: Attach graphics to this game -> Think chessboard of some kind. I just need some pictures ...
1
vote
3answers
778 views

DirectX — Best version to develop for? [duplicate]

Possible Duplicate: learning Direct3D 9, 10 or 11? I'm just starting to learn DirectX, and I was wondering what the best version would be best to develop for. I'm trying DirectX 9 right ...
0
votes
2answers
851 views

Computer animation in C++ and if it can be integrated in web designes

I have a PhD in Mathematics with some experience in C++ programming. I am very interested in computer animation, and would like to try to teach myself in C++. My humble resources at the moment are: ...
2
votes
1answer
838 views

What C++ features should I know about for a graphics programming job interview?

I really don't want to be boring, I searched a lot but didn't found a focused answer to this question. I wanted to focus on the role of C++ in graphics programming. Can somebody explain, which are ...
3
votes
3answers
4k views

Is there a good cross-platform C++ vector graphics library out there? [closed]

I'm making a game and want to use vector graphics. I started re-coding it using Cairo and the performance is horrific. So, I'm looking for a different library. It needs to be for C++ and ...
-3
votes
4answers
619 views

Advice of feasibility of final year project

Final year student from an IT college in Ireland. I'm not really sure if this is the right place to post but It seems that graphics programming is very closely related to games and the people here ...
7
votes
3answers
3k views

Draw contour around object in Opengl

I need to draw contour around 2d objects in 3d space. I tried drawing lines around object(+points to fill the gap), but due to line width, some part of it(~50%) was covering object. I tried to use ...
0
votes
2answers
1k views

my SFML sprite Move() function: FeedBack?

Hey so i'm making a pong game with SFML and in the process made a function that takes a Time, Speed, Angle of movement, buffer for the movement on the X axis, and buffer for the movement on the Y ...
4
votes
2answers
2k views

Bitmap font rendering, UV generation and vertex placement [closed]

I am generating a bitmap, however, I am not sure on how to render the UV's and placement. I had a thread like this once before, but it was too loosely worded as to what I was looking to do. What I am ...
16
votes
12answers
2k views

3D theory before graphics APIs? [closed]

I'm a software engineer and I'm hoping to move my career towards game development. I'm reading a book right now on 2D using C++/DirectX. When I get into 3D I know I want to do it correctly. For ...