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
25 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&...
2 votes
2 answers
360 views

Does GPU mipmapping assume the texture is 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 ...
36 votes
11 answers
2k views

What is the best way to avoid colorblind issues?

About 5-10% of males have some form of colorblindness. What's the best way to ensure you are not turning away 5-10% of your male population from your game? Just to note colorblindness does not mean ...
0 votes
1 answer
95 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 ...
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 ...
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?
311 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
798 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
119 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
34k 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
180 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....
1 vote
0 answers
700 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
53 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
312 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
116 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
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,...
0 votes
0 answers
332 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
295 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
628 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
100 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 ...
0 votes
1 answer
191 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
128 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 ...
1 vote
1 answer
378 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
621 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
109 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
189 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
31 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
885 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. ...
29 votes
4 answers
72k 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
304 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
950 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
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 ...
2 votes
1 answer
122 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
2k 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
75 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
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 ...
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
217 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
88 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
524 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. ...

1
2 3 4 5