Re: slow friday

Date : Fri, 20 Jan 2006 15:42:05 +0000
To : XSI(at)Softimage.COM
From : Alan Jones <skyphyr(at)gmail.com>
Subject : Re: slow friday
hehe yeah - but I think the color to scalar conversion does pretty much what you're after - just not sure if it's an average of RGB or a weighted average.

Though that still doesn't change we need to basics covered better.

Cheers,

Alan.

On 1/20/06, kim aldis <kim(at)cg-soup.com> wrote:
One of the annoyances of the intensity node is that it does just what you want - turns rgb into intensity - but then outputs an rgb instead of a scalar.
 
We need more basic nodes. !!!!


From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Alan Jones
Sent: 20-January-2006 15:24
To: XSI(at)Softimage.COM
Subject: Re: slow friday

yeah - I know what you mean - I've wanted one that just overwrites the alpha of an input a few times. I consider writing it as it's really simple. Then I decide I can't be arsed as it wouldn't be used often enough to justify 10 minutes of dev..... damn I'm lazy.

Grab the shader wizard in 5. It's in the plugins manager under the new entry.

call them inputColor of type color and inputAlpha of type scalar. The code you want is:

miColor color = *mi_eval_color(&params->inputColor);
miScalar alpha = *mi_eval_scalar(&params->inputAlpha);

*result = color;
result->a = alpha;

return miTRUE;

Cheers,

Alan.

On 1/20/06, Chris Marshall <chris(at)eclipsecreative.co.uk> wrote:
yeah, but that takes 4 inputs!
I want two colour inputs, one for the rgb, the other (which is a black and white rgb image) for the alpha.


Stefan Andersson wrote:
Color_Channels -> RGBA_Combine

regards
stefan andersson


On 1/20/06, Chris Marshall <chris(at)eclipsecreative.co.uk> wrote:
Hi All,
Brain not working here.
In the render tree, I have two rgb sources. I want to combine these so
that the first becomes the rgb and the second becomes the alpha of the
combined rgba colour. How do I do this without using any of the

Illumination nodes ie. Phong, Lambert etc?
This is probably a stupid question, so sorry in advance!
Thanks
Chris


---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi

--
________________________________________________________________________
http://stefan.sanders3d.com/
http://os3d.blogspot.com/ --- Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi

--- Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body: unsubscribe xsi



Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.