The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
1answer
93 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 ...
204
votes
12answers
10k 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 ...
7
votes
2answers
242 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
350 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
423 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 ...
17
votes
5answers
3k 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
402 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 ...
1
vote
0answers
149 views

Direct X Vertex Coloring [closed]

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 ...
2
votes
1answer
408 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
932 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
1k 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
168 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
915 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 ...
3
votes
1answer
797 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
519 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
266 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
310 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
267 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
3k 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 ...
7
votes
3answers
7k 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
2k 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 ...
1
vote
1answer
200 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
479 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 ...
6
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
429 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
531 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 ...
7
votes
2answers
1k views

How do I change a sprite's color?

In my rhythm game, I have a note object which can be of a different color depending on the note chart. I could use a sprite sheet with all the different color variations I use, but I would prefer to ...
7
votes
2answers
462 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 ...