Create Carpet in Maya and Mental Ray Tutorial

carpet rug maya tutorial

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

TYPE: Free maya tutorial

CATEGORY: Modeling, Rendering Maya, render Mental Ray, Fur, Hair

STATUS: Available since 16 Feb 2014




Create carpet in Maya and Mental Ray tutorial (Maya Modeling and Render Tutorial)

Create carpet in maya tutorial, rug render tutorial

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 belive me? Just follow my tutorial and enjoy your own personal carpet! 

Let's get started!


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 PATCH

Collect the filaments in a single carpet patch.
You can make bigger or smaller patches, this will influence the level of detail of your carpet: big patches could make your carpet boring but very fast in render and manipulation, small patches 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 patch to mental ray proxy (just take a look to 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 PATCH

Open your destination scene and import the carpet patch, be sure to rename the carpet patch 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 PATCHES

Select the patch 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 PATCHES

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 PATCHES

Now the crucial step: randomize the carpet patches. This script will allow you to make a nice looking carpet removing the pattern repetition of the patches.
 
1) Select any carpet patch (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 PATCHES


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

Select the carpet patches 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 PATCHES

Create a base patch 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 PATCHES

Place the carpet border patches 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 patches and filaments... you won't regret making capets with Maya fur! 



Happy rendering!
Antonio



create Carpet in Maya and Mental Ray video tutorial (not yet avaible)


Related Maya Tutorials and 3D Models :

 

Maya Mental Ray Proxies tutorial: let's render billions of polygons!

Mental Ray proxies in Maya Tutorial

Maya integrates a Mental Ray feature that makes you able to render billions of polygons. It's an easy and very effective way to populate your scenes with thousands of objects like plants and trees without overload your system. Your CPU, your RAM and your girlfriend will thank you because of the time you can save with this trick!

TYPE: Free maya tutorial

CATEGORY: Rendering Maya, render Mental Ray

STATUS: Avaible since 05 April 2013

 

Setting up a Renderfarm in Maya and Mental Ray (Distributed Rendering)

Distributed rendering in Mental Ray and Maya

Maya and Mental ray are one of the most used 3d graphic production platforms over the world. One of the reasons is their easy and very powerful multi-platform distributed rendering capabilies. Have you ever wonder to speed up you render speed even in preview render window by 2x 4x 8x and so on? Just follow my Mental Ray distributed rendering guide.

TYPE: Free maya tutorial

CATEGORY: Rendering Maya, Hardware, Mental Ray

STATUS: Available since 19 February 2013

 

 

 

 

Comments   

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

yuval
Quote
 
 
0 #4 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
 
 
0 #5 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
 
 
+1 #6 Antonio Bosi 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
 
 
+1 #7 yuval 2014-02-17 08:15
hi thare
many thanks for your stuff.
you all can use this link to faster the process of the modeling:http://www.turbosquid.com/3d-models/free-patch-carpet-scatter-3d-model/587690

it's a carpet obj ready to use!
great week all of you
yuval
Quote
 
 
0 #8 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
 
 
0 #9 Antonio Bosi 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
 
 
0 #10 heathtata 2014-02-19 01:16
:lol: :lol: thanks
Quote
 
 
0 #11 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
 
 
0 #12 Antonio Bosi 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
 
 
0 #13 rembolex 2014-05-02 22:29
okay i did it but still error
Quote
 
 
0 #14 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
 
 
0 #15 Antonio Bosi 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
 
 
0 #16 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
 
 
0 #17 Widhi Okdwiyanto Dewangga 2014-05-10 17:23
:lol: hi rembolex
I think u have to try to rename your cubes that are have a mental ray proxy connection inside, become like carpet1, carpet2, ecc..
it's not about carpet.mi
thanks! :D
Quote
 
 
0 #18 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
 
 
0 #19 Antonio Bosi 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 seem a sort of bug....it's a simple material assignment so everything should work fine!
Quote