View Full Version : Cloth Nurbs question
JoelOtron 08-15-2008, 02:05 AM i have a tube which I am using cloth nurbs to add thickness too over time. i would like to know if theres a way to apply a texture to just the extruded surface generated by the cloth nurbs. So the original tube is one color and the thickness is another.
i was thinking maybe there is a selection tag name I can enter into the selection field (like can be done with sweep nurbs, etc for adding a texture to just the caps and rounding--ie: C1, C2, R1, R2).
|
|
wesware
08-15-2008, 04:13 AM
The only way I could do it was to have a normal direction shader in the original color's alpha... then make the cloth nurbs extrusion negative to expose the inside of the the polys for the interior color. You have to adjust the polys with normal move = to the distance of the Cloth Nurb extrusion.
Link to file (http://www.wesart.com/downloads/CN2color.sit)
Hope that helps?
wesware
08-15-2008, 04:20 AM
Or invert normals and set the Cloth Nurbs to a negative number... the alphaed texture would be second in the material tag hierarchy.
Sorry if I'm not seeing an obviously easy version of what I'm proposing... I'm working late on a job that is kicking my ass... and I'm tired :P
JoelOtron
08-15-2008, 04:33 AM
Thanks Wes----quite clever!
Now the question is --how to get the texture ONLY on the extruded edge (the walls creating the thickness) Unfortunately I think that would not be possible.
Thanks again---
the orange/brown tube in the image below is actually a "flat" tube. The cloth nurbs is what is giving it thickness--and it needs to thicken more and more over time. Ideally I would have another material for the cross section. I think I could do it using a 3d gradient in the alpha of a second layered material---so the gradient moves back on the Z. That could work...
JoelOtron
08-15-2008, 05:01 AM
Or invert normals and set the Cloth Nurbs to a negative number... the alphaed texture would be second in the material tag hierarchy.
Sorry if I'm not seeing an obviously easy version of what I'm proposing... I'm working late on a job that is kicking my ass... and I'm tired :P
Glad Im not the only one :)
(well--not glad for you...)
wesware
08-15-2008, 05:17 AM
Hi!
Couldn't you just do a PLA track on a normal move? Of course you'd have to make your cloth nurbs editable.
wesware
08-15-2008, 05:20 AM
Ok, the real question is... why do you need to keep the Cloth Nurb? So it's non-destructive? I can understand that.
JoelOtron
08-15-2008, 05:35 AM
YES--cloth nurbs really made this setup more manageable.
The shape of the tube changes much as well. It was easier to create morph targets on the simpllified tube and then add the cloth nurb shell as a separate controller for the secondary thickening.
I could have done it all with pla--but would have been tricky and less forgiving as client changes come back. C4d offers so many ways to keep things parameteric, controllable and changeable--I try to take advantage of that as much as I can.
In the end--i think it will be fine if I cant apply the material to the cross section like I hoped--I was curious if theres something in the cloth nurbs that might have easily allowed this.
wesware
08-15-2008, 06:35 AM
Cool, I feel your pain man.
100 ways to do it but what's gonna give you the best way to tweak it later on.
I'd have to know your complete situation to really give you an answer... sounds like you have it covered though. :)
Based on this little thread sounds like we are kindred spirits.
Whatever it takes to get the effect... and if it's a stand alone modular effect...I'm gonna use it again. Sometimes we find a golden nugget that applies to that elusive perfect file that renders all objects and environments with perfection... whatever that paradigm might be. (Did that make sense...I used the word "paradigm" without looking it up... didn't even spell check it. Oh well.
wesware
08-15-2008, 06:36 AM
Side note: Sometimes you just have to surrender... and make it editable :)
Thanks Wes----quite clever!
Now the question is --how to get the texture ONLY on the extruded edge (the walls creating the thickness) Unfortunately I think that would not be possible.
Thanks again---
the orange/brown tube in the image below is actually a "flat" tube. The cloth nurbs is what is giving it thickness--and it needs to thicken more and more over time. Ideally I would have another material for the cross section. I think I could do it using a 3d gradient in the alpha of a second layered material---so the gradient moves back on the Z. That could work...
JoelD
not sure if this is what you want to do... but if you do a live bool to the end of the tube the end will take on the other texture.... in this case the cube in the image is brown and the tube red ish....
as you animate the tube as long as the cube bool covers the new shape you will get changed surface...
JoelOtron
08-15-2008, 01:30 PM
JoelD
not sure if this is what you want to do... but if you do a live bool to the end of the tube the end will take on the other texture.... in this case the cube in the image is brown and the tube red ish....
as you animate the tube as long as the cube bool covers the new shape you will get changed surface...
Thanks leed--yes--I could do it that way---but since Im running the cloth nurbs trhough a HN then though a displacement deformer (and then back thru one more HN to smooh the bump) it wouldnt work so well. I needed to get a softer cross section--and booles dont work well with HN.
Appreciate the help
I just realized on the drive in this morning I can just use the falloff shader to keep the material on the +Z only.
Thanks for the 2AM c4d wisdom Wes. Mr. Mayagi couldnt have said it better himself.
I have an issue, however with the (correctly used) word paradigm. At a job I once worked at, we were all handed memos on our way into a meeting one day which was titled "A NEW PARADIGM". Seemed interesting and exciting! That is...until we found out in that meeting that this new paradigm was that we were ALL being laid off at that moment BUT now had the oppurtunity to do the same work for less money as freelancers. Those of us in that room that day still joke around with each other about "New Paridgms" wherever we see them. :)
CGTalk Moderation
08-15-2008, 01:30 PM
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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.