Tagged Questions
2
votes
1answer
87 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 ...
1
vote
2answers
146 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 ...
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
409 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 ...
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 ...