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
1
vote
1answer
22 views

PyBullet & OpenGL - Rotations are reversed in OpenGL [closed]

Project description: I am writing a basic game engine to help with my PhD topic on multi-agent learning. I am using PyBullet as the backend physics engine and OpenGL for visual display. I have OpenGL ...
1
vote
0answers
34 views

How to decide sprite size for isometric tile textures?

When I draw these textures on screen, I put them in a sprite and specify a width and height to draw the sprites in like this: ...
0
votes
0answers
27 views

3D visual effects on videos

I'm trying to get some hands-on experience with 3D visual effects on videos. Similar to those AR apps, I want to add a 3D model with effects, say a dragon, to a video. Something like this famous demo: ...
0
votes
1answer
33 views

Ocean visible through the island's lake in Unity3D?

I'm working on a puzzle game featuring islands: there is a plane with a water shader, and objects colliding with that plane. Now I'd like to make lakes on the islands, with different (higher) water ...
2
votes
2answers
389 views

How does cube mapping work?

Based on my reading of cube mapping tutorials so far, my understanding is that you need a direction vector, and from the direction vector we can determine the point of intersection with one of the six ...
1
vote
0answers
14 views

Find parametric UV derivative? [closed]

How do I find the parametric UV and du and dv of a primitive on a sphere ? Assuming that is all the information you have on the sphere. I want to find the partial derivatives for a primitive if I the ...
0
votes
0answers
11 views

Artifacts on crosshair in game view with FXAA

I have a transparent grid texture that I am displaying on a quad using the URP's built in unlit/Transparent Shader. The intersections render as desired in the scene view, but have artifacting in the ...
0
votes
1answer
57 views

How to create pixel graphics in 3D?

I stumbled across this game on itch.io: Backland After trying to find information on how to accomplish the same graphics, I found this tutorial: Youtube Video How can I accomplish this 3-dimensional, ...
0
votes
0answers
11 views

Question about model loading and textures

I recently learned how to load models with assimp, but I'm confused about something. Assimp loads normal and height vertices, but you can also load height and normal textures. So far, I've done shader ...
0
votes
1answer
31 views

Temporary objects in opengl

I want to write a game in which the player shoots projectiles (bullets, etc). Since I don't know how many and when these projectiles will be shot, I wonder how to buffer and render them (and when!). ...
0
votes
0answers
14 views

How could one go about segmented sprite animation in Unity?

I've been exploring ways of designing characters and I'm interested in this technique. It's used in many retro games, mostly for bosses, like in Gunstar Heroes(Seven Force, that one Block guy from ...
1
vote
1answer
54 views

Java - set resolution of game

Hi everybody I am making small game using pure Java 8 and rednering it by Java AWT Graphics2D method . My question is how to make that user can change the quality ...
0
votes
0answers
23 views

Libgdx storing rendered frames quickly to use them later

I have implemented a gif-button for my libgdx game that allows the player to store the last few seconds of gameplay as a gif. It works by storing frames in memory, and encoding them into a gif if the ...
0
votes
0answers
55 views

Game graphics taking too much memory of 0.5 GB

I am developing a simple 2D game. I have multiple sprites. Each sprite has around 80 png/frames of 265* 256. I used LibGdx's Texture packer to package the atlas. Am enabling mimap using following code ...
0
votes
1answer
20 views

In rendering pipeline,is there any order between depth test/alpha test and stencil test?

So the order between them is important?Or the order just depends on hardware?I have no idea which one needs to come first.
0
votes
0answers
26 views

Unity - Depth texture is too pixelated

I am trying to combine two cameras together: Background camera, Foreground camera. I created 3 cameras in my project, 2 for the background and foreground and one for the foreground depth. I then ...
1
vote
1answer
60 views

How do you draw a random irregular polygon in java? (Asteroids)

I am coding an Asteroids game in Java. In the real arcade game, asteroids are made of irregular shapes like this: When I code, I can only set asteroids to 1 or another specific shape, like this: ...
0
votes
1answer
34 views

Unity: Unsharp edges

I have a Unity Project and somehow the edges of objects in my Scene (Scene view and game view) look like this: I think I already had that problem once, but in my recent projects, this didnt happen ...
0
votes
2answers
69 views

How does lookAt matrix math work?

Can someone provide me an explanation of how the lookAt matrix works? ...
0
votes
1answer
41 views

How can I modify a static humanoid asset?

I am new to Unity 3D. I bought an asset from the Unity Asset Store recently. It came in a "walking" stance. I was wondering if it was possible to modify this stance to become fully supine; so can I ...
3
votes
0answers
130 views

Object Transparency Dithering (as shown in Super Mario Odyssey)

A couple games I've been playing recently all have a similar goal of dithering objects when they approach the near clip plane. Super Mario Odyssey applies this dithering-near-clip-plane effect, but ...
0
votes
1answer
64 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 ...
1
vote
0answers
24 views

Why does BorderLayout crop out JSlider on JFrame

I have some working code with a small circle randomly appearing around a large circle in the middle, kinda like planets. I have implemented a JSlider that controls the speed of the small ball moving ...
1
vote
1answer
70 views

How do rendering pipelines improve the performance of updating all the vertices every frame?

Let's say I am implementing a simple game engine, particularly the rendering part. From the high-level view we have some vertices which are copied to the graphics card alongside shader information etc....
1
vote
0answers
156 views

Post processing effects not visible on mobile apk build

While setting up post processing on a project that I am currently working on, I discovered that post processing effects are not visible on the apk build on mobile. I setup a new Project with URP on ...
0
votes
0answers
46 views

What are the options when float textures aren't precise enough?

I am currently experimenting with rendering planetary scale terrain. I am generating the terrain on the GPU with noise, and to fix the 32 bit floating point precision problems, I generate the ...
2
votes
1answer
732 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 ...
-1
votes
1answer
290 views

How can I draw filled triangles in C++?

VERY IMPORTANT NOTE: Im trying to fill a triangle. I have already made the 3D part. Sorry if this wasn't understandable. I'm currently trying to create a simple 3D-Engine. Well, I have successfully ...
0
votes
0answers
39 views

How do I get the objects in my pixel art game to have a more “top down” (orthogonal dimetric) perspective such as “A Link to the Past” or “Sparklite”?

I'm creating a "top down" pixel art game with with my friend's and we're basing it off of famous games like ""A Link to the Past" and "Sparklite". However, we're having problems with perspective. So ...
1
vote
0answers
71 views

Which elements make some maps in multiplayer FPS games more fun than others? [closed]

I'm working on a sci-fi multiplayer FPS game, and am currently designing maps with layout influences from the 2015 Star Wars: Battlefront game and from the original Halo CE game, as those games have ...
1
vote
1answer
44 views

Why do asymmetric specular highlights appear in a scene with only ambient lighting in Unity?

I have a scene in Unity (2019.3.0f3 Personal) using the High-Definition Render Pipeline. There are no lights in the scene, and Baked Global Illumination is disabled. The skybox is a ...
2
votes
0answers
30 views

Cheap way to soften contactpoint of character with ground

The view of my game is always semi topdown. I'm trying to make the contactpoint between characters and the floorplane more grounded without rendering hundreds of sprites. One thing that I think could ...
1
vote
1answer
69 views

Generate a wave noise map

How can we generate the wave-like texture like this The author(RujiK) says in reply he used the texture generator(http://www.kitfox.com/projects/perlinNoiseMaker/index.html), but no matter how I ...
0
votes
0answers
97 views

Why isn't particle hair more popular in games?

Blender 2.80 introduced EEVEE, a new realtime renderer, and after interacting with it for a while I was impressed by how well it handles particle hair in terms of performance and visuals. It even ...
0
votes
1answer
53 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 ...
0
votes
0answers
64 views

Technique for Edge Detection Between Distinct Entities

I'm developing an application that renders large(-ish) scale graphs (i.e. nodes and edges) in 3D. We've recently been asked to add a flat shading mode, where the graph elements are displayed using a ...
0
votes
1answer
185 views

Model colors look much better in blender than Unity (LWRP), how to fix bad colors in Unity LWRP?

I made some models in blender 2.8: After importing them to Unity, they look much worse: Still the same material as in blender, I use the LWRP and have had nothing but issues with it, the lack of AO ...
0
votes
1answer
159 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 ...
0
votes
0answers
53 views

Rendering up close, OpenGL performance issues

I have been developing a massive RTS during the past 18 months, which is comming together nicely! Now i have an issue i can't really wrap my head around. If i render 100 models from a distance ...
0
votes
0answers
98 views

OpenGL 2D Batch Rendering: Textures mixing when having multiple active textures

This is what happens when I draw switching from the black texture to the lime green one in a simple for loop Here's a simplified version of how my renderer works Init(): Create my VAO and attrib ...
1
vote
1answer
92 views

Model gets distorted when rotating the camera

I'm currently developing my own 3d graphics engine and I'm having a hard time figuring out why my 3D models gets distorted when rotating the camera around. This is my projection matrix. I'm following ...
0
votes
0answers
42 views

How to divide commands to CommandLists in DirectX12/Vulkan?

Currently my DirectX graphics engine submits all draw commands in a single, large CommandList. I want to paralellize my CommandList recording to improve performance on CPU side, but I'd have to ...
0
votes
1answer
100 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
146 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
vote
2answers
50 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
103 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
61 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
44 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
247 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
2 3 4 5
20