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
2 answers
59 views

Splatoon like gun in Unity

I want to create a 3D Top Down Battle Royale game in Unity and wanted to add a mechanic to color the floor, walls and ceiling, just like in Nintendo game Splatoon. I know that you can color a 3D shape ...
CheckerT's user avatar
2 votes
1 answer
108 views

How do I mix an image with a specified color?

I have some images of static objects using per-pixel alpha (trees, rocks) for a background. In order to make them look a bit more natural, I want to create some kind of atmospheric fog, which means ...
Intice's user avatar
  • 31
1 vote
0 answers
51 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 ...
Frank Kirk's user avatar
1 vote
1 answer
138 views

Is it possible to change the default color of Godot's NavigationMesh3D in the editor?

I'm working on a game that uses a lot of high-intensity and pastel color language, and unfortunately, the navigation mesh is doing the same thing! There's a good bit of eye strain there. If I could ...
Michael Macha's user avatar
0 votes
0 answers
52 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
45 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
2 votes
3 answers
2k 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 ...
Pikamander2's user avatar
0 votes
1 answer
192 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 ...
MXMLLN's user avatar
  • 115
0 votes
1 answer
324 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....
Spaderdabomb's user avatar
1 vote
0 answers
1k 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
0 votes
0 answers
65 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
1 answer
528 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: <...
TomSelleck's user avatar
0 votes
1 answer
274 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 ...
philB's user avatar
  • 129
0 votes
0 answers
100 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
2 answers
1k 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 ...
Zombified Taco's user avatar
-1 votes
1 answer
110 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 ...
Đạt Phạm's user avatar
0 votes
1 answer
305 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 ...
sshd's user avatar
  • 3
0 votes
1 answer
172 views

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

...
graveyard's user avatar
1 vote
1 answer
512 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 ...
Arian_ki's user avatar
  • 691
1 vote
1 answer
930 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 ...
doctordingus's user avatar
1 vote
0 answers
139 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
0 votes
1 answer
55 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 ...
user avatar
1 vote
0 answers
36 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
3 votes
1 answer
1k 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 ...
baseten's user avatar
  • 171
0 votes
0 answers
352 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
2 votes
1 answer
130 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 ...
Arian_ki's user avatar
  • 691
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 <...
lover of the feet's user avatar
0 votes
1 answer
148 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 ...
AzulShiva's user avatar
  • 669
2 votes
2 answers
1k 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 ...
GesChen's user avatar
  • 23
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 ...
Hussain Mussa's user avatar
0 votes
1 answer
110 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. ...
chuackt's user avatar
  • 253
0 votes
0 answers
61 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
1 answer
362 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 ...
Marcin Piotrowski'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
0 votes
0 answers
99 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
1 answer
241 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"): ...
Boneco Sinforoso's user avatar
0 votes
1 answer
608 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. ...
Billy's user avatar
  • 1
3 votes
1 answer
511 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, ...
csharpapple's user avatar
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 ...
tmighty's user avatar
  • 919
0 votes
1 answer
344 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 ...
tmighty's user avatar
  • 919
0 votes
1 answer
8k 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 ...
tmighty's user avatar
  • 919
1 vote
1 answer
91 views

How to set the color of a game object as of the other?

I am 15 year old Indian student and I am creating my first 2D game in Unity. I have set the color of my player as Random and I have to set the color of my game object as of my player. But the color of ...
Mokshith's user avatar
0 votes
2 answers
201 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 ...
Anon's user avatar
  • 103
0 votes
0 answers
136 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
1 answer
697 views

Set background color in Phaser

I want to set a background color for my game. I found this solution: function create() { this.cameras.main.setBackgroundColor("#d5d5d5"); } but I want to be ...
JacopoStanchi's user avatar
1 vote
0 answers
417 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 votes
1 answer
426 views

Loading the map from an image file in C++

For my platformer tile-based game I want to be able to load the game map from an image file. Consider the following 25x15 px .png (enlarged) representing some level: Assume that each specified ...
weno's user avatar
  • 541
7 votes
4 answers
3k views

What colour space or mixing algorithm should I use for "watercolor-like" colour mixing in-game?

I want to make a game where the player creates potions out of coloured ingredients, and I think the RGB or HSV colour spaces would be confusing for players expecting (red + yellow = orange, red + blue ...
Hypergardens's user avatar
2 votes
1 answer
1k views

Color palettes in video games

I’ve spent the days reading all sources I can find on the use of Color palettes in games, but there is a real lack of real world examples. Most Color palette tools generate 4-5 colours. I am making a ...
Majs's user avatar
  • 405
3 votes
2 answers
427 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 ...
tuket's user avatar
  • 485

1
2 3 4 5