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.

learn more… | top users | synonyms

1
vote
1answer
36 views

Disney BRDF - where is metallic factor input into BRDF?

Burley states about metallic parameter: "This is a linear blend between two different models. ..." What are the two models? I can't see this described in the Frostbite or the Unreal papers either. ...
1
vote
2answers
47 views

OpenGL: Properly attach Texture

Problem: Been trying for hours to set a simple png of a cross hair as a texture (so I could later stick in the middle of the view like a normal cross hair), without luck. I'm coding in Java with ...
1
vote
1answer
33 views

DrawString and Render graphics after custom time

I want to draw String after some second like "Boss is incoming",and after the string is disappeared i want to draw the Boss.I have the graphics and the string so my question is how to add timer for ...
1
vote
2answers
54 views

Draw bug is creating a lot of Enemies

I'm working on 2d java game and I have little issues what I can't resolve. My problem is when I want to create 5 enemies with for loop, random post is creating lot of Enemies, not 5. How can I resolve ...
4
votes
1answer
133 views

Why are most windowed games not resizeable?

I find it incredibly rare to find a game where the window can be resized, even if permitting it is a single click away in their game engine. For what reason is this done? Thoughts that come to mind ...
1
vote
0answers
46 views

What tools do professionals use to create pixel art with animations? [closed]

I've been looking for the right tool for creating my own pixel art, but I've been having a few difficulties finding the right one. What I've tried so far: ProMotion NG - seems to have lots of ...
0
votes
0answers
26 views

Unity resolution problem on mobile devices

I made a 3D game in unity for android devices, but its resolution differs a lot when I tried to run it on different devices. There were two resolutions I found, I'm attaching their images here. ...
0
votes
1answer
29 views

How to draw Alpha Masked fragments' depth to depth buffer?

I feel like an absolute idiot for asking this. But how exactly do safely draw the depth of a fragment featuring a Masked ( Alpha 1) texture on it's surface? So far I've literally been doing a depth ...
1
vote
0answers
39 views

Having problems drawing entities the right way in my isometric game

I am making an isometric game where I have moving Entities's not bound to tiles, and a 3d ArrayList map which is populated by Block's which forms a tower-like structure in the middle of the map. My ...
1
vote
2answers
132 views

Java 2D Game - Screen Images Flashing

I'm currently working on a 2D Java Game. When I start the game everything works fine. A constant Update- and Framerate. When I'm using normal graphics methods to draw shapes nothing happens. But as ...
1
vote
1answer
37 views

PBR How to correcly use standard lighting and IBL

I'm creating a physically based renderer but I am a bit confused on how to put together standard lighting with IBL, since like I'm doing now I think it's wrong. Right now, for each light, I evaluate ...
5
votes
1answer
75 views

How to select the most powerful vkDevice?

I've been messing around with Vulkan recently. In all of my experiments, when I select a gpu/vkDevice, I always just take the first one vulkan provides. I've looked at the documentation for vkDevice, ...
1
vote
0answers
18 views

Multi Sampling in Rendering Pipeline?

I am trying to understand : How does multi-sampling rasterization effects pixel shader output? In a nutshell (i am skipping some steps to stay on point of question): Vertex data is fetched. Vertex ...
10
votes
1answer
175 views

Draw the middle half of a sphere programmatically

I'm trying to create the middle half of a sphere. Basically to create a sphere, stack numbers and slice numbers are given, and there are two variables phi (for slices) and theta (for stacks) ...
-1
votes
0answers
11 views

Rectangle Flash fix and draw string

Now I have a code which works :) But now I have 2 bugs and I don't know how to fix it. I am drawing a rectangle (that works) but it's flashing and I dont know why. The second bug is i did a score int ...
1
vote
0answers
22 views

Concerns about using a 3D tileset grid

I'm thinking of implementing a 3D tile system for my engine, and tie it to it's world streaming system as well. As in, using it for it's terrain for an open world in an engine that theoretically can ...
0
votes
0answers
39 views

Is it possible to create a third party program that simplifies game graphics?

As someone familiar with the lifestyle of low-end gaming, I am interested in finding some sort of third-party solution that could enable individuals with lower-end hardware to play more graphics ...
3
votes
1answer
59 views

OpenGL cube map is always black

When creating and rendering a skybox with a cube map texture, the skybox is black. Here is how I create the cube map texture: GLuint loadCubemap(std::vector<std::string> faces) { GLuint ...
-1
votes
2answers
121 views

What is the most efficient way to render water?

Would I create the water surface mesh in C++, and control the movement/animation in the CPU, and afterward apply any shaders (reflect/refraction/caustics/etc..). Or should I only create the mesh in C++...
0
votes
0answers
41 views

How do I make an object not appear grey regardless of distance?

My moon texture is on a plane 500m away and I would like to know if there is a way to keep displaying the texture: As opposed to it turning grey as pictured here: regardless of the distance it is ...
0
votes
1answer
41 views

LIBGDX: Translate grid drawn with ShapeRenderer with an OrthographicCamera

I am trying to draw a grid for my "world" that may or may not extend beyond the screen. What I would like to do right now is draw the entire world (which is relatively small) and then use the ...
0
votes
1answer
56 views

How to fill a canvas with triangles that are seemingly random?

Given a canvas say, 1000 X 1000 unit. I would like to fill the canvas with triangles. The triangles can be of any type right angle, equilateral...etc. To avoid big chunks of triangles lets say all ...
7
votes
2answers
170 views

What are these odd distortions on far away textures?

I'm currently writing a simple voxel engine just to get some practice in, and I'm coming across some odd issues. In order to generate terrain, I create a mesh and then assign UV coordinates on a ...
1
vote
1answer
97 views

Android OpenGL Sprite Component Pattern

Ok so I have a 2D OpenGL project that was originally a class assignment, and now I am using it to experiment with and to broaden my knowledge. Originally, I had been using the Normalized Devices ...
0
votes
0answers
39 views

How to create words as objects in Unity?

I am working on a game that has words as obstacles, i.e. the player needs to climb over and around them. There will be hundreds of words in the game therefore I need a way to automate the placement. I ...
1
vote
1answer
27 views

DirectX 11 Vertex Shader Fragmentation

I was wondering how my vertex shader is causing my cube to be render weirdly? I am using the Visual Studio graphics tool and see that my input assembler is correctly receiving the cube and I can only ...
1
vote
1answer
71 views

SDL2 linux fullscreen issue at lower-than-desktop resolution

Having a problem trying to get proper fullscreen in linux. I'm using 1440x900 on desktop. When i set SDL to use 1280x720 as fullscreen, it does change screen resolution. But if i drag the mouse ...
14
votes
1answer
2k views

Does multiple downsampling have a benefit?

So i came across this site and you can see these lines on the first and second paragraph: For a crude but easy effect, draw the bright portions of the scene (eg, light sources) into an FBO, then ...
0
votes
1answer
96 views

Is glxinfo saying that the 980 GTX doesn't support a 32 bit depth buffer?

I've been using the glxinfo command (glxinfo -v) to explore the supported framebuffer configurations. There are two values relating to depth, "depth" and "depthsize." According the source, it appears ...
-3
votes
1answer
53 views

2D Game graphics [duplicate]

I want to make some HTML 5 game and I searched alot in google for some hero 2d graphics, and couldn't find something I really want. Where I can find PNG's/GIF's of Hero graphics for free or get ...
0
votes
0answers
22 views

Occlusion Culling Open-World Implementation (Using Unity)

I was curious how people generally do occlusion culling. What techniques are most widely accepted for performance and also where can I learn more about these? The material I can find online seems ...
0
votes
0answers
10 views

libgdx - objects are drawn elongated when width and height are the same value

I don't use view ports but my camera is set to the screen width and height of the device. My objects are drawn longer(taller?) then they should be. I check my sprites and they are square not ...
0
votes
0answers
37 views

Unity terrain quality

I've created a new project in Unity 5.3.4 (this problem has also happened since unity 5.3.2 an other versions) and when i initally make and sculpt my terrrain, the quality, shadows, specularity and ...
1
vote
1answer
122 views

Create a crosshair openGL

How do I draw a white crosshair in the middle of screen in openGL, it's all well and good knowing how to render objects in 3d space, but I have literally no idea on how to draw something that sticks ...
0
votes
0answers
40 views

Unity Editor windows went black

I recently bought a new laptop, with Intel i5-5200U HD graphics 5500 and AMD Radeon R5 M230 2GB and 8gb ram, and heres what happens with my Unity: If open it, minimize it and then maximize again, it'...
0
votes
2answers
96 views

How to improve my graphics on HTML5 canvas?

I am making my own army fighting simulator. Designer have made an 3D model with Blender and textured it, made animations. I have made sprites from that model and did programming. But the result is not ...
0
votes
0answers
46 views

Distance fog smooth out plane's fade with respect to ground

I am looking for distance fog for my endless racing game. Unity's default fog system is too heavy for mobiles so for workaround I am trying to add large plane with transparncy..the problem occures ...
0
votes
0answers
18 views

Unify visual experience across different devices' screens

How would one approach the problem when your graphic assets (images, textures and so on) look different on different devices? For example, an artist made a set of graphic assets looking at his display ...
3
votes
1answer
98 views

How should I structure VBOs for my 2d world data?

My game is played on a fixed-size hex based arena, where each hex can be of a different type, and possibly contain some creatures/items/anything on it. When I started out, I got the advice to have a ...
4
votes
1answer
111 views

How to buffer an image in winbgim?

So ive always had problems with buffers and never used them before. I read up on the topic online but since winbgim is so old i couldnt find any definite answers to the topic. So im gonna ask them ...
0
votes
0answers
28 views

How to convert Non-Axis Aligned Bounding Boxes to AABB

I'm trying to write a raytracer to render boxes (cubes) that are arbitrarily rotated, i.e. not necessarily axis aligned. While I'm reasonably comfortable ray-tracing an axis-aligned cube, I don't know ...
0
votes
0answers
40 views

How can I use pre-rendered high resolution models as a basis for generating normal maps?

I was reading through the Wikipedia page on pre-rendering and at the end they mention in the following quote that doom 3 used pre-rendered models? While making Doom 3, id Software used pre-...
1
vote
1answer
98 views

Java - Adjusting the speed of an object during movement

I am trying to get an object to move (on java canvas) in the same angle but at different speed within the X and Y axis. Below you can see how i have implemented the movement of the object. xPosition +...
2
votes
2answers
80 views

Unity3D: How to convince the user of objects moving closer with layering?

I'm currently developing a Universe Simulator for Android. I had a question regarding layering. I have a list of 100k 3DPoints each represent a stars co-ordinates. I have decided to break the cameras ...
1
vote
0answers
43 views

Is there a way of making the Unity editor paint decals on surfaces?

I see other engines can do this, here's a video of what I would like to achieve : I think the one on the image uses something that blends the surface and the image, but I just want to be able to ...
35
votes
2answers
4k views

How can I procedurally render irregularly shaped health bars?

The issue of the traditional rectangular or heart-based health bar is something well-understood and easily solved. But what is the accepted solution for more "creatively-shaped" health bars, like the ...
1
vote
1answer
117 views

Textures created with Photoshop show up with a white border

All of a sudden, I started having this problem. I've used libGDX + Photoshop before and never had this problem. One of my textures is showing up with a white border/glow around. The texture is the ...
0
votes
0answers
30 views

Open gl blending problem c++

im creating project from nearly scratch in c++.. i created skybox and terrain . the result is catastrophic ! the terrain goes away and the ground also goes away,i dont know why ! i tried to disable ...
2
votes
1answer
64 views

How to dispose in Newest Java/LibGDX ApplicationListener?

Am I new? yes What I'm wondering: How do you dispose of textures / spritebatches and the things you normally need to dispose of now? Why I'm asking: Because theirs no automatic dispose() function ...
2
votes
1answer
62 views

What is render path? [closed]

What is "render path"? Who invented this term? I can suppose that this thing mean something one from the list below: The thing which shows which rendering technique should be used (e.g. forward/...