The color tag has no wiki summary.
4
votes
4answers
139 views
Bright colors versus duller colors
I was talking to a friend the other day and we got onto the discussion about colors in videogames, relating to actual in-game graphics/art. He told me that even though it's easy to see things when ...
0
votes
4answers
74 views
Changing color of a moving image without lowering the fps
I just added an option to my game that makes it so that all the enemies will have a random color for their clothes instead of the regular blue. I use this code to draw rectangles over the shirt of the ...
8
votes
6answers
234 views
What's a good alternative to colored tiles to account for color blindness?
I have a game with tiles. Each tile is a number, and each number is one of six colors. The color is important to the game play, and I want to make the game available to those who are color blind.
...
0
votes
2answers
92 views
XNA change a specific color of a model to another
Is it possible to change a specific color of a model to another?
Example:
Everything that's blue should be red or something like that.
And is it possible to do this without the use of effects? I ...
3
votes
1answer
89 views
Rendering a black and white image in OpenGL 1.1
Is there is any way that I can simple disable the color in OpenGL 1.1? Or can I "grey out" textures in LWJGL?
2
votes
1answer
88 views
Get average tile color
In my 2D game I have TileSet class that loads the texture and creates Rectangle[] array which stores each tile coordinates. Pretty basic stuff. Now I'd like to also calculate and store the average ...
0
votes
0answers
113 views
Removing image background color?
I have a sprite sheet (image) and I want to draw it on the screen.
image = sprite sheet image
x = player x position
y = player y position
width = player width
height = player height
public class ...
0
votes
2answers
66 views
Changing colour while keeping gradient
I'm making a Flash game with ActionScript 3 and I have a square with a gradient applied to it. I am trying to programmatically changing the colour of the square depending on time, for example, some ...
0
votes
0answers
49 views
Make colour change depending on time
I'm making a Flash game (ActionScript 3) and for dynamics I'd like to make the background change colour depending on the clients' time of day.
I have a rough idea on how I want to do this,
At ...
2
votes
2answers
179 views
Implementing a color picker [closed]
I'm making a paint program using applets in Java, and I want to create some sort of color palette where the colors blend into each other, similar to this:
However, I'm having trouble understanding ...
1
vote
2answers
147 views
How (update,set, apply) dynamically color on a model of a XNA project?
I encounter a problem for set a background color on my model instantiated. I can change the texture but not change color.
Is there a parameter for change the color ? Or change the opacity ? I am ...
9
votes
1answer
281 views
How to achieve light that changes color mid-way?
I thought of creating light sources, and some colored windows. Now, the windows are semi-transparent. How could I make it so that when the light (say, pure white) hits the glass and continues through ...
1
vote
2answers
223 views
What is the color value of daylight?
This is a very short question. I want to implement ambient light in the color of daylight from the sun. What is the color value of sun light?
2
votes
1answer
57 views
Getting an instance of KX_PolygonMaterial in Blender
I've got a question concerning using Python in Blender's Game Engine.
Before I start I want to state that I'm trying to change the color of an object in Blender's game engine. To do this, I'm ...
156
votes
12answers
5k views
Is there an optimum set of colors for 10 players?
I need to identify 10 players with a unique color for each on the map. Is there an optimum set of 10 colors to use in this case? Every set I come up with has some colors too similar.
Update: I was ...
5
votes
1answer
138 views
2-components color model
RGB is the natural color model for OpenGL. But a lot of other color models exist.
For example, CMY(K) for printers, YUV for JPEG, the little cousins YCbCr and YCoCg, HSL & HSV from the 70's, and ...
0
votes
2answers
217 views
LWJGL - OpenGL - Texture shading
I want to use LWJGL to create a shader that all it does is change the color of the given texture. For example I tell it to draw the letter A using a sprite sheet then I can tell the shader to draw the ...
0
votes
1answer
245 views
Color Picking Troubles - LWJGL/OpenGL
I'm attempting to check which object the user is hovering over. While everything seems to be just how I'd think it should be, I'm not able to get the correct color due to the second time I draw ...
15
votes
5answers
1k views
Given a RGB color x, how to find the most contrasting color y? [duplicate]
Possible Duplicate:
Making a symbol appear on any colour
I have to mark a certain item in a way that will make it stick-out in the background. I need it to be surrounded with the color that ...
0
votes
2answers
279 views
gradient coloring of an object
I have an object(FBX format) in my project, it's a line drawn in 3D max. I want to color the line in XNA so that the color starts from a specific RGB color in both the start and end points of the line ...
0
votes
0answers
97 views
Direct X Vertex Coloring
So I've been messing around with directx 9 for the past few days, and I recently bump in a simple problem of vertex coloring. Can someone here with directx9 expirience solve this problem? I would ...
1
vote
1answer
220 views
Blending colors on Surfaces in PyGame?
So I'm making a game in Python and PyGame. I have aliens and blocks that each adopt one of several colors; rather than make several copies of them in different colors, I plan on making the sprite ...
0
votes
1answer
524 views
Slick2D: Changing an Image's colour to Color.white
I am working on a game where we would like the enemies to flash white when hit by a bullet. Ideally, we would like to use the same mechanism to render an Image in any colour. Our Images are all png ...
3
votes
1answer
586 views
*DX11, HLSL* - Colour as 4 floats or one UINT
With the DX11 pipeline, would it be much quicker for the vertex buffer to pass one single UINT with one byte per channel to the input assembler, as opposed to three floats? Then the vertex shader ...
6
votes
1answer
144 views
Excluding Background from Color Picking
I've implemented picking based on color coding, but I don't want the background color to be pickable. Is there any way in openGL (2.x) to exclude the background color? For some reason, doing ...
1
vote
3answers
429 views
How do you blend multiple colors in HSV (polar) color-space?
In RGB color space, you can do a weighted multiple-color blend by just doing:
Start with R = G = B = 0. Then we perform a blend at index i using a set of colors C, and a set of normalized weights w ...
2
votes
1answer
547 views
Apply Vertex Colors to XNA Spritebatch sprites
I know that you can use custom vertex and pixel shaders using SpriteBatch but I can't figure out how to apply colors to individual vertex points on a sprite generated by spritebatch. All I can do is ...
4
votes
2answers
412 views
Programatically replace color gradient on sprite
Say I have the following image:
I want to tint the yellow parts on this sprites shoulder/arms by a random color. In other questions on this site, they suggest using a chroma key and replacing the ...
2
votes
1answer
205 views
Shader and Custom Vertex Format Errors
I am creating an editor of sorts that allow you to create 3D voxel models. I just got started and have ran into a few errors. Here is what it is producing:
I think the problem has to do with the ...
-1
votes
2answers
250 views
Could a large number, such as 255.000255 be converted to it's RGB channels in a Shader language?
If I had a Vertex Shader constant holding one float value, like:
255.000255
Where: The first 3 numbers are actually red (255), next three are green (000), then the last three are blue (255).
... ...
2
votes
1answer
247 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 ...
3
votes
4answers
2k views
OpenGL gradient banding on Samsung Galaxy S2 Android phone
I've got a live wallpaper out on the market which uses OpenGL to render some basic shapes and a flat plane. The simple lighting creates a gradient effect across the plane, which looks fine on most ...
4
votes
2answers
2k 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?
-1
votes
4answers
892 views
How do you find the “best” color palette for a game?
If I want to make a 3D game, and I want all my textures to be 8 bit, to save RAM, that is 256 indexed colors, including "transparent", how do I choose the colors?
Is there any recommended pre-defined ...
0
votes
1answer
165 views
Image drawing tools (that aren't Photoshop) that work in the sRGB colorspace
I'm looking for a way to create sRGB raster images. Now, I could use Inkscape and just have it render to a raster format, but are there any image drawing tools other than Photoshop that work in sRGB?
...
1
vote
1answer
402 views
OpenGL ES Faces appear to be transparent when alpha is 1.0?
I am working on an object (OBJ File) loader for my app on iOS, currently I have successfully read the vertices and the faces of the object, and I am now just adding colours to the imported models.
I ...
4
votes
4answers
2k views
Fading to transparent with premultiplied alpha
I'm fading an object from fully visible to transparent, but the fade darkens the object.
this.Color = Color.Lerp(Color.White, Color.Transparent, weight);
The object does fade to transparent, but.. ...
2
votes
1answer
363 views
Hemicube algorithm d3d9 or d3d11, float valued colors
The hemicube algorithm renders the scene to 5 sides of a half-cube, from the perspective of each polygon.
Assume you place the hemicube around me and render to the 5 sides. The idea is, we can see ...
2
votes
1answer
282 views
Java how to color text without using JNI?
I am working on a small text-based game in Java. I am trying to understand the concept of how to color the output without needing to use JNI. C++ has the ability to modify the console directly and ...
2
votes
1answer
1k views
Programmatically set color of Box2D body's sprite or image
In my basic Cocos2D + Box2D iPhone app I have a bunch of circular Box2D bodies. I'd like to change the color of the circles programatically. What's the easiest way to do this?
So far I'm just ...
5
votes
2answers
814 views
How to change the sprite colors
In my rhythm game, I have a note object which can be of different colors depending on the note chart. I could use a sprite sheet with all the different color variations I use, but I would prefer to ...
6
votes
2answers
345 views
Making a symbol appear on any colour
I'm developing an RPG/roguelike-style game. Instead of having maps like:
.........
.........
....@....
...h.....
Oh look, a dwarf.
I was having solid background tiles, So sort of a tile based RPG ...