A very generic term referring to visual part of a game. Try to avoid unrelevant usage and instead tag for specific graphics type (2D, 3D), API, framework or a library you are using, if possible.

learn more… | top users | synonyms

0
votes
0answers
6 views

How to copy texture of type GL_TEXTURE_EXTERNAL_OES to a texture of type GL_TEXTURE_2D

How to copy texture of type GL_TEXTURE_EXTERNAL_OES to a texture of type GL_TEXTURE_2D ? How to find the internal format of texture ?
1
vote
1answer
80 views

Cocos2d Sprite 3D position

When I set a position3D for a Sprite in cocos2dx, it render two times the same sprite, i took a screenshot: I set the position3D because i want to use the Z position the give an effect of distance, ...
0
votes
3answers
77 views

OpenGL Colour Issues

I am using a single VBO to store vertices in the follow format: v1X, v1Y, v1Z, v1R, v1G, v1B, v2A, v2X, ... Vertex positioning is fine, shapes show up where expected, however instead of using the ...
0
votes
0answers
38 views

Wrap Mode: Scale and Position Anywere

I am trying to write a shader in Unity that allows me to place my texture anywhere on the UV. Picture this for a second, if you add a texture on a square plane, the texture gets either stretched to ...
0
votes
3answers
121 views

Using Unreal Engine 4 to model Earth

I could not find a game that has modeled Earth completely (i.e., The entire planet and full round model). Does UE4 have a limitation, such as maximum map size, that limits modeling the entire Earth? ...
0
votes
1answer
33 views

Problem with transparent textures in SFML

I have been told that this is kind of a common problem with transparent textures, but didn't get any further information on how to solve it. In my code, I'm trying to render this texture (a square ...
0
votes
1answer
28 views

Should a transform class store a matrix or seperate position/rotation/scale values?

I'm creating a transform class to make storing the transform of individual objects in a scene easier, but I'm unsure on how to do it. I could create one like this: class Transform { public: ...
2
votes
1answer
64 views

Custom Coloring of Tileset Characters

Games like Dwarft Fortress and Dungeon Crawl Stone Soup are drawing their boards using tiles from a tileset image (I think?). I know you can do color keying and replace the background color with ...
3
votes
1answer
66 views

Fixing the size?

I have been stuck on an issue for 6 hours now, and would really appreciate your advice. Currently, my app isn't compatible with all screen sizes. When testing on a small size, my textview overlaps ...
2
votes
1answer
114 views

How can I approximate an “opening fan”-transformation?

Is there a way to—with matrices—transform something as if opening the image on a Japanese folding fan? Image from Wikimedia Commons. I'm at a loss of what to call it, so pointers towards avenues of ...
2
votes
1answer
72 views

Transparency sorting in 3D world with different render types

I am rendering a world, object, and models from an older game format. The world is presented in a BSP tree so I can quickly iterate through. The opaque surfaces are rendered front to back. Then ...
0
votes
0answers
25 views

Sub pixel Sprite jitter on moving platform

I have written a simple 2D platform game in C++. Coordinates are stored as integers, not floats. To facilitate smooth acceleration, the positions and velocities of the game objects are stored in sub ...
3
votes
1answer
232 views

Do SpriteBuilder's Smart Sprite Sheet need to be loaded to memory?

When I create an Smart Sprite Sheet Folder using SpriteBuilder and publish it, must I load that SpriteSheet into memory "FrameCache" with code or does SpriteBuilder do this automatically (so I just ...
1
vote
1answer
87 views

Sprites are rendered as black rectangles in android 4.0.x only

I have some problems rendering sprites correctly on a LG optimus vu (android version 4.0) with libgdx. Basically sprites are black rectangles, while other images that i declare as Texture are correct. ...
6
votes
2answers
629 views

Isometric graphics with fake perspective

Diablo 2 is a game with isometric graphics. However, unlike other isometric games, D2 has the option to activate perspective. Obviously, the D2 developers found a clever trick to convincingly fake ...
2
votes
1answer
942 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 ...
26
votes
5answers
41k views

What is ambient occlusion?

I've heard about ambient occlusion and it looks nice, but what exactly is it?
1
vote
1answer
92 views

Using glm to rotate the modelview matrix based on the cursor position

I am rendering a 3D model of an object, and I want the user to be able to rotate around that object by dragging the mouse. To do this, I want to use the cursor position to continually update the ...
22
votes
5answers
5k views

Quick 2D sight area calculation algorithm?

I have a matrix of tiles, on some of that tiles there are objects. I want to calculate which tiles are visible to player, and which are not, and I need to do it quite efficiently (so it would compute ...
1
vote
1answer
38 views

Recap on how a camera works in 3d Space?

This may be marked as a duplicate, but I have been trouble thinking about a camera. I understand that there is a "camera transform," or view matrix. However, this is multiplied with every vertex in ...
1
vote
0answers
24 views

Smoothly fitting texture tiles using alpha gradient on edges

I'm trying to draw a background texture with tiles that I'll rotate and mirror to create a maze. Here is a sample tile: As you can see, I use an alpha gradient on the borders. If I'd use a sharp ...
0
votes
1answer
31 views

Unity Geometryshader for one Vertex

Hy, I want to build some geometry with a geometryshader in Unity. I took a look at this. I want to create my geometry just in context of one point in 3D space (x,y,z). Can i somehow use the transform ...
2
votes
1answer
209 views

How to draw a polygon with picture in libgdx?

I'm working around a simple rectangle game, It just split the rectangle in to a lot of polygon debris. I use Pixmap and Texture to draw the edges of each polygon. ... for (GraphEdge e: _edges) { ...
1
vote
2answers
27 views

Libgdx rendering problems

Have problems with rendering moving character using ShapeRenderer, it twitches while moving, and I don't understand where from comes the problem - bad game structure (do I need to override draw method ...
0
votes
1answer
32 views

Format of bumpmaps

I have a height map I am generating in memory, just an array of floats from 0 to 1. I want to turn this into a bumpmap to be used in Unity3D. I believe I just need to create a Texture2D with the ...
0
votes
0answers
36 views

Unity 3D character's cloth immersing in between

I have a character in which its cloth overlaps on itself which gives you a discontinuation seen below. I'm using Unity 5.3. The model has been imported from Maya where it works perfectly. This ...
14
votes
5answers
6k views

boolean operations on meshes

given a set of vertices and triangles for each mesh. Does anyone know of an algorithm, or a place to start looking( I tried google first but haven't found a good place to get started) to perform ...
1
vote
1answer
35 views

Skeletal Animation - Caching global bone transforms

Very often I see skeletal animation implemented like this: On Init - store bone's local transforms and inverse bind pose On Update - traverse the skeleton tree, multiplying local transforms on the ...
1
vote
1answer
37 views

How can I implement “quality levels” for models and textures?

I'm preparing to build a 3D game without an engine and am wanting to know how I could implement graphic detail levels for my models. To do this, are the models made in the highest quality level and ...
2
votes
2answers
74 views

What is the difference between PBR and SSR

I am very new to game development and I have been trying to understand the difference between Screen Space Reflection and Physically Based Rendering. I have read about PBR, and from what I ...
0
votes
0answers
10 views

Java keyListener animating bufferedImages

I am making a game similar to a photo scramble/unscramble game which requires the use of keyListeners. I set up the logic but when I code the animations, they just sit there and do nothing and ...
1
vote
0answers
45 views

Subsurface Scattering - Transmittance

I have a question related to SSS and especially transmittance. I've looked at several papers about that topic, most of them from Jorge Jimenez, which are very interesting and, I admit, a bit hard for ...
-1
votes
1answer
58 views

Can I use hawaii state in my game commercially? [duplicate]

I want to make game more realistic, for that I need a state . So, I decided to take hawaii state, as it can be seen through google maps with street view, 3d view and much more and will help me a lot ...
0
votes
0answers
47 views

Landscape mode for game?

TL;DR: I have made 8 new layouts for each activity layout, but they are not showing up. For example, I have a layout-land directory with a layout, but that layout doesn't show up when I turn my phone ...
0
votes
1answer
26 views

Stopping Animations For Player In Java Using Slick2D

I have a problem with stopping animations for a player in Slick2D. I have tried many solutions to the problem and have looked up a couple of resources but I am still stumped by the fact that it is not ...
2
votes
1answer
29 views

Unreal Engine Player Quality

I had to force Unreal to use my integrated graphics card because VR wasn't working with my NVidia card. When I did this, the framerate dropped terribly and it popped up a dialogue "Frame rate's bad, ...
0
votes
0answers
54 views

Project 2d click/touch onto 3d plane

I have a 3d scene that contains an infinite plane that is NOT parallel to the camera (so every screen coordinate corresponds to a point on this plane- in other words, there are no possible invalid ...
44
votes
12answers
4k views

How can people recognize what engine a game uses?

About many games you can say "oh that's the Unreal Engine for sure", or "this was made by upgrading GTA 4", etc. We can often recognize the engine used for a game just by looking at its graphics ...
1
vote
2answers
86 views

Making Edges of Hand-Drawn Tileset Match Up

I'm making a tile-based platformer. A friend at college is doing all my art, and so far it's beautifully hand-drawn. The problem is, I can't seem to make the edges of the tilesets match up. He ...
1
vote
3answers
406 views

What name (if any) applies to this particular 3D rendering technique?

Is there a name for this technique where when instead of rendering certain polygons, you just calculate a few key points and do the drawings in 2d? For instance, instead of rendering a sphere, you ...
3
votes
0answers
59 views

Unusual black squares in transparency effect after wake from sleep

I've encountered unusual black squares in semi transparent textures for a while now, usually in processes that were resumed after the computer woke from sleep. For example I've seen the effect in the ...
0
votes
2answers
75 views

Inverse of perspective matrix, for what?

I dont understand for what i need the inverse of the perspective Matrix in Computer Graphics and how do i calculate it?Maybe someone has an explanation for me.
1
vote
0answers
32 views

Matrix stack from direction vector chain

I've implemented an IK system for a grabber arm based on several straight segments, starting from a fixed point. The IK is based on a mass-spring simulation, which eventually rests. What I'm left with ...
5
votes
2answers
1k views

Can frequent state changes decrease rendering performance?

Can frequent texture and shader binding decrease rendering performance? "Frequent" binding example: for object for material in object render part of object using that material "Low count" ...
1
vote
1answer
55 views

How to calculate texture coordinates for a cube?

I was reading about texture mapping on 3D shapes in javafx where I came across this code, static TriangleMesh createMesh(float w, float h, float d) { if (w * h * d == 0) { return null; } float hw = w ...
0
votes
1answer
43 views

zoom, scale, pan etc in an application and printing [closed]

I have a C# windows application where I display photos for editing. The displayed image is scaled to fit the screen. I allow pan, zoom, rotate, crop operations. Once the editing is done, I would like ...
1
vote
2answers
74 views

Swap buttons in layout

Say I have 4 buttons. I want to have button 2 always swap out with another button, randomly. So, when the user taps button 2, it should swap with another button (randomly). Now, button 2 is at ...
3
votes
2answers
698 views

Mixing Perspective and Orthographic Projections?

I'm going to start with some background, so jump to my question at the bottom for the TLDR version. Problem: In a Japanese 4gamer article (english translation via Chev on Polycount) explaining some ...
0
votes
1answer
59 views

glDrawElements Crash

This is the "init" code of the Renderer class: glGenBuffers(1,&_idVBO); glGenBuffers(1,&_idEBO); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER,_idEBO); glBindBuffer(GL_VERTEX_ARRAY,_idVBO); GLint lUV ...
1
vote
0answers
50 views

Techniques of graphics rendering with single CPU core? [closed]

I am interested in methods of 2d and 3d rendering using single thread on an average CPU (e.g. for programming games for old and low-end PCs). While I usually have no performance problems when using ...