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: Curve Norma...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 770 of 788
Post > Topic >>

Re: Curve Normals?

by "noizFACTORY@[EMAIL PROTECTED] " <noizFACTORY@[EMAIL PROTECTED] > May 30, 2008 at 02:15 AM

On May 29, 5:53 pm, Olivier3...@[EMAIL PROTECTED]
 wrote:
> On May 29, 2:11 am, "noizFACT...@[EMAIL PROTECTED]
" <noizFACT...@[EMAIL PROTECTED]
>
> wrote:
>
> > While this is expected, it won't let me achieve the desired effect. I
> > searched through the net for info and what I learnt was that I need to
> > ex****t surface normals data for the curves to orient them correctly at
> > render time. Is that possible for curves? If so, how would I go about
> > doing that?
>
> Just like other primitives, you attach the "N" variable to it:
> Curves "cubic" [4] "nonperiodic"
>   "P" [-0 0 0 -0.2 1 0 0.2 2 0 -0.1 3 0]
>   "N" [0.3 0 -1 0.7 0 -1]
>
> Note that N is varying, not vertex.

Thank you for the reply Olivier.

For a curve system generated by a package like Shave and A Haircut or
Maya Hair, how do you think I can go about attaching the N variable to
the output curves? Would I do that using the delightGeoAttributes node
(as I'm using 3dfm)?
I'm looking to replicate the following method that's suggested in the
MayaMan help docs:

The special name Width is specified then the curve is given width data
that will change over the length of the curve. If you use the special
name Normal then the curve is given normal data. All other names are
passed unfiltered. Vector arrays, other than Normal, are passed as an
array of colors which is convenient when the data name is Cs,
conversion to any other data type is trivial to handle in the shader.

To set width and normal data on a open nurbs curve with 5 control
points execute a mel script like this:

	setAttr MayaManAttributes1.MayaManCurveWidth -type doubleArray 5 1 2
3 2 1
	setAttr MayaManAttributes1.MayaManCurveNormal -type vectorArray 5 0 1
0 0 0 1 0 -1 0 0 0 -1 0 1 0

-Sachin
 




 3 Posts in Topic:
Curve Normals?
"noizFACTORY@[EMAIL   2008-05-28 23:11:45 
Re: Curve Normals?
Olivier3001@[EMAIL PROTEC  2008-05-29 05:53:32 
Re: Curve Normals?
"noizFACTORY@[EMAIL   2008-05-30 02:15:10 

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:08:29 CST 2008.