The process of generating an image or series of images from a model by means of computer programming.
7
votes
2answers
375 views
Why are some games using some dithering pattern instead of traditional alpha for transparency?
Recently, I have seen some 3D games (eg: GTA IV) to use some kind of ordered dithering to simulate transparency / alpha.
The polygons are not transparent as usual, but instead render a dithering ...
3
votes
1answer
185 views
Pygame performance issue for many images
I've made a script for generating a game world based off of image pixel data.
Trying to make a python map editor
My progress so far has resulted in a program which loads an image and draws sprites ...
1
vote
2answers
206 views
Should the world transformation matrix be stored in a constant buffer when rendering?
Generally when rendering objects you would:
Apply world transformation to go from object space to world space
Apply view transformation to go from world space to camera space
Apply perspective ...
1
vote
1answer
136 views
Mapped texture to a gluSphere not wrapping correctly
I have a 3D sphere rendered using JOGL by means of GLUquadric. I'm trying to add a texture but it is not rendering as correctly.
Does anyone understand why the texture (upper-right of sphere) isnt ...
0
votes
1answer
168 views
Custom VertexDeclaration for Color, Texture, Normal
What is the best way to create a VertexDeclaration, that makes it able to render a Shape consisting of vertices and also be able to store a color for the shape (in case the texture can't be rendered - ...
1
vote
3answers
279 views
Rendering multiline text with SDL_TTF
Can you use any function to render more than a line of text in a surface?
If you can't do this, what whould be the way to go?
I am doing the following: Create a surface (not sure if should be a ...
0
votes
1answer
965 views
Draw a line using libgdx ShapeRenderer() [closed]
Need to Draw 3x3 line for tic tac toe,
i started implementation but i stuck here
package com.me.mygdxgame;
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import ...
0
votes
3answers
239 views
Event Based Render / Update Loop
I'm working on a few game dev tools which use OpenGL or DirectX to render 3D models (viewing).
Consider your favorite 3D modeling software package (Softimage, Maya, 3DS Max, modo, etc.). Note that ...
11
votes
1answer
377 views
OpenGL - white edges on cubes
In a minecraft-like game I'm making, I get white edges on my cubes:
It is much more noticeable in darker textures. The textures are being setup like this:
glTexParameteri(GL_TEXTURE_2D, ...
3
votes
1answer
130 views
Blender Object Appearing Gray when all Lights are Off
I have an issue with Blender where, when I turn my only light off (a sun lamp) and render the image my object appears gray rather than black (and thus, not appear to the camera). I can't figure out ...
2
votes
1answer
112 views
Where in a typical rendering pipeline does visibility and shading occur?
I am taking a computer graphics course. The book and the lecture notes are vague on the on the order of flow between the different steps in the rendering process. For example, if we have specified a ...
1
vote
2answers
130 views
How do I cap rendering of tiles in a 2D game with SDL?
I have some boilerplate code working, I basically have a tile based map composed of just 3 colors, and some walls and render with SDL. The tiles are in a bmp file, but each tile inside it corresponds ...
-2
votes
1answer
271 views
Game Engines with real time lighting
I am studying computer graphics since 3 semesters and we just started with OpenGL. I really enjoy it and want to create my own little engine for learning purposes.
I already read tons of different ...
2
votes
2answers
205 views
Square game map rendered as sphere
For a hobby project of mine I have created a finite voxel world (similar to Minecraft), but as I said, mine is finite. When you reach the edge of it, you are sent to the other side. That is all ...
0
votes
2answers
512 views
HTML5 - Does it have the power to handle a large 2D game with a huge world? [closed]
I have been using XNA game studio, but due to private reasons (as well as the ability to publish anywhere & my heavy interest in isogenic engine), I would like to switch to HTML5.
However, I have ...
0
votes
1answer
83 views
Render graphics using Doubles in Graphics2D
Currently, I have a JFrame for my game to render in, and I'm using Graphics2D for drawing (The games graphics are fairly simple 2D sprites). However, my delta variable is a double, and all of the ...
-3
votes
1answer
206 views
Isometric Rendering and Picking [duplicate]
Possible Duplicate:
Isometric rendering and picking?
I've been looking for a formula to plot (world->screen) and mouse pick (world->screen) isometric tiles in a non-diamond-shaped world. ...
3
votes
1answer
116 views
blurry image rendered
I'm using Direct2D to render a PNG image using a ID2D1BitmapRenderTarget and then caling it's GetBitmap() function and rendering the image using ID2D1HwndRenderTarget::DrawBitmap().
Some of the ...
7
votes
2answers
2k views
How do I render terrain in a 2.5D perspective, like in the game Don't Starve?
I have experience in making 2D side scroller games such as Terraria, but now I want to challenge myself and make a game that has a 2.5D perspective. The game I am trying to mimic is Don't Starve. ...
0
votes
0answers
46 views
How to attach PIX to running app?
Do you know how can I attach PIX or other rendering debuging program to running windows app with directx? Is it possible ? I can only choose in *.exe to run :/ I have Directx SDK June 2010
2
votes
1answer
159 views
Software rendering 3d triangles in the proper order
I'm implementing a basic 3d rendering engine in software (for education purposes, please don't mention to use an API). When I project a triangle from 3d to 2d coordinates, I draw the triangle. ...
6
votes
3answers
576 views
What is the best way to render a 2d game map?
I know efficiency is key in game programming and I've had some experiences with rendering a "map" earlier but probably not in the best of ways.
For a 2D TopDown game: (simply render the ...
1
vote
3answers
171 views
relationship between the model and the renderer
I tried to build a simple graphics engine, and faced with this problems:
i have a list of models that i need to draw, and object (renderer) that implements IRenderer interface with method ...
3
votes
1answer
111 views
how to change the number of rendered frames in Blender
i´m using blender to render an animation in single pictures and i want to make an 16 frames animation out of an 24 frames one without changing the set keyframes. Is there an option to skip every 3rd ...
1
vote
0answers
48 views
Rendering text with stb_font results in glitches
I'm trying to render text with OpenGL and an "inline"-font taken from the stb_fonts
The relevant code for initializing the font & rendering:
LabelFactory::LabelFactory() {
static unsigned ...
4
votes
2answers
508 views
What is the order-less rendering technique that allows partial transparency?
I've seen somewhere rendering technique that allows order-less rendering of partially transparent sprites/objects.
Though I can't remember what the technique is called, so I'm having trouble Googling ...
1
vote
1answer
323 views
Does SFML render graphics outside the window?
While working on a tile-based map I figured it would be a good idea if I would only render what the player sees on the game window, but then it occurred to me that SFML could already be optimized ...
1
vote
1answer
92 views
Inter Quake Model IQM render Directx9
I'm trying to render an Inter Quake Model(http://lee.fov120.com/iqm/) in DirectX9 that I exported from blender.
I want to display animations which IQM supports and my model format does not.
The ...
1
vote
1answer
938 views
LWJGL Text Rendering
Currently in my project I am using LWJGL and the Slick2D library to render text onto the screen. Here is a more specific example:
Font f = new Font("Times New Roman",Font.BOLD,18);
font = new ...
5
votes
2answers
625 views
How can I acheive a smooth 2D lighting effect?
I'm making a tile based game in XNA.
So currently my lightning looks like this:
How can I get it to look like this?
Instead of each block having its own tint, it has a smooth overlay.
I'm assuming ...
0
votes
1answer
244 views
Color Picking Troubles - LWJGL/OpenGL
I'm attempting to check which object the user is hovering over. While everything seems to be just how I'd think it should be, I'm not able to get the correct color due to the second time I draw ...
3
votes
1answer
169 views
Is there any heuristic to polygonize a closed 2D raster shape with n triangles?
Let's say we have a 2D image black on white that shows a closed geometric shape.
Is there any (not naive brute force) algorithm that approximates that shape as closely as possible with n triangles? ...
2
votes
2answers
166 views
Drawing multiple triangles at once isn't working
I'm trying to draw multiple triangles at once to make up a "shape". I have a class that has an array of VertexPositionColor, an array of Indexes (rendered by this Triangulation class):
...
-2
votes
1answer
136 views
Rendering projectiles [closed]
I'm working on a simple game that has the user control a space ship that shoots small circular projectiles. However, I'm not sure how to render these. Right now I know how to make a LPDIREC3DSURFACE ...
2
votes
1answer
259 views
OpenGL Fast-Object Instancing Error
I have some code that loops through a set of objects and renders instances of those objects. The list of objects that needs to be rendered is stored as a std::map>, where an object of class ...
8
votes
1answer
315 views
Drawing “Stenciled” Sprites and making them glow
Currently, in my game - I'm not using XNA's SpriteBatch to render anything(I am using Farseer Physic's Debug View), and I was wondering how I would render something like this:
only using XNA. My ...
2
votes
2answers
276 views
How to draw realtime 3D amoebas in OpenGL?
How would one draw 3D amoebas in real-time in OpenGL? The key components I'm looking for are:
Curved closed surface that changes shape
Generally transparent
Something translucent inside showing the ...
6
votes
4answers
1k views
Entity System and rendering
Okey, what I know so far;
The entity contains a component(data-storage) which holds information like;
- Texture/sprite
- Shader
- etc
And then I have a renderer system which draws all this. But ...
1
vote
2answers
180 views
Which isometric angles can be mirrored (and otherwise transformed) for optimization?
I am working on a basic isometric game, and am struggling to find the correct mirrors.
Mirror can be any form of transform.
I have managed to get SE out of SW, by scaling the sprite on X axis by -1. ...
2
votes
1answer
174 views
2D scene graph not transforming relative to parent
I am currently in the process of coding my own 2D Scene graph, which is basically a port of flash's render engine.
The problem I have right now is my rendering doesn't seem to be working properly. ...
1
vote
1answer
86 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
1answer
99 views
What's the standard location of a 3D clipping box?
The way I understand 3D rendering, polygons are transformed using several matrices, and they are then clipped if they are not inside a certain box, before projecting the box onto the screen. Before ...
1
vote
2answers
99 views
Working out of a vertex array for destrucible objects
I have diamond-shaped polygonal bullets. There are lots of them on the screen.
I did not want to create a vertex array for each, so I packed them into a single vertex array and they're all drawn at ...
4
votes
1answer
270 views
Vertex fog producing black artifacts
I am rendering a textured model using the XNA BasicEffect. When I enable fog, the model outline is still visible as many small black dots when it should be "in the fog". Why is this happening?
...
5
votes
1answer
166 views
Two graphical entities, smooth blending between them (e.g. asphalt and grass)
Supposedly in a scenario there are, among other things, a tarmac strip and a meadow. The tarmac has an asphalt texture and its model is a triangle strip long that might bifurcate at some point into ...
7
votes
1answer
462 views
Information about rendering, batches, the graphical card, performance etc. + XNA?
I know the title is a bit vague but it's hard to describe what I'm really looking for, but here goes.
When it comes to CPU rendering, performance is mostly easy to estimate and straightforward, but ...
0
votes
0answers
63 views
Faking Display tree (Sprite) parent child relationships with rasters (BitmapData) in ActionScript 3
I am working with Rasters (bitmapData) and blliting (copypixels) in a 2d-game in actionscript 3. I like how you can move a sprite and it moves all it's children, and you can simultaneously move the ...
0
votes
2answers
442 views
Rendering another screen on top of main game screen in fullscreen mode
my game runs in fullscreen mode and uses active rendering. The graphics are drawn on the fullscreen window in each game loop:
public void render() {
Window w = ...
2
votes
3answers
352 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, ...
1
vote
1answer
189 views
Lost transparency in SDL surfaces drawn manually
I want to create SDL_Surface objects for each layer of my 2d tile-based map so that I have to render only one surface per layer rather than too many tiles. With normal tiles which do not have ...

