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
0answers
7 views

How to recovery rotation to zero

I tried to rotate the objects in world space and restore them to 0, but if the order of restoration is not the same as the order I set before, I can't restore them. How can I solve this problem please?...
0
votes
2answers
826 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
0answers
21 views

PCSS strange edge

I tried to implement PCSS using hlsl, but he now has a strange treatment of edges ...
2
votes
1answer
96 views

OpenGL height map accuracy for planetary rendering

I am trying to implement planetary rendering and I am trying to use OpenGL tessellation to model the terrain. Here is an overview picture using cube faces projected onto a sphere: If I use the ...
-1
votes
0answers
29 views

SDL1 to SDL2, with no guide sometimes [closed]

I have an old project with SDL1.2 and I want to migrate to SDL2. I read the migration guide and I got so confused. I will post the code here with marker which lines should be updated as they show in ...
0
votes
1answer
146 views

Unity: Alpha and color issues with opaque projector/decal shader

I have been attempting to make a simple "overwrite" version of Unity's projector shader. I can either respect the color, or respect the transparency, but not both. I have simplified the ...
0
votes
2answers
210 views

How can I draw orbit paths for a solar system?

I’m trying to make the orbital paths visible for my solar system simulation game. I have most around with trail renderers and solid line sprite but not achieving the desired look I want. I’m hoping to ...
0
votes
1answer
292 views

glfw resizing causing image scaling

I have a quad rendered that extends from the top left of the window to with width of the window that is also 64 pixels high. When I resize the window, from its initial size, the quad and text scales ...
0
votes
1answer
56 views

Do external graphics cards for laptops help decrease compilation time? [closed]

Can modern compilers use the power of a graphics card to shorten compilation time? Or is this solely based on the CPU and RAM? For example, can GCC utilize an external graphics card connected via a ...
0
votes
1answer
126 views

Opengl in 500 lines barycentric calculation question

https://github.com/ssloy/tinyrenderer/wiki/Lesson-2-Triangle-rasterization-and-back-face-culling I cannot figure out how we go from uAB-vector + vAC-vector + PA-vector = 0 to the linear system with ...
1
vote
1answer
34 views

Find point along x axis where yz plane flips to back facing after perspective projection. Have a solution but don't know why it works

I am trying to find the point along the x axis where a plane with normal pointing along the x axis would flip to back facing after perspective projection. Essentially the red line in this image. My ...
1
vote
1answer
1k views

Depth texture white in shader

I am trying to implement shadow mapping into my project and am stuck at this problem: If I'm reading the shadow map values with glReadPixels and linearize those ...
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
41 views

How do I prevent buffered image size fluctuation when rotating?

As you can see in the GIF, as the car rotates, as the Car rotates, the size appears to change to fit the determined height and width, what would be the best way to change these in conjunction with the ...
0
votes
2answers
37 views

Low FPS in Unreal engine, but GPU usage is low as well

I am running an Unreal Engine 4 project which has many high quality assets. My computer is fairly strong: CPU: AMD Ryzen 5 3600 6-Core GPU: GeForce RTX 3060 SSD: Lexar 500GB NM610 M.2 NVMe SSD RAM: 2 ...
1
vote
1answer
427 views

How can I render a font in C with OpenGL?

What I tried: I was testing some things in order to render text with stb_truetype.h and OpenGL in C. I took as a reference the example that appears here. Basically, this example, loads a .ttf file and ...
0
votes
0answers
25 views

Testing graphical & network performance of a game

I'm trying to compile a list things I should test to measure whether the development of a multiplayer game is going well. I've put a few links referring to Unreal to illustrate because that's what ...
0
votes
0answers
79 views

How to implement texture slicing

I'm making a simple game in C# and i'm trying to slice my UI images into 9 smaller rectangles, so the image doesn't get stretched when drawing to different resolutions, but i'm having lots of problems ...
1
vote
2answers
87 views

Term for compositing textures according to colors in an index texture mask?

I have utilized a tool for a number of years that uses a "masking" technique to 'texture' a 2D graphic, by which it checks a series of solid colors to specify where to 'draw' textures in a ...
0
votes
1answer
71 views

What is the proper way to create a camera matrix?

I am having issues when trying to create a camera transform. It seems to have odd distortions and it does not seem to rotate properly, though it will translate alright. While I have seen issues like ...
3
votes
1answer
903 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
0answers
7 views

Vertices of each LOD Version is always loaded on VRAM?

Vertices of each LOD Version is always loaded on VRAM? I know Many game engines have feature what Mesh Vertices and Textures LOD. I'm just wondering if All vertices and textures of all(each) LOD ...
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 ...
0
votes
1answer
2k views

How can I customize button graphics?

Inside my buttons I added some variables (as you can see in the code below). ...
28
votes
4answers
61k views

How can I include vertex color information in .OBJ files?

The .obj files I export are missing data for vertex colors. Is there a way to include color information in the .obj file? If not, what are the alternatives?
0
votes
1answer
223 views

Project 3D points to a plane, then project their bounding box back to 3D

I have a table in 3D space, represented by a plane. I want to project arbitary points representing an object (cup, toy, etc) onto that table, run 2D principal components analysis to get an oriented ...
0
votes
2answers
165 views

How does lookAt matrix math work?

Can someone provide me an explanation of how the lookAt matrix works? ...
4
votes
1answer
7k views

The view matrix finally explained

I must say that I am really confused by how a view matrix is constructed and works. First, there are 3 terms: view matrix, lookat matrix, and camera transformation matrix. Are those 3 the same, or ...
2
votes
0answers
46 views

Synchronizing transformation of a Rect class between CPU and GPU

I implemented a Rect class in my custom game engine that utilizes openGL. I decided to approach the whole Rect class design like ...
0
votes
1answer
81 views

Flicking issue on Linux build only

I'm about to release my second game in the next couple of days. A tester now reported that he has a flicker issue running the game on Linux. It´s related to objects like the water, the hex tiles and ...
0
votes
2answers
126 views

Why do computer graphics applications use piecewise polynomial curves of degree 3 rather than curves of higher-order, say degree 100?

just wondering why is that? can't get my head around it. wouldn't the use of degree 100 be better? I'm really new to this stuff.
1
vote
0answers
34 views

Bizarre Viewport bug in Maya 2018

I can't Google for this sort of thing because it's a very difficult error to describe, so asking it here is my last resort. I have to use Autodesk Maya 2019 for the game I am working on, along with ...
0
votes
0answers
8 views

Drawing rectangle with line's causes join artifact with the graphics api

how can I join lines to draw rectangles, I get this artifact like this, here's my code: ...
0
votes
1answer
27 views

Single Shadowmap for multiple point lights

I'm trying to render a scene using multiple point light casting shadows. Currently, If I have more than 1 point light, shadows are wrong. I'm drawing to FBO with a depth cubemap attached to it and in ...
0
votes
1answer
19 views

Does a texture mask need to be the same size as the base texture?

new to game development here. I am working with an experienced 3D modeler and following some tutorials on texture mapping. Apologies if this is not the appropriate question for this forum, but this is ...
3
votes
0answers
55 views

Which algorithms to use for drawing procedural paint splatters?

I want to create procedural paint splatters on textures. I want somewhat similar effect like in Splatoon 2. I think I need to modify albedo image - drawing splatters there. Right now I came up with ...
0
votes
1answer
242 views

How do I implement the parallax effect in 3D graphics?

With a perspective projection matrix and camera system already in place, I have a scene with a small jet fighter flying high over a wide and deep canyon with many cliffs and rocky surfaces; these are ...
2
votes
2answers
73 views

Need help with fixing Optimized Raycasting / Line of Sight algorithm

I'm trying to implement collision detection with raycasting for my 2D javascript game. The game uses equally-sized tiles as its level structure so to optimize collision detecton I'm trying to use a ...
-5
votes
0answers
33 views

Artificial limitation in games ver. 2? [closed]

So you've made research? Can you show us that research? You don't seem to be that well-versed in game development or software development in general, so perhaps you misunderstood something. Just open ...
1
vote
2answers
373 views

How to make image bigger than the screen to be slideable in the screen in monogame for windows phone 8?

(Idk if my title is correct, because when I google it, there is no related result I guess) I am not sure how to explain it correctly, but I am making a plain 2D, tile based, tactic game in windows ...
-5
votes
1answer
57 views

Artificial limitation in games? [duplicate]

I've made a research and found out that without dedicated graphics games use max 50% of each processor's core. And it seems to be an artificial limitation. For a powerful processor 50% is a very big ...
3
votes
1answer
46 views

How do I remove the shinyness from the terrain when using an orthographic camera?

I am having an issue with terrain having a sheen around edges when I set the game camera to orthographic. Changing it to perspective, the shinyness goes away: I have tested with textures from the ...
1
vote
2answers
2k views

What is the difference between OpenGL, SDL, DirectX, GLFW, GLUE?

I'm aware that OpenGL and DirectX are somehow programmed into my graphics card drivers initially, and I can use GLFW, SDL etc. to get access to those and manipulate them, by creating kind of different ...
7
votes
2answers
1k views

What kind of projection is demonstrated in this screenshot?

I want to know what projection is used in the following game: The game is Goodgame Empire.
9
votes
3answers
1k views

What is the state of the art at shipping game graphics such as lots of small BMP files? [closed]

We have lots of small BMP files which I think would be easier to copy if we had them combined in a big TAR/ZIP/whatever. What is the state of the art at shipping game graphics? We are using C# and ...
3
votes
2answers
19k views

How can I play an RTSP video stream in Unity3D?

I want to play an RTSP video stream on a Texture2D. The stream is coming from an IP camera and is encoded with H.264, MJPEG or MPEG4. I know about VLC's libraries,...
3
votes
2answers
13k views

How to code a Game Grid in Java?

Suppose I wanted to code a game grid in java. Not an abstract text one but an actual grid with graphics and 'cells'. Would I have to draw line by line or is there a more efficient way? Also how would ...
36
votes
1answer
9k views

Rendering SVG art directly in XNA

Suppose I have a bunch of 2D art in some vectorized format such as SVG. Is there an easy-ish way to render that directly without having to implement a full SVG renderer myself? Of course I could ...
1
vote
1answer
89 views

OpenGL approach to depth-testing-like combination of a large buffer of fragments

I have a depth buffer and color buffer created by another effect. The buffer is more than double my screen size. It is not rendered from geometry, but as a whole it resembles a rendered scene with an ...
5
votes
3answers
2k views

Are polygon normals really shadeable?

Garry's Mod has a copy-protection trap that shows this error: Unable to shade polygon normals It made me wonder if such a problem could ever actually exist. Can polygon normals be shaded? Is a ...

1
2 3 4 5
21