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
Filter by
Sorted by
Tagged with
3 votes
0 answers
398 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, ...
user2963359's user avatar
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 ...
Damian Yerrick's user avatar
2 votes
0 answers
790 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 ...
Tim R.'s user avatar
  • 268
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 ...
371273's user avatar
  • 131
1 vote
0 answers
717 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 ...
Kodra's user avatar
  • 23
1 vote
0 answers
111 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' ...
niar222's user avatar
  • 11
1 vote
0 answers
33 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 ...
Emil Kabirov's user avatar
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 ...
Fox GAMING_NTF's user avatar
1 vote
0 answers
342 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 ...
Allan Mills's user avatar
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 ...
Featherball's user avatar
1 vote
0 answers
849 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 ...
Anthony's user avatar
  • 11
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 ...
user avatar
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 ...
R. Rincón's user avatar
0 votes
0 answers
26 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&...
DC37's user avatar
  • 1
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 ...
sm1l3yZzZ's user avatar
0 votes
0 answers
55 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 ...
leguchi's user avatar
  • 101
0 votes
0 answers
75 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,...
user29244's user avatar
  • 327
0 votes
0 answers
338 views

Blender color ramp textures exported to Unreal Engine 5

As a helpful answer once advised me how to use a color ramp in Blender, using a Separate XYZ plugged into a ColorRamp and using the Location factors of the Mapping node to make the light move along ...
Francis Mike Nathan's user avatar
0 votes
0 answers
276 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 ...
Adriano Rivadeneyra's user avatar
0 votes
0 answers
56 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 ...
Ivan Feoktistov's user avatar
0 votes
0 answers
92 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 ...
Zizheng Yang's user avatar
0 votes
0 answers
107 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 ...
doraginuru92's user avatar
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 ...
OverGast's user avatar
0 votes
0 answers
37 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 ...
SmugLispWeenie's user avatar
-1 votes
1 answer
798 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 ...
Ofir's user avatar
  • 1