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
36 views

How to increase the thickness (Size) of a plane in Unity

I am making a small game where you have to roll around and not fall of a platform. I am using a plane to simulate the ground, but it is really thin. Is there a way to make it thicker by increasing a ...
0
votes
1answer
18 views

Mapping a Texture to a 2d Quadrilateral

I want to map a 2d picture onto an arbitrary 2d quadrilateral, for the purpose of particle system. To do that, I split the picture into two triangles, and then linearly interpolated u,v along the ...
-1
votes
0answers
41 views

I may be loading to many graphics assets at once - What modern ways are there to profile my GPU?

I have a 2D game I am making and I load all the assets at launch. At the moment I have 136 textures to load and some can get pretty large (over 320x160) some even to 2000x2000. I added some new ...
-1
votes
0answers
34 views

I need a good graphics library for C [closed]

I am trying to develop games in C. I don't want anything super complex like a game engine. I just want something that will create a window, and I can display shapes or images (In the form of textures)....
1
vote
2answers
33 views

How can I create a .ico file with all the various resolution sizes within one container?

I was looking at this GOG.ico in ffmeg, and was surprised to see all the streams for it...indicating it was holding multiple images in the .ico container or .ico has some kind of self-creation ...
-1
votes
1answer
62 views

What are these three different texture types I found in Pokémon sun?

I am currently trying to extract the Pokémon models/textures/animations of the Pokémon Sun game so i can use them as placeholders in Godot. At the moment I have the model, the textures and the ...
0
votes
1answer
24 views

Vectorial clothes / hair cuts that adapt on any character size, how is it done?

Rimworld characters are simple but very nice to watch. They have different sizes, hair cuts, clothes... And everything seems to adapt to everyone. How does that work technically ? For example, any ...
0
votes
1answer
41 views

How does a custom physics engine connect to a tile graphics engine?

I’ve been looking into adding physics to my tile based side scroller game, and it seems like the best option might be to write my own engine to handle things like collisions and gravity due to the ...
5
votes
1answer
228 views

How to avoid minecraft-like map to blend

I am making a minecraft-like world, with some differences. For instance, the camera will be facing always in the same direction. I am having trouble with the visuals. Here is an example: As you can ...
1
vote
1answer
26 views

Should I use a FOV slider or fixed camera fov?

I'm making a single-player third person 3D adventure game, and I was wondering if I should fix the camera's FOV, or if I should create an in-game slider to change it. If I should create a slider, what ...
0
votes
1answer
40 views

what is the difference between the regular camera and the first person camera?

I'm asked to implement first person camera but all I know is the regular camera that moves when I hit specific keys and could anyone tell me the steps to implement it?
0
votes
0answers
15 views

What handles the automatic conversion between color depths

My Google-fu may be weak, but I'm having trouble finding the answer to this and was hoping to get some insight. My shaders deal in 32-bit float RGBA values, but I'm rendering to a R8G8B8A8 target. ...
-1
votes
1answer
65 views

How to implement trail renderer like unity?

I wang to implement a trail renderer in my course about compute graphics using OpenGL. I google this question and search it in https://gamedev.stackexchange.com/ and find nothing except unity trail ...
1
vote
1answer
29 views

Displaying debug line in custom raytracer implementation

Not sure if I should post this here or on the Math forum, but I will try my luck. Some background. I made my custom raytracer. The processing happens purely on the CPU for now, no GPU interaction ...
2
votes
2answers
64 views

Midpoint displacement generating unsatisfactory terrain

Following this lesson for implementing mid-point displacement algorithm for terrain generation. I aim at generating a wavefront(obj) file of the terrain I have an array of dimension (2^n + 1) x (2^n +...
2
votes
1answer
185 views

Loop around a 2D Tile Map

I have made an algorithm for procedurally generating a 2D tile map in Unity. The player can use the mouse to pan the view and look at the map. My intention was that when the player reaches one of ...
0
votes
3answers
107 views

weird behaviour doing simple XMMATRIX multiplications

I have the following function: ...
-4
votes
1answer
71 views

Gameobject becomes a Cube when uploading it to Unity from Blender

I'm making a 3d mobile game, for one of my gamemodes i need "Hexagon" gameobject. According to my research I can create unique gameobjects in blender. So I tried to make a hexagon and export it as an ...
0
votes
0answers
36 views

How could the DOS Quake 1's pixelated look be achived with openGL, for example: Limiting the Colors to 256? [duplicate]

I want to achive the DOS Quake 1's pixelated look and limit the displayed colors to 256 in my engine, but I don't know how to do that. And also, I'm using java. Here is the code of my Fragment shader:...
0
votes
1answer
113 views

Unity using 40% GPU for just a UI interface on ultra but 90 on low?

So I made some software using unity for my FRC team. All this application is, is just a User Interface with labels, input fields, buttons, etc... When I choose the quality to be on Ultra, I will get ...
1
vote
0answers
57 views

Draw coloured transparent polygons on top of texture in modern opengl

I am trying to render an image in the viewPort using symmetry_create = 1 and binding texture to it. ...
0
votes
0answers
64 views

Show the edges between the clipping plane and clipped objects

I want to utilize shaders to not only discard fragments if they are on one side of a predefined plane but also render a contour along the intersection. My fragment shader currently does something ...
0
votes
0answers
78 views

Graphics messed up when I try to reskin the game in Android Studio

I need a little help. I'm new in Android Studio, I have a game where I want to reskin the design. First of all when I install it on my phone with the original files the game run perfectly without ...
1
vote
1answer
132 views

How much slower is it to draw on “half pixels”?

I've noticed that games like Diep.io are using floating decimal points for thin stroke lines on the grid. I have even tried this myself, by adding 0.5 to all of the ...
2
votes
1answer
80 views

Planet Surface Rendering: Precision issues [duplicate]

I have been experimenting with C++ and OpenGL, and I am currently writing a program that renders the surface of a planet; specifically, our moon. It's a modified version of the GPU Gems implementation ...
3
votes
2answers
248 views

Is it possible to apply a texture to a 2D-sprite in unity 2-d?

I want to take an (animated) 2-d sprite and apply a texture to it. Basically, I want every non-transparent pixel to be covered by the texture (color is disregarded). I understand I can probably ...
1
vote
1answer
72 views

How to access Lit shader properties through code?

Currently i'm using HDRP in my project, so i have a question. How can i access Lit shader properties through code ? Or where i can see names of variables in this shader ? For example:
0
votes
0answers
126 views

Find transformation to align two polygons at fixed points?

Problem I have a source image (arbitrary width and height c) shown here as a rectangle [X1,X2,X3,X4]. It contains two points C and D (both known coordinates within ...
0
votes
2answers
83 views

Difference between reflection mapping and raytracing

Both methods involve casting a ray unto the reflecting object. It will be reflected. In reflection mapping - the intersection of this reflected ray with the environment map (texture) will yield the ...
0
votes
1answer
85 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
28 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
42 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
56 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
39 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
100 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 ...
0
votes
0answers
79 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/...
0
votes
1answer
106 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
33 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 ...
0
votes
1answer
33 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
183 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
166 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
98 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
73 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
197 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
2answers
66 views

Sprite brighter than texture

I have imported a new texture into UE, and have created a new sprite. I have setup the material of the sprite as follows: I have also set my texture as texture-parameter. But my sprite renders ...
0
votes
1answer
79 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
54 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
97 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
2answers
53 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
108 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?