Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > RenderMan interface > Re: Referencing...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 745 of 788
Post > Topic >>

Re: Referencing a `normal` array element?

by Rick LaMont <lamont@[EMAIL PROTECTED] > Sep 15, 2007 at 08:02 PM

<kungfuelmosan@[EMAIL PROTECTED]
> wrote:
>     color CN = color( NN[0], NN[1], depth(P) );
> 
> that should work right?

Try:

    color CN = color( xcomp(NN), xcomp(NN), depth(P) );

Accessing point components as arrays is possible in some newer versions
of some implementations.  However it's not in the RenderMan spec and
certainly isn't a ****table way to write shaders at this time.


Rick LaMont
Dot C Software, Inc.
http://www.dotcsw.com/
 




 3 Posts in Topic:
Referencing a `normal` array element?
kungfuelmosan@[EMAIL PROT  2007-09-15 03:47:26 
Re: Referencing a `normal` array element?
Rick LaMont <lamont@[E  2007-09-15 20:02:48 
Re: Referencing a `normal` array element?
Olivier3001@[EMAIL PROTEC  2007-09-17 06:21:26 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 12:01:41 CST 2008.