Create Carpet Rug in Maya Tutorial

Posted by Antonio
Hits: 25839

BLOG

Maya has many powerful tools to create your own carpet / rug, you just need to choose the way you want to create it! In this maya carpet / rug creation tutorial we will see a simple and effective tecnique to build your own realistic carpet in Maya and Mental Ray using polygon modeling, mental ray proxies and simple mel scripting! Enjoy it

TYPE: Free maya tutorial
CATEGORY: Modeling, Render Maya, render Mental Ray


INTRO

Are you tired of boring carpets made of fast textures and bump maps?
If so you are going to learn a fast and powerful way to create REAL carpets in Maya and Mental Ray.
Forget about heavy dispalcement maps and slow fur/hair computation... your going to build a very optimized and fast renderable carpet!
Don't you believe me? Just follow my tutorial and enjoy your own personal carpet!


STEP 1: CREATE BASE FILAMENTS FOR CARPET

Create some basic meshes to create the base filaments of your carpet: this is crucial for the overall appeal of your carpet.
You can take inspirations from google to get your personal shape (curly, traight, furry, etc...). 


I create these basic shapes using a cylinder primitive then I bent and rotated them a little...just to make them less boring  


make carpet in maya tutorial: base shape




STEP 2: CREATE A CARPET BUNCH

Collect the filaments in a single bunch.

You can make bigger or smaller bunches, this will influence the level of detail of your carpet:
big bunches could make your carpet boring but very fast in render and manipulation,
small bunches will produce very high-detailed carpets but the manipulation and the render time could increase to much. 


make carpet in maya tutorial: carpet patch




STEP 2.1: COMBINE ALL AND CREATE A MENTAL RAY PROXY

I advise you to convert the created bunch to mental ray proxy (just take a look at my Maya Mental Ray proxy tutorial),
this will give you many benefits in therms of memory, cpu and system usage. 


make carpet in maya tutorial: carpet mental ray proxy




STEP 3: RENAME CARPET BUNCH

Open your destination scene and import the carpet bunch, be sure to rename the carpet bunch to "carpet" .
This step is essential to make the maya mel script work properly .


make carpet in maya tutorial: rename 01make carpet in maya tutorial: rename carpet




STEP 4: CREATE FIRST ROW OF CARPET BUNCHES

Select the bunch and create the first row using the duplicate special command.
Copy my settings but don't forget to adjust the "translate" and "number of copies" value to match the size of your carpet.


make carpet in maya tutorial: create first row

make carpet in maya tutorial: create carpet patch row


 

STEP 5: CREATE SECOND ROW OF CARPET BUNCHES

Now select the row you just created and repeat the duplicate special command,
just change the number of copies and the direction (translate value)


make carpet in maya tutorial: create second row




STEP 6: RANDOMIZE CARPET BUNCHES

Now the crucial step: randomize the carpet bunches.
This script will allow you to make a nice looking carpet removing the pattern repetition of the bunches.
 
1) Select any carpet bunch (it could take some maya thinking time)
2) Open the script editor (WINDOWS --> GENERAL EDITORS --> SCRIPT EDITOR).


make carpet in maya tutorial: open maya script editor

Copy my script in the text area and then COMMAND window --> EXECUTE

 

make carpet in maya tutorial: carpet mel script

This is the result:

 

make carpet in maya tutorial: random carpet patches

RANDOMIZED MAYA CARPET BUNCHES


STEP 7: ASSIGN A BASIC MENTAL RAY MATERIAL TO THE CARPET

Select the carpet bunches and assign a basic material: I'd go for a mia_material_passes with white diffuse channel, 0 reflections and a bit of transulcency (see the settings below)


make carpet in maya tutorial: carpet mental ray material




STEP 8: CREATE CARPET BORDER BUNCHES

Create a base bunch for the border of the carpet (using the same filaments you modelled at the beginning of the tutorial) and export them.


make carpet in maya tutorial: carpet border patches




STEP 9: PLACE CARPET BORDER BUNCHES

Place the carpet border bunhes manually and randomize their look (scale and rotation)


make carpet in maya tutorial: carpet border creation


You should get something like that:


make carpet in maya tutorial: carpet complete

  



STEP 10: FINAL TOUCHES

Once you finish to create the carpet, just add some objects in the environment to enhance the detail of the overall scene and le jeux sont fait!

Create carpet in maya tutorial, rug render tutorial
 

FINAL WORDS:

Creating carpets and rugs in Maya & Mental Ray can be very challenging. The natural way to make them is using maya fur system, but If you don't have a a life time to complete your renders you should consider making carpets with a clever use of polygons, instances and mental ray proxies (as we did in the tutorial above). If you want more detail go with more complicated bunches and filaments... you won't regret making capets with Maya fur! 



Happy rendering!
Antonio

 

Comments   

#1 -1 JERRY THOMSON 2013-11-21 17:07
HEY MAN. IT'S BEEN QUITE A WHILE EXPECTING FOR YOUR UPDATE OF THIS TUTORIALS MAN.

PLEASE?
Quote
#2 -1 Antonio B 2013-12-04 09:20
Hi Jerry, hope to find some free time soon!
Quote
#3 -1 yuval 2014-01-26 18:36
hey antonio
so how long we need to wait?
your stuff are precious and very valuable.

yuval
Quote
#4 -1 Alexii 2014-01-29 22:02
Hey. Great stuff, you have one of the best renders I've seen. Looking forward to see this tutorial.
Thank you.
Quote
#5 -1 James Sky 2014-02-15 02:49
Wow, I just have to say, THANK YOU. Yours are not probably, they are the BEST Mental Ray tutorials I've seen yet. They're short, sweet, and to the point. Thank you, a million times thank you, and can't wait to see what you come out with next!
Quote
#6 +1 Antonio B 2014-02-17 00:10
Hi all guys, thanks a lot for the support!! It's much appreciated :-)
Hope you enjoy this last tutorial, feel free to make any question!! Antonio
Quote
#7 +1 yuval 2014-02-17 08:15
hi there
many thanks for your stuff.

great week all of you
yuval
Quote
#8 0 heathtata 2014-02-17 13:06
thanks for your TUTORIAL

the only problem is that i can't see the MEL clearly
can you copy that for us
Quote
#9 0 Antonio B 2014-02-18 14:51
Quoting heathtata:
thanks for your TUTORIAL

the only problem is that i can't see the MEL clearly
can you copy that for us


Hi I cant' put text mel code in the html web page :sad:, so I uploaded a better image! Hope you can see it clearly!
Antonio
Quote
#10 0 heathtata 2014-02-19 01:16
:lol::lol:thanks
Quote
#11 0 rembolex 2014-05-02 20:54
so i did the execute action but maya gives a error.

Error: line 3: More than one object matches name: carpet1 //

the script is correct. help!!
Quote
#12 0 Antonio B 2014-05-02 21:18
Hi rembolex, open the outliner and look for more than "carpet1" objects. You should have just objects with names like "capet1 ; carpet2 ; carpet3 ; carpet4; ecc..."
Antonio
Quote
#13 0 rembolex 2014-05-02 22:29
okay i did it but still error
Quote
#14 0 rembolex 2014-05-02 23:01
so i checked everything in the script editor and i saw that i had the same error when i did duplicate special
Quote
#15 0 Antonio B 2014-05-03 07:36
I think there's something wrong in your maya (preferences, plugins or other), because the error is clear "More than one object matches name: carpet1" so you must have another object with that name, you can find in the outliner.
Quote
#16 0 rembolex 2014-05-03 09:57
so i did the everything in the tutorial again and it did help, i still get the error but the script is working. thank for the reply btw
Quote
#17 0 Widhi Okdwiyanto Dew 2014-05-10 17:23
:lol:hi rembolex
I think u have to try to rename your cubes that have a mental ray proxy connection inside, become like carpet1, carpet2, ecc..
it's not about carpet.mi
thanks! :D
Quote
#18 0 yuval 2014-05-22 19:08
hi antoni,
i'm trying to assign material to the patch and nothing happend' it's stay with the lambert grey color Unchanged .
did i miss something in the "export" workflow?
need your help
Quote
#19 0 Antonio B 2014-05-30 17:22
Quoting yuval:
hi antoni,
i'm trying to assign material to the patch and nothing happend' it's stay with the lambert grey color Unchanged .
did i miss something in the "export" workflow?
need your help


It seems some kind of bug....it's a simple material assignment so everything should work fine!
Quote
#20 0 CoreyMihu 2015-05-09 01:55
--------IN RESPONSE TO rembolex--------

I know this is two years later but for anyone using this tutorial today, I ran into and fixed the same issue as rembolex had. It was honestly as simple as checking the capitalization.

Yep.
Quote
#21 0 Jamie 2015-05-29 19:29
Hi Antonio,
I'm a GAD student at AIA (game art design)
and I'm learning new things to do on Maya
and I followed your instructions all the way to the "execute" section & then I got this

http://tinypic.com/r/535xrm/8
I don't know what to do.
Quote
#22 0 Antonio B 2015-05-31 03:38
Hi Jamie, are you sure to have done step3 correctly? I see a lot of pCubes in the outliner....
Quote
#23 0 Riley Keen 2015-06-02 19:13
thank you!
Quote
#24 0 Jamie 2015-06-05 15:59
Hi Antonio,

yea I went back to look at it, I corrected the problem now I'm getting the "more then one carpet1" error.
Quote
#25 0 ProfParsec 2015-07-09 23:33
For anyone getting the Error "more than one object named carpet 1", I ran into the same problem and had it fixed after going back to one spot.

When using the duplicate special operation, I had the Geometry type set as copy and Group under as Parent.
Whereas in the image in the tutorial, it's set as Geometry type: Instance and Group under: World. It worked just fine after that, so hopefully that's the issue.
Quote
#26 0 jeff 2015-07-20 06:52
Amazing! I tried a lot of these tutorials myself!Thanks for this compilation of great tutorials. It really helped me get over the learning for Maya all tools.
Quote
#27 0 ProfParsec 2015-08-10 21:41
Quoting Antonio Bosi:
Quoting yuval:
hi antoni,
i'm trying to assign material to the patch and nothing happend' it's stay with the lambert grey color Unchanged .
did i miss something in the "export" workflow?
need your help


It seems some kind of bug....it's a simple material assignment so everything should work fine!


Alright, I experienced the same issue. I went back into my original .ma file and edited the material there and it automatically updated in my proxy scene after I saved over the proxy carpet.mi file.

My guess is that newer versions of Maya have more export settings that enable it to only reference the original file and won't render a new material on the proxy in any other scene (even though it will allow you to apply them). I don't know which it is, and updating the original file is a pain, but that's the only fix I can find.
Quote
#28 0 sayan 2017-01-04 00:28
hello
i think your the king of maya
or your are the lord of maya in the world
i hope you succeed in all part in your life
Quote
#29 0 Andrea 2017-04-01 09:03
Hi Antonio.
I use Maya 2017 and i'm a beginner. About "carpet tutorial", how do you mean by "Collect the filaments in a single carpet patch" ?? Combine all filaments in a single polygon?
P.s.: are you italian?
Quote

Add comment

Security code Refresh