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

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.

0
votes
0answers
33 views

Running OpenGL app on Windows XP x86 produces incorrect texture colors

I'm working with the Cen64 emulator and I compiled from source a x86 version that operates fine on Windows 10 x64. As soon as I run it on a Windows XP x86 machine the colors are then all incorrect. ...
0
votes
0answers
23 views

Texturing edges of a procedurally generated polygon

I'm generating a polygon from code to display unit ranges in my game. Here's how it looks so far: I would love to be able to now use my texture and only apply it to the edges of this polygon (imagine ...
0
votes
0answers
25 views

Handling battle/screen graphics

This is more of a conceptual question, but I'm a bit stuck and wondering if I should continue how I'm going or just rebuild the graphics system my game is using. So here's the high level: Right now, ...
0
votes
1answer
17 views

XNA 4.0 How to change GraphicsDevice Default DepthStencilState Value

I want to change one of the deafult values of my GraphicsDevice to that: GraphicsDevice.DepthStencilState.DepthBufferEnable = true; But I know only to change it ...
0
votes
1answer
25 views

Unity Graphics.DrawMesh lags behind rotation?

I have a setup in unity using Graphics.DrawMesh() to draw a mesh on my players camera location in the update loop, ...
1
vote
2answers
81 views

How to develop custom Unity graphics?

Processing is a Java library for working with computer graphics, providing methods by which to draw primitive objects, custom meshes, etc., as well as mathematical methods (such as Simple Harmonic ...
-1
votes
0answers
20 views

How close can you copy a game and be legally in the clear? [duplicate]

Before I start, I know it depends on how other companies choose to pursue legal action and one can be sued for basically anything. But please answer in terms of likeliness of getting sued and also ...
0
votes
0answers
21 views

OpenGL outline of clip plane

I've implemented a clipping and capping view similar to the example called "simplecap.zip" in this page: http://users.polytech.unice.fr/~buffa/cours/synthese_image/DOCS/trant.sgi.com/opengl/examples/...
-1
votes
0answers
24 views

Image-based hex tiles

I am looking for Java code for some very simple operations: read hex tile image from file blit hex tile image to screen write hex tile image to file optionally I may wish to take a hex tile image ...
0
votes
1answer
50 views

Polygons depth sorting in Z-buffer

Why is it that the Z-buffer algorithm does not require polygons to be depth sorted to function correctly?
1
vote
0answers
25 views

Pre-rendered visual effects?

So if I want to create a really fancy and beautiful 2d effect of a campfire I open After Effects, create the effect and then export 2d animation as a .xml file, png sequence etc. And it works anywhere ...
-1
votes
0answers
31 views

How can I get rid of in-game Aliasing?

I am creating a 2D game in Unity. The sprites in my game appear to have their pixels only allowed to be in set positions of the screen, making the textures sort of aliased to a low degree that causes ...
0
votes
1answer
29 views

Use 2 values of a mask

Let's say one has a black/gray/white mask and wants to draw picture A over the white/gray values and picture B over the black/gray values (the blacker the more B picture). The best I come up with ...
0
votes
1answer
173 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 ...
3
votes
1answer
157 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
2answers
59 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
55 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
69 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
1answer
20 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
50 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
32 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
25 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
89 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
11 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
24 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
2answers
32 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
102 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
41 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
272 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
119 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
172 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
165 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
43 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
104 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
105 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
20 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
40 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
101 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
87 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
50 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
40 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
118 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
593 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
96 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
1k 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
38 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 ...