Questions tagged [graphics]

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.

Filter by
Sorted by
Tagged with
0
votes
1answer
58 views

Direct3D 11 : Pixel shader and Vertex shader getting set at every draw call

I'm working on my own (much tinier) version of Monogame. Right now I've been able to draw triangles to the screen with custom shaders using Direct3D 11. The problem is that I can't get it to be as ...
0
votes
1answer
2k views

Direct3D 11 : Vsync to 60 fps not matter the monitor refresh rate

I am working with Direct3D 11 and I am trying to figure out how to make my game run at 60 fps. Currently I use : swapChain->Present(1, 0); To max the fps with ...
0
votes
0answers
2k views

Is there a way to use Post Processing Effects on Mobile?

I tried to use the built in unity Post Processing stack, I simply just want a vignette effect for my game, but it when I tested it on my phone it ran < 25 fps, which is too low in my opinion. Is ...
0
votes
2answers
256 views

How can i make my game GUI look nicer? [closed]

Im currently developing my first little android game. Its a casual game, which people can play when they are waiting for the bus or something like that. All the other games in the playstores are ...
0
votes
1answer
144 views

How to make a cartoon like trail particle system?

I'm currently working on an little Android game, it's a reaction casual game. Because the user needs to tap some balls flying around at the right moment, I want to add some new effects to them. So I ...
4
votes
3answers
2k views

Space nebula cloud generation?

I found a cool kickstarter project called "Skywanders". It's an minecraft like space game with a lego like building system and pretty cool graphics. One thing I noticed are the "nebula clouds". They ...
3
votes
1answer
489 views

Percentage based half circle filling

I am trying to re-create this: So what I did is, made an half-circle image, filled with red, and set a TextureRegion, and used ...
3
votes
1answer
307 views

How is “resolution scaling” done?

Lots of new games use Resolution Scaling as an option. At first I thought it was just Super-sampling but it does not appear to remove aliasing so I'm assuming there is more to it than that. I guess ...
0
votes
1answer
106 views

Why are voxels used for landscape?

According to Wikipedia many games have been using so far voxel engines for modelling landscape. Why is it only used for landscape and not characters etc?
5
votes
1answer
952 views

Making a pixel-perfect viewport in LibGDX

My game that uses LibGDX as the graphics library, should be playable with every display. Here's the problem: It have to be pixel-perfect. That means, the scale factor must be an integer value, so that ...
2
votes
1answer
3k views

Sprite changes colour when imported into Unity

I create some simple geometrical shapes in Inkscape, then export it to PNG and import into Unity. Positive example: I make a rectangle of colour hsva(0, 0, 32, 255), export it as a 32x32 PNG image ...
1
vote
2answers
279 views

Should I make my games graphics lower quality so everyone can play it?

The game I'm working on targets lower end graphics capabilities machine users. Should I make my game's graphics lower quality so that everyone can play it or make its graphics high quality so that ...
3
votes
1answer
339 views

How to bend a 2D rectangle in an animation?

It is something done often in 3D but I've never heard of it in 2D. I want to bend a 2D rectangle looking a bit like that: I've seen people adding lots of vertex around knees and elbows of 3D models ...
4
votes
1answer
2k views

Why is the size of glm's vec3 struct 12 bytes?

When trying to determine the size of glm::vec3 (from GLM math library) by using the size of operator like so: sizeof(glm::vec3) I get 12 returned. When I look at ...
4
votes
1answer
367 views

creating cartoon explosions like in jetpack squad

I followed this excellent tutorial for creating volumetric explosions: https://stevencraeynest.wordpress.com/2013/03/29/easy-volumetric-explosion-in-unity3d/ I get the explosions as the tutorial ...
3
votes
0answers
1k views

How many polygons count are reasonable for an Android mobile game ? [closed]

I'm trying to develop a mobile game but I'm facing issue regarding FPS. So my question is: 2016/2017 smartphone hardware, how many polygon counts are reasonable ? Thanks
0
votes
2answers
888 views

How can I make the background of my game move following my player?

I'm starting with Libgdx and I would like to make my ParallaxBackground move following my player. I am using a TiledMap along with Scene2d, and have the camera follow the sprite of my player. I'm ...
0
votes
1answer
764 views

Drawing an isometric characters: solutions for aiming

I decided to implement an isometric 2D game for iPhone, using SpriteKit and GameplayKit, and Inkscape/GIMP as graphic tools. I prefer vectorial graphics because as a iOS programmer I am required to ...
6
votes
2answers
2k views

What is Fresnel?

I am new to graphics rendering and there are a lot of terminology. Can someone please explain what fresnel is? I see fresnel in unreal engine when people deal with translucent objects such as glasses....
1
vote
1answer
120 views

Solid outline around block

I'm creating a minecraft clone (for practice), and I'm trying to implement a feature in which the block that the player is looking at has a block outline. The way I do this is just by creating a ...
1
vote
1answer
158 views

Direct3D - ways to retrieve world position from depth buffer without matrix information

For an existing game (VBS3) I'd like to write a plugin which exports all the rendered pixels with their world position (basically something like a LIDAR point cloud). Actually I don't need the ...
-2
votes
1answer
159 views

How could I implement art similar to the Gwent cards?

Here is an example of the Gwent artwork when moving the card around: https://imgur.com/zqaHo5o What is the most likely way this has been implemented? Is it a 3D model or is it just many layers of 2D ...
4
votes
1answer
651 views

How to draw a circle on the ground like in “Warcraft 3”? [duplicate]

I've been watching "Warcraft 3", and suddenly realized that I have no idea how to draw a circle on a surface. Here is an example: I guess this is projection? I also have very little idea of how to ...
0
votes
1answer
279 views

Cocos2d-x setContentSize, setScale give poor graphic quality

I want to create sprite with size is relative to the screen size. I.e: Sprite size is equal to screen width * 0.2. I use setContentSize and ...
2
votes
2answers
148 views

How many matrices do i need to represent a rectangular figure and translate it?

I'm learning math at the moment and i can't really understand the purpose of the matrix. Yes, i've watched several tutorials out there and reading the book but still confused. Correct me if i'm wrong....
0
votes
0answers
52 views

How to get the “(human) Face” position from Webcam Texture

I am searching a way to recalculate the current Position of the Face in "Virtual World Position" From a Webcam Texture. I was thinking about a way to solve this via taking the Average Pupillary ...
1
vote
1answer
60 views

Fragment shader working so strange

the fragment shader is working so strange, can someone explain me whats going on. this one compiles fine but crashes when i use it- ...
1
vote
0answers
86 views

What is a good way to load and provide graphics to classes and subclasses in monogame?

First of all: I'm not sure if my question is worded well, I just can't think of any better way. I'm also a beginner both at Monogame and programming in general, so my question might miss the actual ...
1
vote
1answer
1k views

SDL_RenderPresent is writing over the previous frame

Whenever I call SDL_RenderPresent, the previous frame is replaced with black before the new frame is displayed. It's almost like when I call ...
1
vote
1answer
117 views

How to make proper animations for a html5 game?

I am working on a web based MMORPG in html5. Therefore, I think about using Phaser.io to be the main engine of the game on the client side. I want the game to be isometric and I am wondering how to ...
3
votes
1answer
453 views

How do I add freeglut to a Visual Studio project?

I am working on making a game for Windows in c++. I have previously made games for Ubuntu using freeglut, and I found freeglut for windows, but when I added it to the ...
4
votes
2answers
2k views

Creating and editing a .fnt file based on a PNG source

I am currently making a game, (obviously), with the LIBGDX Java Library. I have already made a font, (It's a PNG file, not a TTF or RTF), that looks something like this: (It's a mockup, by the way.) ...
1
vote
0answers
32 views

Can I make my sprite design very similar to Pokémon's sprite design? [duplicate]

I'm making a 2d RPG and I'm having trouble designing a sprite, so I downloaded an image of Pokémon Leaf Green's player sprite and copied how it looked. I didn't copy it completely, only how it looks. ...
1
vote
1answer
187 views

Minecraft: What is the reasonable face/vertex limit for custom models?

When adding custom models to function as tile entity representations, what is a reasonable ceiling - based on performance - to maintain for individual models? Assume that the player will have the ...
1
vote
0answers
39 views

Tiled: handling multiple map sizes

I have two sets of assets (lo res and hi res) that are exact replicas of each other except one set is twice the size of the other and used for larger screens. At runtime, I find the users screen size, ...
1
vote
0answers
97 views

How to reduce weird polygon artifacts?

I wrote an application that takes an obj file, parses all the vertices, UV coordinates and normals, loads them into an OpenGL VBO and presents the model on screen. It works, but I'm getting annoying ...
2
votes
1answer
1k views

How do you create an over world styled like Pokémon Black and White, with both 2D and 3D elements?

The over world of Pokémon white uses 3D models for objects like houses, and 2D sprites for characters like the player. What would I have to do to create an over world styled like this? Here is an ...
5
votes
3answers
4k views

How do modern game engines handle many shadow casting lights?

This is a very general question, and not aimed at any particular language or graphics API; I am more interested in the theories & algorithms behind the solutions. I'm reasonably familiar with the ...
1
vote
1answer
231 views

How can I minimize visual clutter in an ASCII rougelike game?

I'm currently designing an old-school rouguelike, similar to games like Nethack or Dwarf Fortress. While I love the ASCII graphical style they employ (which my game will also employ), they also suffer ...
2
votes
0answers
50 views

With what structure do you manage the graphics of a game? [duplicate]

Im currently trying to program a little game (in Java - Libgdx; if thats necessary). I currently use a GameWorld and a ...
6
votes
1answer
589 views

How do I make spring animation for a 2D game?

I want to create a realistic spring object, as a sprite, that compresses and expands when a force is applied and released, respectively. The only thing I know is that it requires some complex ...
2
votes
2answers
855 views

What's the difference between Alpha and PreMulAlpha?

I've seen videos comparing the two but it looks like there's no difference and they don't explain what's the difference
1
vote
1answer
120 views

When to use LOD and when not to?

I have a simple question: are there any cases where game LOD models don't need to be created? Obviously you need LODs for landscapes, large props, characters, vehicles etc. But what about small indoor ...
2
votes
1answer
355 views

How to achieve “concept art” graphics?

I'm currently working on a 3D Game and I want a unique graphic style. Concept Arts have a cool "painted" look. You can clearly see that this picture is painted on a graphic tablet. (https://i.stack....
1
vote
0answers
80 views

How to mitigate this strange pattern shown in Phong lighting?

I am creating an entire lighting scene in OpenGL. The entire scene consist of only one point light. I noticed some strange z-fighting like pattern. This flickers when I move the camera. Can anyone ...
2
votes
1answer
257 views

How can I move and rotate an object in an “infinity” or “figure 8” trajectory?

I know that the easiest way to move an object with the figure 8 trajectory is: x = cos(t); y = sin(2*t) / 2; but I just don't know how to rotate it, lets says ...
1
vote
1answer
106 views

What am I supposed to pass shaders to?

I don't think I fully understand how rendering shaders work. I get that you give a shader to an object/sprite when drawing it, and it applies the shader to it. But I don't think I'm doing it right. ...
2
votes
1answer
2k views

Unity. Draw mesh without a mesh class

Is there a way to draw an array of vertices/traingles directly from code, above 65k verts? I looked at Graphics class but it can only render a Mesh object.
1
vote
0answers
260 views

What is the purpose of these purple images in these sprite files of Super Mario Maker? [closed]

I was looking at the Wii U's Super Mario Maker Sprites and noted that all of them have purple images that each correspond to one of the animation frames (see below). What could they have been used for?...
1
vote
1answer
250 views

Textures drawn with visible missing lines of pixels

I am making a game in monogame and have encountered the following problem: The black arrows mark the places where the rendering is "off". As you can see the gray lines aren't "flush" or "smooth". ...

1 2 3
4
5
20