As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [color]

Color is the visual perception of light by humans into named categories, commonly "red," "green," and "blue."

Filter by
Sorted by
Tagged with
0 votes
0 answers
64 views

Substance Painter: Fix color addition

Substance Painter appears to add colors together wrongly when selecting "Normal Blending Mode" The right side is what photoshop does correctly, meaning R+G+B values in the border region ...
4 votes
2 answers
3k views

What is the benefit of YCbCr?

Why would someone want to store images as YCbCr instead of RGB in RAM or in GPU memory?
312 votes
14 answers
27k views

How can I find an optimum set of colors for 10 players?

I want to give each of 10 players a unique identifying color. Is there an optimum set of colors for this? How do I create one? Every set I've come up with contains colors that are too similar. ...
2 votes
3 answers
239 views

How can I fully or partially colorize a SpriteRenderer and make its "color" value match the end result at 100% opacity?

I have a GameObject that looks like this: When I change the "color" value in the GameObject's SpriteRenderer to be (255, 0, 0, 255), the GameObject ends up looking like this: But I want it ...
0 votes
1 answer
69 views

How to replicate TextMesh Pro Gradient ScriptableObject Interface?

I'm creating a scriptable object to store the color scheme for each level in my Brick Breaker game. There are a lot of options for how to input colors, but the way that TextMesh Pro does it for their ...
13 votes
8 answers
33k views

How to Color.Lerp between multiple colors?

I have found it rather difficult to find a solution to this in the Unity documents. Color.Lerp(Color a, Color b, float t) is a function that gradually changes a ...
0 votes
1 answer
89 views

Color mismatch between transparent asset from Photoshop and Unity in 3D project

I have created a simple asset in photoshop (teal square) with transparency. To make the square semi-transparent, I just changed the layer opacity from 100% --> 50%, then exported the file as a .png....
0 votes
0 answers
389 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 ...
0 votes
0 answers
43 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
1 answer
187 views

Change Mesh face colors / materials at runtime

I'm trying to change the color/material of the faces on my object at runtime. My object has a default SpatialMappingWireframe to begin with: And I'm trying to assign new colors on start like so: <...
0 votes
1 answer
49 views

Putting two R16_UNORM in a R32_UINT

With my hardware limitation for CS5 I'm using R32_UINT in my shaders to store compacted colors and normasl as 555 bits each. My packing is using uint3 and the result is of poor quality. I'm planning ...
0 votes
1 answer
2k views

How to use a .cube LUT file with Color Lookup?

I have used "Image 2 LUT" to create a LUT for Unity from a certain movie. However, currently "Image 2 LUT" only outputs ".cube" files. For HDRP, this is great, but for ...
0 votes
0 answers
56 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
225 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 ...
0 votes
1 answer
5k views

In Pygame, how can I check if an object is touching a color?

Is there a way to tell if a sprite is touching a specific color on the screen, maybe given as a hex code. I know you can do pygame.sprite.collide for sprites, but ...
0 votes
1 answer
251 views

How to create a LUT from original and processed images (not perfectly the same)?

I would like to create a certain LUT for my game in Unity. The usual way would be to take a screenshot in your game, process this screenshot in an image editor like Photoshop / GIMP and then calculate ...
0 votes
2 answers
375 views

How can I make the hue of a material change over time?

I'm working on a small psychedelic-style game that needs to be done in Unity, with which I have no prior experience. I'd like to achieve an effect where the material of my objects can change colors ...
-1 votes
1 answer
96 views

Are there any practical applications for clearing the screen with a specific color?

Why is it common in the 2D game frameworks for the clear function to have the option of clearing the entire screen with a color? Why is this option available to us? Are there any practical ...
1 vote
2 answers
263 views

Does GPU mipmapping assume the texture es gamma corrected?

I have been reading the Real Time Rendering book and stumbled upon this paragraph: For textures encoded in a nonlinear space (such as most color textures), ignoring gamma correction when ...
0 votes
1 answer
126 views

Does mesh contain a color?

I'm developing a simple 3D engine for education purposes. I'm wondering whether a mesh contains a color of each vertex? Because I saw somewhere that mesh does not contain a color at all. If so, then ...
0 votes
1 answer
107 views

rendering the position of a mesh in a shader as a color, but the color does not match the actual position

...
2 votes
1 answer
2k views

Why am I not getting an sRGB default framebuffer?

I'm trying to make my OpenGL Haskell program gamma correct by making appropriate use of sRGB framebuffers and textures, but I'm running into issues making the default framebuffer sRGB. Consider the ...
0 votes
1 answer
278 views

Changing part of a sprite in 2D game

Let's say I have a character and certain things (shoes, vest, hat, etc.) can be changed (visually, just the color changes). What came to my mind was creating each of them as a separate sprite and then ...
1 vote
1 answer
504 views

Vertex color values are not smoothly transitioning/interpolating in Godot shader

I'm trying to write a shader for terrain that will color the mesh based on slope angle, ie color the sides of mountains or other steep surfaces a different color than the ground. In my shader I am ...
1 vote
0 answers
99 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' ...
0 votes
2 answers
181 views

The colors of Unity 2019 are different

I currently use Unity 2018 LTS, because of my 2019 Unity colours are not really good. For example, the white is not really white but more like grey and the Shadows are really strong too even if I ...
0 votes
1 answer
54 views

In what circumstance might I need to output pixels in non-32-bit format?

Among practically existing devices people play games with - PC, mobile, PlayStation, XBox, Nintendo etc. - is there any possibility that a pixel on the screen is not 32-bit, and do I have to consider ...
1 vote
0 answers
30 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 ...
3 votes
1 answer
699 views

How can I build an accurate 15-bit Highcolor RGB palette

I want to recreate an accurate version of a 15-bit RGB color palette (PC Highcolor, SNES, Playstation 1), storing each color from the palette as a standard 6 digit hex code. With each color component ...
4 votes
2 answers
2k views

Gradient Banding in Unity Android

In an Android game, I have a gradient background that changes color over time. This was achieved by creating a 1x2 pixel texture in code, and stretching it over a large quad with bilinear filtering. ...
28 votes
4 answers
70k views

How can I include vertex color information in .OBJ files?

The .obj files I export are missing data for vertex colors. Is there a way to include color information in the .obj file? If not, what are the alternatives?
0 votes
1 answer
254 views

Unity - plain material colour darker than expected

I want to add to scene object without textures, only plain material, here is my import flow: I create object in Sketch and export to SVG: Then I import SVG to blender (Material do not use nodes, has ...
2 votes
2 answers
820 views

How do I make a rainbow hue shift over time on text?

What I'm trying to do is make a Text object have an animation that allows for the hue of the color to go all the way up and loop back around, so it creates a cool rainbow thing. I've looked on google ...
0 votes
0 answers
230 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 ...
2 votes
1 answer
118 views

Is it a good idea to give NPCs unnatural hair colors while keeping that of the PC a natural color?

I don't know if it's the right place to ask or not but: I would like to color most NPCs’ hair colors orange, green, etc. Do you think this will damage the main characters and secondary characters? (I ...
2 votes
1 answer
295 views

How can I get the texture color data from GLEED2D's level file?

I've hit a little snag in my game. It's a 2D platform game and I need to check for collisions against the level. I'm using GLEED2D to create the map. I'd like to do per-pixel collision checking, but I ...
0 votes
1 answer
1k views

Starting a Coroutine after another Coroutine ends

I have a method that fades the screen to black, then fades away back again using coroutines but I couldn't get the 2nd part to work. FadeToBlack() works if I put <...
0 votes
1 answer
64 views

How to interpolate colors around the spectrum of hues?

I wanted to generate a 7 segment display whose color brightness varies with time, this can be done by just using linear relationship. ...
0 votes
2 answers
1k views

SpriteRenderer color not responding to script!

I have written a simple c# class that is supposed to change the color of the Player Renderer. But, there seems to be a problem! whenever I call the function OnCallFun() ... the color stays put and ...
0 votes
0 answers
54 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 ...
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
1 answer
2k views

What is Surface.set_colorkey() in Pygame?

In pygame, what does Surface.set_colorkey() do? Explain it in a very easy way please. Also, what exactly does it do? I heard it makes parts that are the same color ...
0 votes
1 answer
197 views

Problem when importing color in hexadecimal format from an ini file

In my game I can import a color correctly when it is in the "engine format". Example ("color.ini"): ...
9 votes
4 answers
9k views

Colorize with a given color a texture

I have a texture and I want to "colorize" it with a given color, lets say cyan (#00ffff) or purple (#800080). What I want to do, ...
0 votes
0 answers
80 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 ...
4 votes
2 answers
3k views

Why is enabling GL_FRAMEBUFFER_SRGB making the colours brighter?

My understanding of gamma correction is as follows: We want to do colour math in linear space so we can lerp etc. between colour values and get the results we expect. But human eyes don't have a ...
0 votes
1 answer
469 views

Smoothly switch between 2 pairs of oscillating colors

I have a simple script that changes the emission color based on a bool. The first color is its idle color, which transitions between orange and light purple using a lerp weighted with a sine wave. ...
3 votes
1 answer
425 views

Is it a bad idea to store all textures in linear color-space?

I am wondering about the performance behind color-space conversions for textures during reading. If a project decides to go with a linear workflow, as in, when doing any sort of color manipulation, ...
0 votes
1 answer
6k views

How to create a color grading LUT for Unity URP?

I'm watching a movie, and I would like to achieve the same colors in my game. I think I have to use a Color Grading lookup table to achieve this in Unity with URP. The best example I found example ...
0 votes
1 answer
211 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. ...

1
2 3 4 5