PDA

View Full Version : Lighting relevant text?


knightgba
01-26-2011, 07:13 AM
Hi, guys

I am trying to implement a lighting relevant text effect but not quite sure

Basically the "lighting relevant text means" the text's color is be decided by the lights in the scene depends on the text's orientation (Assume the text spins)
L1 L3

Text(Spins)

L2 L4

My idea is giving different ambient values to the text based on calculating the orientation value(use text.getAlignment?) of the text node every frame.

Appreciate any advice, cheers

Jeff
01-26-2011, 05:33 PM
You could use the getEuler() command to get the orientation of the text object every frame.