Questions tagged [color]
Color is the visual perception of light by humans into named categories, commonly "red," "green," and "blue."
25
questions with no upvoted or accepted answers
3
votes
0
answers
405
views
Weird libGDX BitmapFont Color Change (And Alpha) Bug
I want to change the color of my libGDX BitmapFont, but it can't change it. The font is generated with Hiero v5 (Lastest as I Know) but the color of the font doesn't change. Here is the example code, ...
3
votes
0
answers
173
views
Bitmap font engine: When is color modulation not supported?
I am developing a bitmap font renderer for a 2D game using SDL 2. (If it matters, I'm using Debian 8 "jessie".) I had planned on storing the glyphs as a grayscale image, translating gray levels to ...
2
votes
0
answers
805
views
Linear color workflow with render to texture - Banding in alpha channel?
In OpenGL, I am using GL_SRGB8_ALPHA8 for the OpenGL internal texture format for my textures and render targets. This eliminated some banding I was seeing in dark ...
2
votes
0
answers
3k
views
Easy way to set face colors with indexed VBOs?
I'm loading OBJs, which lend themselves well to setting up as indexed VBOs, since each vertex is only defined once and then a face definition will reference the same vertex more than once when they ...
1
vote
0
answers
35
views
Blending Object Colors in Unity
I'm completely new to Game Development but I'm required to use Unity for a class project. For the project I want multiple spheres of different colors to overlap each other and create new colors in the ...
1
vote
0
answers
917
views
RGBA32 and ARGB32: what are they? what's the difference?
Unity has both TextureFormat.ARGB32 and TextureFormat.RGBA32.The document says it's 8bit each channel in [0..1] range. But what are these formats exactly? 8bit is usually [0..255]. Do they just ...
1
vote
0
answers
120
views
CursorMode.ForceSoftware changing the colour / shade of image
When I am using CursorMode.ForceSoftware the shade of the cursor changes and appears much darker than it is supposed to be.
I have tried all the available 'Formats' ...
1
vote
0
answers
34
views
ACES tonemapping confusion
In different sources I see ACES tonemapping, but I see one of two possible sets of formulas:
https://www.shadertoy.com/view/XsGfWV this one
https://www.shadertoy.com/view/tdffDl or this
I compared ...
1
vote
0
answers
1k
views
How to randomly change the color of a Shader Graph Material for only a specified GameObject, with C# script?
I'm working on a game, in Unity3D, where the player picks up trash from Trash cans, and dumps the trash from the Trash cans into a Trash Truck. The world of the game itself is randomly generated, with ...
1
vote
0
answers
377
views
HDR mode in windows makes build version of Unity game look washed out
I've got a 2D Unity game I've been working on. The development computer is hooked up to a TV that supports HDR. If I turn on the "Play HDR Games and Apps" switch in windows then run the build version ...
1
vote
0
answers
49
views
How to apply a visual filter to what I am drawing?
I'm looking to apply a sepia filter to what I'm rendering. Perhaps we could just apply the filter to the view or pass it to the draw method to draw everything with the filter (I'm using one draw ...
1
vote
0
answers
853
views
Shadow & sorting issues with vertex colored PBR Shader Graph
I'm working on a custom shader using Unity 2018's new shader graph feature. Previously, I was using this shader, which worked great for awhile, but it ended up constantly breaking for seemingly no ...
1
vote
0
answers
76
views
How to color individual parts of curve in unity, real time?
So I have a mesh curve that I've imported from Blender. What I want to do is to place individual points on the curve (at fixed distance) and then based on a specific number, color them.
Let's say for ...
1
vote
1
answer
484
views
How do I make a 2D sprite flash green when tapped?
I have a sprite that is based on an image of a gray circle. When the user touches the sprite, I want the sprite to flash green, as in I want the circle to appear to turn green for 0.2 seconds. I tried ...
0
votes
0
answers
38
views
Fill color on an empty space on a sprite
I'm trying to make a coloring game, of which I already have a drawing (outline) of an object - let's say a face of a dog. How can I do it that whenever I click for example the eyes, it will "fill&...
0
votes
0
answers
44
views
Correct palette vs player color RGB combination
I'm trying to replicate a RTC game as a pet project. The thing is, the units have a .BMP palette. From index 0 to 63, palette colors will be combined to the player color, since that parts of the unit ...
0
votes
0
answers
56
views
Eyedropper tool within Minecraft Java
I'm trying to make an eyedropper tool (one where it picks up the color the tool is being pointed at) for a Minecraft mod that uses Forge on IntelliJ IDEA. I already have the item/tool ready and able ...
0
votes
0
answers
86
views
custom 8Bits RGBA textures YCoCg encoding decoding with 16 bits Y packing not working correctly
Context: I invented a way to get ugly GI for low end platform (target being Mali 400 mp GPU) through texture feedback and texture PVS.
Problem: In order to bypass the precision limit of 8bits textures,...
0
votes
0
answers
306
views
How can I recreate a material from blender in Unreal engine
I'm new to unreal and I am having trouble finding a way to reproduce the materials for a mesh in blender in unreal. It's a simple material but I can't find a way to reproduce the color ramp ...
0
votes
0
answers
57
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
...
0
votes
0
answers
95
views
How to create opacity mask from colored bitmap?
For the image (bitmap) below,
if I do:
Create a spite with the image in unreal engine.
Create a opacity mask on the spite.
Use this image, choose a specific color, such as blue, make its ...
0
votes
0
answers
121
views
Changing alpha of single pixel value?
I'm trying to change the alpha values of a grayscale texture based on some conditions. Essentially if the color value is within some min and max threshold, set the alpha to 0.8, and if it is not ...
0
votes
0
answers
1k
views
GetPixel() doesn't return properly the values
So I'm trying to use GetPixel() function to get which colors is the texture as a value of x and y. So far it works well but it only return 1 color, being unable to get the rest of the colors of the ...
0
votes
0
answers
38
views
How to do Colored Lights in CIE XYZ/LUV-like Space?
I've a 2d background, some sprites, blitted onto it. And over all that in the final pass I draw colored lights, to make projectiles look cooler. Basically I apply a classic lightmap, which is colored ...
-1
votes
1
answer
802
views
XNA changing color alpha
I know I can take a color and multiply it by a float to reduce its alpha like that:
Color color = Color.Green * 0.15f;
But how do I return the color's alpha to ...