The process of generating an image or series of images from a model by means of computer programming.

learn more… | top users | synonyms (1)

-2
votes
1answer
72 views

Why is my Snake' tail rendering the wrong sprite? [on hold]

I am making a snake game in Unity. The game is simple, using Texture2D to display the head, tail and body parts. I am stuck with this problem: I stored 4 textures (each one for one of the four ...
1
vote
4answers
205 views

Why would you use software rendering over hardware rendering, today?

As opposed to CPU or software rendering I assume? Wouldn't generally all current rendering be GPU based, seeing as you would be using OpenGL or Direct X? Could someone give me some info here, can't ...
-1
votes
1answer
63 views

C++ SDL2 OpenGL Rendering Problems [on hold]

I just started with SDL2 and OpenGL in C++ and I am having some trouble rendering a triangle. The triangle I want to draw renders on the screen, but it is black. I tried added some shaders, but they ...
0
votes
1answer
49 views

Is there any reasons to make sprites and bodies line up?

So in LibGDX the Sprite objects position is where it's 0,0 mark is in the word. In Box2D a a bodies position is in it's center. So to line these up when you update the sprites position with the ...
0
votes
1answer
91 views

OpenGL: How to improve the performance of rendering context

I have written a benchmark program that compares the performance of OpenGL and DirectX libraries. The problem is that OpenGL gets much lower performance than Direct3D. At the end the program generates ...
0
votes
1answer
40 views

Direct3D: should I use MIXED_VERTEXPROCESSING?

Yesterday on Youtube I watched a video tutorial about creating Direct3D stuff. On that tutorial there was a part about VERTEXPROCESSING compatibility with older video cards. The guy said that the ...
2
votes
2answers
49 views

How do I render a rounded rectangle in libgdx?

I've been thinking of ways to render a rounded rectangle in libgdx. I haven't found a pre-built way in the documentation. I've looked at: ShapeRenderer, but that's apparently quite expensive ...
1
vote
2answers
84 views

How to use blender files in your own engine?

It is not trivial to use your own shader on blender, so I've created a good-looking webgl shader. Now, what do I need to use the things I made in blender on it? An obvious first idea would be to parse ...
0
votes
3answers
66 views

How can a game engines renderer be compatible with a 3d modeling software such a Maya

So you create some model in say Maya, you apply all kinds of effect to the model and then export the file. So then the game engine has to load the file and render it, so surely the game engines needs ...
0
votes
0answers
59 views

Slick2D: Rendering Error [closed]

I am new to Slick2D And I am having a nullpointer exception Error with rendering Images. With my code when the key "W" is pressed a whole array of blocks is moved 16 pixels but its throwing a ...
1
vote
1answer
33 views

Cocos2D - Fill a Sprite with a pattern

I have a CCSprite with a certain shape in Cocos2D and I would like to fill it with a pattern, as seen here: I've seen a lot of examples where they fill a rectangle with a pattern, or even a ...
0
votes
0answers
29 views

Rendering bug in java

I'm using a simple rendering method in java to render tiles. Everything looks fine, but I notice that some rows grow 1 pixel when I move, and dhen shrink back, but I have no idea why. Infos: I'm ...
-1
votes
0answers
31 views

using OGRE to render a scientific plot

How do I make a scientific plot tool using OGRE? Maybe a 'scatter plot' is a common name for it. My thought is to render the data as vertices with the RenderOperation::OperationType set to ...
3
votes
1answer
101 views

Understanding and editing HDR light environments in Photoshop

I'm working with an in-development system that uses .hdr environments (equirectangular projection) to provide image-based lighting (IBL) to a 3D rendering. I'm trying to understand what range of ...
1
vote
1answer
57 views

Who should handle animations when game logic is separated from rendering?

Suppose I have a tile-based game and I want the step to be 1 tile but also want the movement to be smooth while the player is getting there. If I understand correctly, the only way to achieve this ...
6
votes
1answer
139 views

Optimize state changes within a render queue

I am refactoring some parts of the game engine I am working on. This engine is made in C# with XNA. The part I have trouble with is shader/material and the render queue. In the new version I will ...
-1
votes
0answers
24 views

Composite opaque and transparent images together

If a question like this has already been asked let me know, I am trying to make a game where you can only see what is in the players range of vision. to solve this I have a rectangle the size of the ...
3
votes
1answer
64 views

Self occluding object and alpha blending

Look at the object I've rendered with my app: It's the same screen twice, above the original and below I've drawn (by hand :P) the shape of the mesh of one of plant's leaves. You can clearly see ...
0
votes
1answer
66 views

Correct GL settings to mix 2D and 3D rendering

I'm programming a 3D game engine with 2D GUI. The GUI objects have partially transparent textures and the transparency works more or less. The sky color is rendered in transparent areas of the ...
2
votes
2answers
113 views

How can I determine the pixels covered by a transformed triangle (without drawing it)?

I have three points that form a triangle in a 3D scene. I want to apply an arbitrary rotation/translation transformation to this polygon and later check in which pixels of an image they would be ...
2
votes
1answer
65 views

Rasterizing parametric solids in Minecraft voxel space

I'm trying to render giant procedurally generated trees in Minecraft. I have code that generates a tree model and represents it parametrically as a collection of cones and spheres using vectors and ...
0
votes
1answer
88 views

When entities don't draw themselves, who actually does?

There are countless questions here about whether entities should draw themselves or not. The answer is almost universally no, there should be a renderer. And I do see a point in having a single place ...
1
vote
0answers
62 views

LibGDX - Box2D: Realistic Light and Layers

I'm having some problems with my current game. Short description: It's a 2D game where you have to avoid the lights or you lose HP. My problem is the following one: Here is the rendering process: ...
7
votes
3answers
192 views

Terrain & Multi-Texturing

I'm using OpenGL (Version 4.4) (and C++ if that matters). I've created a terrain renderer, the terrain is stored as a 3D scalar field (isosurface/voxels). It uses a slightly modified version of ...
0
votes
1answer
116 views

How can I apply an outline effect in Unity?

I want to apply an outline effect for several objects on the scene. Nope, the standard outline shader from the toon-shader package don't met my criteria. I want to create an effect like this: To ...
1
vote
0answers
43 views

LibGDX render sprites in tiled-map format ( convert texture to sprite )

I am creating a game in which till now I have used textures to create A 2D tiled game. I have created a matrix which converts the touch co-ordinates into a array index number and according to that ...
-2
votes
1answer
79 views

Load single texture atlas for multiple sprite

Recently, I am developing sudoku game. For this, I have created multiple grid 9x9,12x12 and 15x15. For this numbers are repeated so multiple sprite renderer are created and it load same number ...
0
votes
0answers
72 views

Libgdx TileMap size limitations

I have a tmx file of 800*18 size.. It is working but there is some problem like sometimes game is slow or the player jumps too much high or the collision from ground doesn't happen properly and player ...
5
votes
2answers
694 views

Why is my gameloop logic not being restricted to 60 per second?

Here is my gameloop (taken from http://www.koonsolo.com/news/dewitters-gameloop/) which is supposed to limit the game (logic) updates to 60 per seconds and render as fast as the device allows: long ...
0
votes
1answer
63 views

How to create a vertex buffer that provides this pattern?

I have a series of vertices that I want to layout with the following configuration, but I haven't been able to find out how to do this with the square and X pattern. Most of the time I have generally ...
0
votes
3answers
112 views

Why is my texture drawn in a different place when in fullscreen?

I'm trying to draw a texture (with a crescent moon) in the middle of the y-axis: public void draw(SpriteBatch batch) { batch.draw(lune, 0, Gdx.graphics.getHeight() / 2); } It renders this when ...
5
votes
1answer
200 views

With what projection matrix should I render a portal to a texture?

I'm using OpenGL. I have problem with my engine's portal implementation. To create the first portal I do: create a virtual camera with the position of the second portal and the correct orientation ...
0
votes
1answer
69 views

How do I double-buffer renders to a JPanel?

I'm trying to make a little breakout game with Java and Swing. The only issue so far is that drawing on the JPanel causes lots of flickering! The relevant code: JFrame frame = new ...
0
votes
1answer
71 views

LWJGL SlickUtil Texture Binding

I am making a 3D game using LWJGL and I have a texture class with static variables so that I only need to load textures once, even if I need to use them more than once. I am using Slick Util for this. ...
0
votes
0answers
108 views

Sprite Rendering Cost Calculation

First of all asking before asking this question I have already read following post for the clearance of my mind. Sprite Renderer Texture 2D I want to change my background texture as per device ...
1
vote
1answer
70 views

Why does rendering a gradiented shape leave gaps?

Sometimes when I am drawing objects that aren't 'linear' (e.g. rounded edges, circles, ellipses, diagonal lines, etc) I this weird effect of some pixels at certain points not getting drawn. It's ...
1
vote
2answers
84 views

pre-rendering light on texture based on bump map

Using a gray-scale bump-map and N sources of colored light, what is the algorithm to render the light on the textured surface, assuming I have the angle(s) and distance of each light source? (I am ...
1
vote
1answer
194 views

What is the difference between “offline” and “real time” rendering?

I have a rough idea: real-time is approximated with little or no global illumination. But how would you otherwise explain why offline rending takes so much longer? You hear things like "number of ...
1
vote
2answers
189 views

Should game objects draw themselves? [duplicate]

Assuming you have classes like Player, Enemy, Map and Tile. The first approach to structuring rendering code would be to give each a render() method and let it draw itself: void render(){ ...
0
votes
2answers
81 views

Algorithmic error in tile engine? [closed]

I'm toying with creating a tile-based 2D java game engine. I can render the "local" area without issues(I.E. deciding which local tiles to render). The problem came when I introduced floating point ...
1
vote
2answers
133 views

Can global Illumination via path tracing replace all other current lighting techniques?

In the sense that you currently have algorithms like HDR, shadows, reflections, caustics, motion blur and so on, does complete path tracing take care of all these effects, or would you still have to ...
0
votes
1answer
43 views

Triangular grid and rendering to a texture (Direct3D 11)

Is it possible to render vertex data from a triangular grid into a texture with a same size (i.e. 3x3 vertices to 3x3 pixels - each pixel is representing one vertex)? Consider following situation. I ...
2
votes
1answer
87 views

How to best utilize depth buffer precision

Are there strategies to minimize depth buffer precision problems with hyperbolic depth buffers, such as the ones resulting from perspective projection matrices, or depth buffers in general? For ...
3
votes
2answers
259 views

Recommend a way to draw thousands of particles (liquid) per frame in Unity3d

I'm writing a plugin for this library for Unity3d. I have it working and now I am looking for an efficient way to draw the particles. My 1st test just uses sprites and runs fine on my laptop but I ...
0
votes
0answers
21 views

Select all objects from a layer MEL command

I have a scene with 20+ layers and I'm currently right clicking a layer and pressing "select all objects in layer" or w/e it's called and then render (baking textures in Maya LT with Turtle). I'm ...
1
vote
2answers
76 views

Bilinear filtering: Selecting pixels to interpolate between

When looking for implementations of bilinear filtering online, all the ones I can find seem to just pick the current pixel, and the three pixels to the bottom and right side of the current pixel. ...
1
vote
0answers
86 views

LibGDX polygon caching

I am developing an Android game using LibGDX and I have big world map made of polygons. I use PolygonSprite and PolygonSpriteBatch, when I render map, I get 30-35fps and it feels laggy. I wonder if ...
2
votes
1answer
186 views

does order of updates and renders matter?

I know in a game loop there needs to be an order like physics should update before rendering. So, I have created two separate functions: update and render and the game loops like below: ...
1
vote
1answer
82 views

Bounding volume hierarchy for outdoor scenes

I started with a very simple graphics engine a few weeks ago and I have finished a simple scene-graph and I am now at a point where I need to create a bounding volume hierarchy. I never really ...
2
votes
3answers
102 views

Order of render with transparency opengl

I tried to render using different render configurations (GL_BLEND_FUNC()) but I couldn't get the back object to render in certain angles. The first screenshot here shows one angle where the back ...