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

Your opinion on good C++ Libraries for pixel game development [closed]

I want to develop a lightweight game that manipulates pixels on the screen to do certain things on command. I normally develop my games with UE4 but I don't think this is appropriate for what I want ...
0
votes
1answer
88 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 ...
1
vote
1answer
81 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
2answers
54 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
16 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 ...
2
votes
0answers
28 views

How to generate a star onto a render texture with spherical warping

How would one proceduraly generate a star in a compute shader that looks like one of thes two at any size needed. Also any way transfer this into a spherical map, would be appreciated. Goal is to ...
0
votes
2answers
44 views

How to make player seem bigger / world smaller, without changing world coordinates

I am making a voxel game with OpenGl, I've got the major parts working, except the camera seems small compared to the the blocks. How do I make the camera bigger? Do I do a scaling on the model ...
1
vote
1answer
58 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 ...
3
votes
1answer
525 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 ...
1
vote
1answer
24 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
1answer
257 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
78 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
1answer
487 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 ...
0
votes
1answer
272 views

How to make object move in exact gametime in Monogame, XNA?

I have recently started learning monogame. The big question i faced is how to make object move, when gametime variable has an exact value. ...
0
votes
2answers
81 views

How does lookAt matrix math work?

Can someone provide me an explanation of how the lookAt matrix works? ...
1
vote
1answer
948 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 ...
1
vote
1answer
42 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 ...
5
votes
2answers
15k views

Rotate vector by matrix?

If I have a Vector, say (1,1), how can I rotate it around the origin (0,0)? I'm working in XNA if that helps.
1
vote
0answers
40 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
1answer
162 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
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
164 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
1answer
35 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
398 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
16 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 ...
6
votes
4answers
10k views

What is the difference between “offline” and “real time” rendering?

I have a rough idea: real-time is approximated with little or no global illumination. But how would you otherwise explain why offline rending takes so much longer? You hear things like "number of ...
0
votes
0answers
15 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 ...
1
vote
1answer
96 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
3answers
3k views

Why use textures that are Power of Two? [duplicate]

Possible Duplicate: Why are textures always square powers of two? What if they aren’t? I am using C# and XNA (also MonoGame for other platforms than Windows) to create a game in 2D. Ususally for ...
0
votes
1answer
153 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 ...
51
votes
4answers
48k views

What are normal, tangent and binormal vectors and how are they used?

I would like to find out the following information: What are they? Example usage in game development (the area they are used in) About the following vector types: ...
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, ...
25
votes
4answers
13k views

Bezier curve arc length

See also: same question on Math.SE How can I find the arclength of a Bezier curve? For example, a linear Bezier curve has the length: ...
0
votes
0answers
12 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 ...
3
votes
2answers
8k views

How to edit specific mipmap images in a DDS?

I am looking for a way to edit individual mipmaps within a DDS file. To my knowledge, the NVidia Plugin only lets you create the largest image and then computes the smaller ones automatically. However,...
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
17 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
3answers
4k views

Unity tiles with wierd border flickering when moving horizontal 2D

I recently made some Tiles using a program called Pyxel Edit to create some placeholder graphics. The problem I'm having is that when I move the camera horizontal the edge of the tiles starts to ...
1
vote
1answer
55 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
1answer
44 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 ...
0
votes
0answers
25 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 ...
61
votes
6answers
136k views

What is ambient occlusion?

I've heard about ambient occlusion and it looks nice, but what exactly is it?
3
votes
4answers
2k views

Find new position of rotated by 10 degrees line

I have a line that goes to x (x1) of 300, and then I rotate the line by -10 degrees. How can I get the new x (x0) of the rotated line? Here's a picture to show what I mean: Are there any books that ...
0
votes
1answer
487 views

HDR and Alpha Blending

I've been reading a lot about HDR techniques and came across Alpha Blending compatibility. Searched even more and found this snippet from the Ogre Forums: With source alpha blending, it sometimes ...
0
votes
1answer
25 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
56 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
36 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
0answers
32 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
76 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: ...

1
2 3 4 5
20