Color by object position??


#1

Hello.
Is there any shader that would convert object position to RGB?
I don’t mean the rendered point position but the rendered object xyz position.
I’m asking because I’m trying to create moss on the bottom of rocks that are scattered an rotated.
Because they are rotated I can’t map locally because moss limit is horizontal regardless of object rotation.
If I could have a solid color by object representing it’s position (blue would be z value) I could use warptexture to move a world ZX mapped map to move to object position

Any ideias of a better way to do this?
Thanks

PS: I’m evaluating the use of vraydistancetex but I think it would be too slow rendering because its a large surface scattered with many rocks


#2

would this do the trick:

http://forums.cgsociety.org/showthread.php?f=6&t=1069616


#3

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.