WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Lighting relevant text? (https://forum.worldviz.com/showthread.php?t=3385)

knightgba 01-26-2011 07:13 AM

Lighting relevant text?
 
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.


All times are GMT -7. The time now is 04:48 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC