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

Level Creation - How to achieve seamless race tracks?

I'm aiming to make a racing game in Unity. Please take a look at the image provided below, and suggest me the best technique to achieve something like it. (Keeping the performance as optimized as ...
0
votes
0answers
7 views

Adobe Animate Visible Masks & Layers for Character Mouth/Teeth Movement

I'm working on animating a characters mouth opening and closing. The layers for this character are currently ordered:Body < Mouth < Teeth. When I animate the ...
0
votes
1answer
42 views

Choosing Number of Points and PPI Resolution To Future-Proof Game Images

I'm working on an iOS SpriteKit game and I'm currently designing some images to be used as character animations in Photoshop. There are many different iPhones with various screen sizes and resolutions,...
0
votes
0answers
38 views

Optimal data structure for managing AABBs to minimize collision check queries

Say I have thousands of 2D Axis-Aligned Bounding Boxes (AABBs), and a single point. I'm checking whether a point is inside a certain AABB before performing some expensive logic. ...
-1
votes
1answer
84 views

Drawback of painters algorithm:

We know that to scan convert any polygon first we need to pass any 4 tests of Painter's algorithm. Suppose I have two polygon S1 and S2, which order is S1->S2.we see that all 4 tests are failed. ...
0
votes
1answer
94 views

How to visualize angle of projection in Oblique Parallel Projection?

We know that in Oblique Parallel Projection Point (x,y,z) is projected to position (x_p,y_p) on the view plane.Projector (oblique) from (x,y,z) to (x_p,y_p) makes an angle alpha. with the line (L) on ...
0
votes
1answer
46 views

In what circumstance might I need to output pixels in non-32-bit format?

Among practically existing devices people play games with - PC, mobile, PlayStation, XBox, Nintendo etc. - is there any possibility that a pixel on the screen is not 32-bit, and do I have to consider ...
1
vote
1answer
85 views

Should I be worried about textures higher than 4K?

Upon developing a big project, it just happened that when stitching all the thousands of animations spriteframes of a single character together, the sprite sheet turned around to 2K by 13K texture!! (╯...
0
votes
1answer
59 views

I can't render faces properly in my DirectX11 project

For some reason, only back-faces are rendering, even if I set the rasterizer and stencil buffer and state to any values. Setting D3D11_CULL_NONE, ...
1
vote
1answer
61 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
2answers
610 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 ...
0
votes
0answers
32 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 ...
1
vote
0answers
80 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 ...
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 ...
1
vote
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
0answers
103 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
1answer
18 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
35 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 ...
0
votes
2answers
136 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
78 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 ...
2
votes
2answers
79 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 ...
-4
votes
0answers
36 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 ...
-4
votes
1answer
59 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 ...
2
votes
1answer
53 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
1answer
103 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 ...
0
votes
0answers
121 views

How to a select a single 3D object out of multiple objects using mouse click and move it using mouse drag in OpenGL

I am rendering multiple 3d objects on the screen but i want to select one particular object by clicking on it and then move it using mouse drag but i cant figure it how to do it because on clicking ...
1
vote
1answer
65 views

Geometric clipping of triangles intersecting near plane

I was reading about how rasterization works but there is one topic I can't quite understand. After perspective projection, our point is in clip space as I understand it. Now we test all points in a ...
0
votes
1answer
80 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 ...
1
vote
0answers
31 views

Unreasonable CPU consumption for server build with nographics

I have built my game in server mode on Mac OS and attached profiler to it. In profiler I can see unreasonable high cpu load. Other scripts take a lot of cpu time. How can this be optimized? Vsync ...
0
votes
2answers
132 views

Generate vertices of a sphere by using spherical coordinates

I'm trying to generate points for a sphere by subdividing the space of spherical coordinate in res sector and res slices. At first I did my own implementation, but it wasn't working. After a while I ...
0
votes
0answers
106 views

How to make a sprite face the player sprite (pygame 2d)

Basically I have a sprite and I want its front/face to face the player sprite. All the sprites are rectangles/squares and use .get_rect(). I have a base class for ...
0
votes
1answer
64 views

Flat and crispy shading

Im trying to create a mobile game that has flat, bright colors and I want every place to be lightened the same. Like this game: and this is my game's current state: I don't know what the problem is. ...
0
votes
1answer
508 views

In Unity, why does DrawProceduralNow work in OnRenderObject but DrawProcedural does not?

In Unity, if I call DrawProcedural (or one of its variants) from Update() it works fine, but if I make the exact same call from <...
0
votes
1answer
97 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
0answers
59 views

Rendering overlapping normal map textures to a 2d scene efficiently

I am using modern OpenGL to render a 2D non grid/tiled world map. I've generated some simple normal map textures to render over the base world map to provide terrain elevation/detail shading. ...
0
votes
0answers
96 views

How does DrawProceduralIndirect use MeshTopology.Triangles?

I'm working on a voxel terrain generation system. Currently I'm running into issues using DrawProceduralIndirect. In the call, you are able to choose how the GPU should render the data you are passing....
0
votes
0answers
33 views

How does directX API implement supersampling in GUP layer?Does it allocate a scaled-framebuffer other than user-specified framebuffer?

For example,if I create a backbuffer of size 800 * 600 and turn on 4x-supersampling, is it the case that the graphics driver actually allocates a backbuffer of size 3200 * 2400 under the hood then ...
0
votes
1answer
269 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
0answers
45 views

How do I fix this unintentional chromatic aberration on a lightmap?

Some strange rainbow halos (front and left) appear after computation of a lightmap for direct light. The formula is dot * dot2 / ( dist * dist ) * dl->intensity ...
1
vote
1answer
35 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 ...
0
votes
1answer
137 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
90 views

Opengl in 500 lines point in triangle question

https://github.com/ssloy/tinyrenderer/wiki/Lesson-2-Triangle-rasterization-and-back-face-culling I am on lesson 2 of the "Opengl in 500 lines" tutorial. I ...
0
votes
1answer
125 views

Where is the Mclip matrix & how do I set it?

According to this article, the Mclip matrix will be used, but I didn't find any function in Directx11 to set this matrix. How do I set it?
1
vote
0answers
105 views

Line of sight shader

Strategy games (such as Door Kickers) use a player's unit's line-of-sight as a major game feature. To provide feedback to the player regarding which areas are in view and which are not, different ...
1
vote
2answers
93 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 ...
3
votes
1answer
53 views

Is it possible to correctly catch up a particle system simulation based on long delta time between many frames?

I have a particle system with a physics simulation integrator based on delta time (elapsed time between frames) which is implemented on the GPU in a compute shader. I also have a frustum culling ...
1
vote
1answer
494 views

How to manually render with a given camera in Unreal Engine 4?

I would like to render with any camera at any given time for a Portal clone project. There's a USceneCaptureComponent2D but it renders the whole scene to a texture. ...
-1
votes
1answer
141 views

What is the best way to approach a multi pass rendering system?

I am trying to code a new feature in my engine but I can't find a way to implement my idea, which is the next one. I am trying to get multi pass rendering with more than two passes. I know how to do a ...
1
vote
0answers
52 views

GLSL link fails with C9999 (too many buffer declarations?)

I'm receiving a C9999 (*** exception during compilation ***) linker error for an OpenGl 4.6 compute shader. It seems to be related to the number of SSBOs I have declared (14 separate declarations), ...

1
2 3 4 5
21