![]() |
Outputting one material channel to another |
Post Reply
|
| Author | |
Makbeth
Member
Joined: 2007 Dec 21 Online Status: Offline Posts: 4 |
Post Options
Quote Reply
Topic: Outputting one material channel to anotherPosted: 2010 Jun 29 at 2:51am |
|
Hi guys,
I'm approaching the end of an animation project, and I'm attempting to animate a material for a flow effect. The effect is a glowing liquid that relies on a series of bitmaps that drive the alpha and luminance channels, and layered gradients will control the local strength of each. The data in the alpha and luminance>colorizer shader needs to be the same at all times. I thought that I would be able to use Xpresso to import the alpha's output to the colorizer shader in luminance, but for some reason Xpresso doesn't support inputing actual texture data to ANY material channels or shaders at all. It's the first use of Xpresso with materials that I would have thought should be allowed, but where this key feature should be, there is a giant hole in the software. I have some experience with text-based scripting in other software, but I don't have time to learn the particulars of Coffee for this project. Is it possible to output the alpha to a colorizer shader with COFFEE? What would the code look like? It only has to be good enough to make the luminance colorizer match the alpha of this material for the duration of the animation. I would think that it's a matter of just saying ~ Colorizertexture=alphatexture and whatever other stuff is needed to identify the material and initialize whatever needs initializing. If anyone can help or point out what I need to do that would be awesome. Thanks. |
|
![]() |
|
affa
Member
Joined: 2005 Mar 03 Location: Germany Online Status: Offline Posts: 68 |
Post Options
Quote Reply
Posted: 2010 Jun 29 at 11:37pm |
|
perhaps you want to have a look at our Reference Shader
http://blackstar-solutions.de/index.php?id=4 Edited by affa - 2010 Jun 29 at 11:38pm |
|
![]() |
|
Post Reply
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |