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
3
votes
0answers
317 views

Changing sprite tint over time in Unity. Sprites affected by "light"

Recently I was playing "Altos Adventure" on mobile. I was curious how I could implement an effect similar to their game background. The sprites tint over time to match the time of a day. It's blue ...
5
votes
2answers
781 views

Simple 2D games - what is faster to render - images or drawing?

I am developing simple 2D environment in Pygame (Python 3.6), however I think this question is general. The environment is moving (player is rendered on the same position and everything else is ...
-2
votes
2answers
680 views

Random points spread like old TV static in a polygon OpenGL

OpenGL version 3.1 Have to draw around 10000 randomly placed and colored points inside a rectangle to appear like old TV static but colored as shown in the image below. Right now the code draws a ...
0
votes
1answer
1k views

Unity Redraw canvas graphic on Update()

...
2
votes
1answer
466 views

Project 2D texture onto a cubemap

I'm looking to take a 2D texture (previously rendered from the user's perspective), and overlay it overtop of a cubemap. Since a cubemap has 6 textures, I need to run a shader over top of all 6, and ...
2
votes
1answer
85 views

How can I reduce amount of graphics to draw for a smooth 2D character evolution transition?

I'm working on a game where the player has a character that can be fatter or skinnier, and maybe other transitions. Not only the height and width could change, but the complete appearance of the body. ...
22
votes
2answers
4k views

Does a detailed texture take longer to render?

Let's say I want to render a square; its texture is "square.png." Is it easier for the computer to render it if the texture is just a plain color? And what about if it is a very noisy texture with ...
0
votes
1answer
128 views

Omnidirectional Faded Soft Shadows

I'm doing research to implement a shadow algorithm for omnidirectional soft shadows in a real-time 3D renderer. I've read about PCF but to me it doesn't look very realistic since it doesn't "fade" ...
0
votes
1answer
1k views

Resize big sprites in good way

How to resize 2D sprites in the size of like 400px to 64px or 32px in a way that doesn't make it look pixelated and weird?
0
votes
1answer
326 views

Issue with OpenGL texture rendering

I am developing a game in Java using LWJGL2 and Slick, and I am encountering an issue when rendering a graphic. Instead of filling the quad with the texture, it appears to be partly repeating it. The ...
2
votes
3answers
1k views

OpenGL: How do I map a square texture onto a rectangular surface?

I'm not asking about how to map the texture itself. I'm just wondering how I could go about evenly mapping a texture to an object so that it repeats itself instead of stretching to the surface. For ...
0
votes
1answer
165 views

How to make a shattering effect similar to Housemarque's Nex Machina?

After playing Nex Machina for a while, the shattering effect which turns monsters and scenes into cubes really fascinated me and I can't hold my curiosity to explore how they made it. I have tried to ...
2
votes
2answers
2k views

Getting scene normals in Unity

When I get the depthnormals with the shaderreplace script, it just replaces all the shaders in the scene and uses the meshes geometry to calculate the normals, ignoring the normalmap textures applied ...
3
votes
2answers
465 views

Roads rendering over 3D terrain

I've got a 3D terrain that consists of many heightmap-based tiles. I need to render multiple roads over the tile. By now I simply subdivide road into tile pieces then generate a decal per each tile. ...
1
vote
1answer
636 views

Trail Effect for fast moving object

I am currently working on some FX trail effect. Here's the situation, you have a fast moving object that puts trail on another object. Here's how it works for the moment. I have some kind of stamp ...
0
votes
1answer
78 views

Pretty Sure I have Support for OpenGL 4, but it's not running. What can I do?

Many Game Engines require OpenGL to run. I have one of those. I've confirmed that the program and any benchmarks for OpenGL above OpenGL 2 fail to run. Is there, like, a way to confirm I have ...
2
votes
0answers
35 views

What does a game programmer and graphics programmer do? [duplicate]

I'm quite the novice in terms of my knowledge of game development, and I'd incredibly appreciate any further insight on this. To be a bit more specific, I encountered this video, (https://www.youtube....
-2
votes
1answer
120 views

Can I tell what graphic engine an Android game uses?

How can I know which graphic engine has an app android game like "Hidden City" for example? Are there any tools or web pages to analyse some game applications for android to know how they did the ...
-1
votes
2answers
162 views

Calculating NDC Co-ordinates

How does performing the Perspective divide cause the vertex co-ordinates to be NDC (-1 to 1)?
1
vote
0answers
95 views

images loaded onto texture appear completely white

I am applying a texture to a primitive plane using ARKit and Unity like so, ...
1
vote
1answer
73 views

Best way of implementing custom UI objects jawa.awt.Graphics

What is the best way to implement custom sliders (for volume), buttons normal, with images (icons) and with text, text boxes and other stuff with java.awt.Graphics? Thanks, Kerdo
2
votes
1answer
655 views

One Giant Shader VS Many Small Shaders

I am building forward rendering engine combined with atlas shadow map technique. My goal is to build an engine that is capable of rendering similar scenes from games such as.. Doom Overwatch So I ...
2
votes
1answer
497 views

Screen objects sometimes not rendering

I am a mildly experienced programmer who has created several game engine templates and small 2D games in Java. I am currently expanding to 3D game engines and I am re-writing a previous engine to be ...
1
vote
1answer
3k views

Can't Unity draw fine and smooth line?

I'm working on drawing lines in Unity, but find there is no way to draw clear, fine and smooth line in Unity, neither ...
0
votes
1answer
242 views

Unity graphics lagging and leaving a trail

The following are pictures of what I am describing. This happens both when I have normal lighting, graphics on low, render distance on short. I have a graphics card that can run games like Starcraft ...
0
votes
1answer
70 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
3k 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
160 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
3k 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
557 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
367 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
1k 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
4k 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
280 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
364 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
3k 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
370 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
975 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
822 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
130 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
168 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
163 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 ...
5
votes
1answer
748 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
311 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
218 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....

1 2 3
4
5
21