1
$\begingroup$

I'm getting the hang of the animation tools for blender, but I need to add colour to my scenes, but I'd like to make the colours for my already existing animations, and future ones.

So I'd like my idle animation to pick one colour then the corresponding animation to be that same colour, and when the idle animation appears again a new random colour appears.

picture of idle

This is picture of idle character, but the idea is a player flicks the character at the world behind him, and splats on the surface, but I'd like to add in some colour, and It needs to be a random colour, each time the idle is reset.

enter image description here

So I need to add a random colour to the idle character, and the same colour to the corresponding animation, because the character goes in different direction, depending on which way the player flicks the character.
Thank you R.D

$\endgroup$
  • $\begingroup$ It's hard to guess how your animations look like and which color you want to change, could you add an image of your animation and rephrase the question based on what we see in the image. $\endgroup$ – stacker Oct 11 '14 at 9:27
  • $\begingroup$ or is the problem more of a programming one? $\endgroup$ – Rohan Dooley Oct 11 '14 at 10:53
  • $\begingroup$ Thanks for adding the images, you could achieve something similar by keyframing the color. This would work because you just want to render an animation. Otherwise I guess you would need to write python code in order to dynamically add colors (this approach would also work in a game). $\endgroup$ – stacker Oct 11 '14 at 11:08
  • $\begingroup$ After reading your text again, I noticed that you mention a player. Does this mean that you want to create something in the game-engine? $\endgroup$ – stacker Oct 11 '14 at 13:05
  • $\begingroup$ Thank you, I am also having a problem, with having the character flatten when it hits the world object. any advice would be great. $\endgroup$ – Rohan Dooley Oct 11 '14 at 13:16
1
$\begingroup$

You could create vertex-groups for each ring that should get another color when when hit by the character like this:

enter image description here

Assign each ring its own material with the same color at the beginning. When the character hits the background object determine which polygon has been hit by a technique described here: How do I make a weapon shoot at the center of the screen? find the face hit by the character and set the material's color to a random color, this would change the color of faces (because all of the them share this material).

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.