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

2
votes
2answers
401 views

How are red dot/reflex/holographic sights implemented?

In first-person-shooters like Call of Duty, the hologram only appears when it is behind the glass portion of the sight. In OpenGL, would it be implemented by rendering the glass to the stencil buffer ...
5
votes
1answer
580 views

Unity3d. Overlay of clothes on a human model

I have: Clothes model (jackets, shirts, sweater etc. with various sizes,colors) Human model with dynamic height, width, position Need overlay the clothes' model onto a human model. Variant with ...
2
votes
1answer
127 views

vuforia how do I force objects into a 2D plane

I'm working on a game in which cards are placed on a table and then rendered in augmented reality. These objects have 3D physics attached to them which doesn't work as well if they are either rotated ...
1
vote
1answer
143 views

How to draw an ellipse with DirectX 9?

I can draw the outline of an ellipse but I want to draw a filled in ellipse, but I can't seem to get the code to work. Any help would be great! I am using DirectX 9 and D3DX.
1
vote
1answer
732 views

glsl shader to allow color change of skydome ogre3d

I'm still very new to all this but learning a lot. I'm putting together an application using Ogre3d as the rendering engine. So far I've got it running, with a simple scene, a day/night cycle system ...
0
votes
1answer
14 views

zoom, scale, pan etc in an application and printing

I have a C# windows application where I display photos for editing. The displayed image is scaled to fit the screen. I allow pan, zoom, rotate, crop operations. Once the editing is done, I would like ...
0
votes
1answer
34 views

Maya 2015 Collada mesh transforms not applied

I am trying to load a dae (Collada) model into my 3d engine. The problem is they export the vertices and transforms seperately. So in Maya 2015 it looks like this In the game engine I have it simply ...
0
votes
1answer
187 views

Do SpriteBuilder's Smart Sprite Sheet need to be loaded to memory?

When I create an Smart Sprite Sheet Folder using SpriteBuilder and publish it, must I load that SpriteSheet into memory "FrameCache" with code or does SpriteBuilder do this automatically (so I just ...
-1
votes
1answer
186 views

Unity how to change material properties at runtime

I'm working on a unity game where I want to change the color of a material from within a script. The material applies to a line renderer. I currently have the following script: using UnityEngine; ...
-1
votes
1answer
121 views

Do I necessarily need to write a vertex shader to use geometry instancing?

I've quickly read the GPU gem about geometry instancing, there are many wordings and I'm not sure I understand it well. If I understand it well, when you use instancing, if you want to apply ...
-1
votes
1answer
285 views

Render white background with Graphics in Canvas

I am developing a game that I would like the background to be white, and it just sticks to being black. Here is my render method: private BufferedImage image = new BufferedImage(WIDTH, HEIGHT, ...
2
votes
0answers
134 views

DX 11 Specular Highlights in Deferred Renderer

I am currently implementing a deferred renderer in DX11.1. Right now I am having a problem that I can't seem to crack with specular highlights when I have multiple light sources. I keep a vector of ...
2
votes
0answers
82 views

How would I warp a mesh with code?

I recently asked a question about putting a camera at the head of a 3D human model here and it worked out rather well and whatnot, but there is still a problem that bothers me: How would I ...
2
votes
0answers
359 views

Quaternion to direction vector - flipping

I've kinda solved this myself by adapting the Camera::setDirection code from OGRE to work for my need: Now I have the following code: Vector3 boneDir = getBoneWorldOrientation(mEntity, mHips) * ...
2
votes
0answers
693 views

Geometry Shader and Stream Output with Directx11

I am having trouble trying to send verticies generated in the Geometry Shader to Stream Output. What I am trying to accomplish is to generate verticies from the Geometry Shader and store them to a ...
1
vote
0answers
61 views

Normal Mapping a Cubemap

I posted a question on Stackoverflow and it was suggested that it would be better asked here. I have a sphere. It was created via the icosphere method outlined here: ...
1
vote
0answers
39 views

Can you trilinear sample a non volume texture?

Let's say that i have a regular 2d texture (not a volume texture). Is it possible to do trilinear texture sampling of that texture even though it isn't a volume texture in opengl or directx? ...
1
vote
0answers
53 views

Algorithm for creating mesh from 2D image silhouette

I'm looking for an algorithm that can take a 2D image, approximate it's shape and then generate a low poly mesh. Basically, the same what Unity does with sprites when you select tight mesh instead of ...
1
vote
0answers
28 views

Partially colorizing a sprite in XNA

I'm looking for a clean way of making sprites that look like the following glowing circle, except in any arbitrary colour. Originally we thought we could start with a gray-scale version of the ...
1
vote
0answers
33 views

Integrating specular, diffuse reflection and refraction

I am implementing an MLT bidirectional path tracer. I have a problem integrating diffuse, specular reflection and refraction. 1) The first problem is diffuse and specular reflection. Diffuse ...
1
vote
0answers
49 views

XNA Billboards dont have correct depth

Im back again with yet another problem :( My current problem is with my billboard effect. Im having trouble trying to get the depth correct so that billboards that are closer to the player are ...
1
vote
0answers
98 views

How to turn off antialiasing in Graphics class?

I have been using the following code with a Graphics2D buffered image g.setRenderingHint(RenderingHints.KEY_INTERPOLATION,RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR); to ensure the image ...
1
vote
0answers
361 views

Xna GraphicsDevice.IsFullScreen causes strange resolution stretching artifacts

Sorry for the non-descriptive title. So I've been trying to implement fullscreen mode into my xna-game, and I've hit a couple of roadblocks. My basic code setup for this functionality is the ...
1
vote
0answers
54 views

How can I approximate an “opening fan”-transformation?

Is there a way to—with matrices—transform something as if opening the image on a Japanese folding fan? Image from Wikimedia Commons. I'm at a loss of what to call it, so pointers towards avenues of ...
1
vote
0answers
203 views

How do I remove control points from imported curve in Maya?

When I create a path from an Illustrator file, it adds extra control points for bezier handles for each point in the AI file, even though I don't drag out the handles in Illustrator. All my points in ...
0
votes
0answers
25 views

Phong shading blows out things close to white [OpenGL]; is there a way around this?

I'm doing per-pixel lighting using the Phong shading model. In pseudo code this looks like: vec4 ambientColor = light.ambientIntensity * material.diffuse; vec4 diffuseColor = light.diffuseIntensity ...
0
votes
0answers
39 views

Efficiently creating animation sprites

I'm currently developing a simple 2d game on LibGDX. The core game logic is in place, but the assets are simply taking forever to create. My current method to create each animation frame is to ...
0
votes
0answers
68 views

Transformations between coordinate systems

In a graphics engine, I have three three-dimensional orthogonal coordinate systems, O, A and B. A and B are the result of two different transformations from O. I now want to calculate the ...
0
votes
0answers
28 views

Reverting 2d canvas?

I'm making a multiplayer game which involves drawing lines. It's based this game: http://curvefever.com/sites/default/files/resize/remote/ef86488088c618df13b34f8b87aafd4e-1107x808.jpg. The game is ...
0
votes
0answers
65 views

Choosing assets for different screen densities and sizes? (libGDX)

I am making a 2D game. As I understand it we typically have maybe 4 sets of assets (xxhdpi, xhdpi, hdpi, and mdpi) so that our game runs well on all devices. These are just scaled versions of the same ...
0
votes
0answers
44 views

Color from OBJ not displayed in Blender

I want to import some .obj file that I have made with MeshLab. The point cloud file was actually in .pcd format and I used pcl_pcd2ply tools from PCL to change it into PLY-Format. Then I import it ...
0
votes
0answers
70 views

Connecting lines from edge to edge of a gameObject Unity

I am trying to get the world position of a gameObject edge so to connect one edge to another edge with a lineRenderer component just like shown in the image below. I ran this script I found online to ...
0
votes
0answers
83 views

Texturing problem inside Unity

So I created a Hex Sphere using Houdini and exported it as FBX to Maya where I created UV's for the model to use it in Unity This is how my sphere looks inside Unity All the hexes are separated so ...
0
votes
0answers
126 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 values, I am getting exactly the value ...
0
votes
0answers
175 views

Fixing/avoiding Z-fighting with decals OpenGL

I'm trying to draw animated flames as a decal in OpenGL (just a simple quad with an animated texture as a decal on another quad). Problem is as the camera moves away I get terrible Z-fighting in the ...
0
votes
0answers
178 views

graphics.IsFullScreen resetting to false after game constructor and graphics.ApplyChanges()

This is a MonoGame 3.2 Windows (DirectX) Project. I've tried setting graphics.IsFullScreen to true in the game's constructor and in the game's initialize function, both times running ...
0
votes
0answers
265 views

OpenGL shading doesn't work with different projection and view matrices?

I found an online (public-domain) code to do marching cubes, and I am trying to adapt this code to work in my own project. The code uses GLUT and "older-style" OpenGL, whereas I am using GLM and ...
0
votes
0answers
170 views

Ray-Triangle Intersection Detection using Barycentric Coordinates

I am attempting to convert the algorithm from http://www.cbloom.com/3d/techdocs/fast_ray_tri.txt to java code, but my solution does not function correctly. The only intentional change I made was for ...
0
votes
0answers
37 views

Using Graphics from my Frame's paint() gives cutting effect every call to repaint()

Every frame the run() method of my thread calls the repaint() of the frame subclass, in this frame subclass I override the paint(Graphics) and since I want to have different screens from my game I ...
0
votes
0answers
84 views

Pixel Shader : Backbuffer is 'Black'

After Fiddling around I am pretty sure this is not a Shader issue. Edit 4: The only diference I can see is that BasicEffect calls these methods before drawing: // Make sure that domain, hull and ...
0
votes
0answers
63 views

“Blinking” graphical bug when rotating shadow matrix

So, we have implemented Krypton shadows into our code for our 2D game, and it's working beautifully. Only issue is that we're running into a bizarre graphical bug when rotating the shadows with the ...