Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
124 views

How to create a decent strategy game without becoming an artist?

I love to make games. But I am not an artist. I never learned to make 2d or 3d models. I spent most of my time on programming. I know there are Game engines for non-programmers. But I am looking a way ...
-1
votes
0answers
30 views

Math for moving camera

I implemented camera look around with mouse, but it doesnt look 3d. This imgur shows what i mean better than i can describe it. https://imgur.com/a/gFb7kwX Right now i am using the DX and DY from ...
3
votes
1answer
151 views

Object made of cubes looks different based on the distance in Unity3D?

I made a "Wall" from basic Unity3D cubes. They are placed tightly so the wall looks like one big rectangular prism. If I look at it from close distance, it looks as it should be: one big rectangular ...
0
votes
1answer
43 views

3D affine transformation (rotation) mimicking Mode 7, Java 2D

I watched videos of games using mode 7 like Outrun or Space Harrier and I want to make a game which imitates this classic graphic. I was inspired by Notch's Prelude Of The Chambered too. After ...
0
votes
1answer
50 views

C# Unity - Multiplying Colors in loop results in wrong results

Good day, I'm trying to generate a tilemap, my current setup is a base tileset, and a few overlays for the different biomes / terrain heights. In my code, I generate each biome's tileset, based off of ...
1
vote
0answers
43 views

Is it possible to crop a render texture in unity?

Basically what I want to do is, take the source render texture from OnRenderImage and crop it (continuously). I've already achieved this by using ...
0
votes
0answers
85 views

Flickering pixels in texture when moving VR camera

I want to be able to create scenes from a photograph, for this I use Shader forge, Unity and tiling is applied to the photo. I am working on an Android application with Google VR in Unity and I have ...
0
votes
0answers
17 views

Sprite more bright than texture

I have imported new texture to UE, and have created new sprite. In the sprite I set as material next one: Also I set as Texture-parameter my texture. But my sprite render more bright than its texture....
0
votes
1answer
43 views

How much time would it take to make a sprite-based isometric game with customizable characters? [closed]

I've never been good with 3-d models, but I can do sprites. I was hoping I could perhaps make a 2-d isometric game that acts like 3-d. Something like Don't Starve is what I have in mind. Here's the ...
0
votes
0answers
28 views

Apply texture to curved line

I'm interested in how these types of images are drawn, in a way that allows them to be so wiggly. What might a draw_neck() or draw_watergun() function look like? Does the game keep track of points ...
0
votes
0answers
22 views

Cascading Shadow Maps - Spotlight Projection

In all the cascading shadow map explanations I have read, the final projection into the shadow-map is done using an orthographic projection. This makes sense for a directional light because a ...
-6
votes
1answer
87 views

I don't know what's wrong with the code

I am making a 2D game in java but it doesn't draw anything on the srceen and I don't know why. I have files(Main.java -> JFrame, Game.java -> GameLoop). Code: Main.java: ...
0
votes
0answers
10 views

Find out coordinate points of rectangle in matlab

I have taken edge of the rice leaf ..this is a shape of rectangle..it is bending.I have to find out 4 coordinate points of rectangle.Since this rectangle is not parallel to x or y axis and I dont know ...
0
votes
0answers
19 views

Billboarding Labels Using Quaternions

I am encountering some issues with billboarding. Although my situation is a bit complicated. So, I am modeling the solar system, and I am also placing labels on everything. For an example, I'll use ...
0
votes
0answers
23 views

Adding large 3d models into Unity

I have a 3d model of a restraunt with several characters in it probably over a hundred objects. Whenever I try to import it into Unity Unity just loads forever until I force close it. How do you ...
-1
votes
1answer
94 views

Interesting graphic artifact

I was exploring old Minecraft source code when I encountered this: I just wanted to know what causes such distortion and how to fix it with OpenGL?
2
votes
0answers
31 views

How do you find the collision between 3D boxes and 3D QUAD face meshes?

I have an axis aligned bounding boxes for 3D object collision, but I have a complex 3d mesh that's divided into 3d faces so I want to check for bounding boxes and collision with the faces of that ...
2
votes
1answer
152 views

Strange realtime shadows in Unity3D

I'm trying to do realtime lighting, and my shadows are acting very strange. When I project a spotlight out from the camera (like a flashlight in a first person game) my shadows show up as 3D skews of ...
5
votes
1answer
100 views

Ordered dithering between “discrete” colors?

I want to achieve color dithering between discrete colors like this: As you can see, there is no gradient, or technically there is, but very discrete as it's only a 3 color image (right bar). So I ...
0
votes
1answer
85 views

JFrame pack() method

I'm quite new to java. I was developing a game using java and I realized that the position of pack() method can influence rendering. For instance: Frame Class ...
0
votes
0answers
104 views

Add emission to shader

I wrote a shader for a targeting system. It creates a parabola of chevron arrows which slowly scroll in the direction of the trajectory. The chevrons also fade to zero alpha at the beginning and end. ...
0
votes
0answers
38 views

Slick2D - Shaders and Antialiasing

I'm looking for a way to smooth anti-alias my game, especially while using scale and translate operations. While translating my images are tearing, regardless of image filter. I tried to : change ...
0
votes
1answer
47 views

Graphics2D.drawImage not working

I'm quite new to java. I'm trying to come up with my own game after watching a few video tutorials. However, I encountered a problem where I cannot draw an external image file that I loaded using the ...
1
vote
1answer
92 views

Does it make sense to do more calculations in the fragment shader if there are more vertices than pixels?

I'm very new to graphics programming, and as I understand it vertex shaders are called per vertex and fragment shaders are per pixel (ignoring anti-aliasing). When it comes to optimization all sources ...
0
votes
0answers
16 views

Java Question about setLayout(null);

I'm new to the programming world and would like to learn from experienced teachers. How would I be able to add a picture to a JFrame and at the same time be able to add a panel So I could add buttons ...
0
votes
1answer
26 views

How do you handle large triangles with frustum?

I am rendering the Sponza scene ato test my frustum implementation. My current approach is simply, test if the vertices of the triangle are within the frustum (angle between the camera looking ...
1
vote
0answers
98 views

How does one create ENB for games like: San Andreas

I know this particular community could be wrong for such a question that includes programmers, modders and such. I believe I should be asking such question on stackoverflow.com or something similar, ...
3
votes
1answer
76 views

Do I have to take aspect ratio into account, when computing a direction in View Space?

I read an article about implementing a Single-Pass Volume Renderer. After thinking about it, I have a question, which concerns the provided GLSL code snippet of the Fragment Shader. To calculate the ...
0
votes
0answers
39 views

Kivy - Why are .kv files preferred to drawing in python?

I'm trying to get a game I'm working on in python running on Android, so I'm learning about Kivy, which is very simple to build. It's currently all in pygame, drawing and blitting to surfaces and ...
0
votes
1answer
39 views

Display dynamic texture image on inside of sphere

I'm displaying a ring wherever the camera 'looks'. When the camera faces the ground (green) the ring image always looks correct, see image: However, my scene is within a sphere (purple)... and when ...
0
votes
0answers
29 views

Artificial, deliberate, per-object aliasing

I'm making a 3D game with a retro feel1 and would like to shade a single object in such a way that the edges and colours look aliased: that is to say, it should look like the spatial sample rate of ...
0
votes
2answers
83 views

Parts of sprite disappear when zoomed out

I'm playing around with making a roguelike and I want to use ascii characters as tiles in the game. I'm using a 256x256 sprite map where each character ends up being a 32x32 box. This works fine, ...
0
votes
1answer
42 views

Calculating the shadow cast by triangle onto the YZ plane

So, one of the exercises for my computer graphics class is as follows: Calculate the shadow cast by triangle T onto the YZ plane P. given: Triangle T coordinates: A=(30,10,16) B=(32,11,18) C=(31,...
0
votes
0answers
27 views

Render run update question in Graphics2D

Hello guys we are studying on a Snake / Slither io project. In fact we are nearly finish the project but when we run it we couldn't get any Panel drawing and still trying to solve the problem but we ...
1
vote
1answer
359 views

Surface Depth Intersection Shader

I recently asked a question about the creating an accurate Depth Intersection Shader. When creating this in a fragment / vertex shader it could be achieved by the following code ...
0
votes
1answer
80 views

UNITY - Huge amount of GRAPHICS in RTS Tiled game

after year of development and week of unsuccessful optimization I turn for a help from you, guys. So, my game is turn-based strategy with hexagon map. One hexagon consists of one texture for hexagon ...
2
votes
1answer
840 views

Depth Intersection Shader

I am trying to create a shader in Unity that shows where intersections occur between objects. Most of the shader I have so far is based off of this youtube tutorial. However, I have made some slight ...
1
vote
0answers
37 views

Wave interference like render effect

(Someone on gaming told me to better post this here.) So in a lot of games lately I've seen this weird "light interference effect" where objects on the edges of my screen become red and blue blurry. ...
0
votes
0answers
24 views

Decoding old game formats - Calculating lighting range based on attenuation

Bit of a tricky question so bear with me. I'm decoding an old game format. It involves a lot of guesswork and one of the fields in a light fragment was marked as 'attenuation' by another coder. The ...
2
votes
0answers
198 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 ...
4
votes
2answers
159 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 ...
0
votes
0answers
49 views

Can resources be stored in a *.so file? (Android)

I was looking in a APK(zip) file. I wanted to have a look at what resources were in it for a game I was playing. The game is mainly still images with added animations on top of these images. I have ...
-3
votes
2answers
214 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
202 views
1
vote
1answer
45 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
75 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
0answers
70 views

Architecture and the gameloop

For the game I am making I think it would be best to implement an N-Tier architecture. The reason being is that I learned at school having a seperation of your UI, Logic and Classes is best in big ...
0
votes
1answer
96 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
100 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?