Model and texture a photorealistic usb cable with maya and mental ray
-
Upload
sandra-montoya -
Category
Education
-
view
49 -
download
1
description
Transcript of Model and texture a photorealistic usb cable with maya and mental ray
![Page 1: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/1.jpg)
Model and Texture a Photorealistic USB Cable with Maya and Mental Ray: Part 1
In this tutorial you will go through the process of modeling and rendering a
Photorealistic USB cable in Autodesk Maya. You will also learn to use Mental Ray,
along with the new architectural materials, rendering layers, and Photoshop, to
create a fast, accurate, and photorealistic depth of field. This is part 1 of the
tutorial: the modeling process.
Step 1 Create a primitive cube and scale it to match the size of a USB.
![Page 2: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/2.jpg)
Step 2 Under the “Polygons” menu, go to the “Edit Mesh > Insert Edge Loop Tool".
Step 3 Create 2 edge loops.
![Page 3: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/3.jpg)
Step 4
Select 8 vertexes from the end of the geometry, and with the scale and move tools,
modify the geometry to match the basic shape of a USB.
Step 5
This is how it should look (depending on the type of USB cable you are trying
model).
![Page 4: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/4.jpg)
Step 6
Select the front face of the USB.
![Page 5: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/5.jpg)
Step 7
With that same face still selected, go to “Edit Mesh > Extrude”, and create an inner
face.
![Page 6: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/6.jpg)
Step 8
Once again, go to “Edit Mesh > Extrude”, and extrude the face inward a bit.
![Page 7: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/7.jpg)
Step 9
Go to “Edit Mesh > Insert Edge Loop Tool", and add some edges, to create a new
face on the top of the USB.
![Page 8: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/8.jpg)
Step 10
Select the new face, then go to “Edit Mesh > Extrude”, and extrude the face slightly
inward.
![Page 9: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/9.jpg)
Step 11
Go to “Edit Mesh > Insert Edge Loop Tool”, and create 16 edges on the side of the
USB.
![Page 10: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/10.jpg)
Step 12
Select 16 faces from the 32 you just created (every other one).
![Page 11: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/11.jpg)
Step 13
With those faces selected, go to “Edit Mesh > Extrude”, and extrude the faces
inward as shown.
![Page 12: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/12.jpg)
Step 14
Scale the shape of the faces to make them smaller on the vertical axis.
![Page 13: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/13.jpg)
Step 15
This is how it should look on both sides.
![Page 14: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/14.jpg)
Step 16
Go to “Edit Mesh > Insert Edge Loop Tool”, and create 2 edges on the sides of the
USB. If you get a problem like the one in the image, just go to the next step.
![Page 15: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/15.jpg)
Step 17
Go to “Edit Mesh > Split Polygon Tool”, click on the beginning of the line you want
to create, and once again at the end. Do this for both edges, and for both sides of
the USB.
![Page 16: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/16.jpg)
Step 18
Select all of the small faces that you just created on the sides of the USB, then go
to “Edit Mesh > Extrude”, and extrude those faces inward.
![Page 17: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/17.jpg)
Step 19
You should have something that looks like this.
![Page 18: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/18.jpg)
Step 20
Go to “Edit Mesh > Split Polygon Tool”, and to “Edit Mesh > Insert Edge Loop
Tool”. Using both tools as necessary, create edges at every hard angle change of
the USB (use the images as reference).
![Page 19: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/19.jpg)
![Page 20: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/20.jpg)
Step 21
When you are finished, select the USB object and simply press number 3 on your
keyboard to smooth it. Then just sit back and watch how nice the smoothed USB
looks.
![Page 21: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/21.jpg)
Step 22
Now, create a primitive cube, position it, and scale it to fit inside the USB.
![Page 22: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/22.jpg)
Step 23
Go to “Edit Mesh > Extrude”, and extrude the front face of the metal connector.
![Page 23: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/23.jpg)
Step 24
Once again, go to “Edit Mesh > Extrude”, and extrude the face inward.
![Page 24: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/24.jpg)
Step 25
Go to “Edit Mesh > Insert Edge Loop tool”, and create 2 edge loops through the
middle of metal connector.
![Page 25: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/25.jpg)
Step 26
Select the small faces you just created, then go to “Edit Mesh > Extrude”, and
extrude them slightly inward.
![Page 26: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/26.jpg)
Step 27
Go to “Edit Mesh > Insert Edge Loop tool”, and create some new edges to make 2
faces at the top of the connector.
![Page 27: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/27.jpg)
Step 28
Go to “Edit Mesh > Extrude”, and extrude the 2 faces inward.
![Page 28: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/28.jpg)
Step 29
Select the 2 faces and delete them to create 2 holes.
![Page 29: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/29.jpg)
Step 30
Now you are going to use a different method to smooth the object (this method can
only be used with simple geometry).
Go to “Edit Mesh > Bevel”, set the 'Width' to '0.6' (this will depend on how smooth
you want the object to be, and also the size of the object). Also, set the 'Segments'
to 1, the 'Offset type' to 'Fractional', the 'Offset space' to 'World', and the 'UV
assignment' to 'Planar project per face'.
![Page 30: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/30.jpg)
Step 31
Now simply press number 3, and you should see some nice edges.
![Page 31: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/31.jpg)
Step 32
Make a primitive cube, and fit it inside the metal connector.
![Page 32: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/32.jpg)
Step 33
Go to “Edit Mesh > Bevel”, to smooth the cube.
![Page 33: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/33.jpg)
Step 34
Go to the “Create > EP Curve Tool”, and set the 'Curve degree' to '3 cubic' (this will
create a nice curve).
![Page 34: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/34.jpg)
Step 35
Draw the cable as shown.
![Page 35: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/35.jpg)
Step 36
Select the control vertexes of the curve and adjust them to your liking.
![Page 36: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/36.jpg)
Step 37
This is how my curve looks, but you can make yours any way you like.
![Page 37: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/37.jpg)
Step 38
Make a primitive cylinder, and scale the diameter to match your cable.
![Page 38: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/38.jpg)
Step 39
Move the cylinder to the end of the curve.
![Page 39: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/39.jpg)
Step 40
Scale the cylinder to match the length of the cable.
![Page 40: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/40.jpg)
Step 41
Increase the 'Subdivisions Height' to at least 300.
![Page 41: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/41.jpg)
Step 42
Select the cylinder, press “shift”, and then select the curve (the order in which you
select the objects is very important).
Now, with the objects selected, go to “Animate > Motion Path > Attach to Motion
Path" (in the “Animation” menu).
![Page 42: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/42.jpg)
Step 43
Move the time line to check if the object is moving properly.
![Page 43: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/43.jpg)
Step 44
Now we need to make the cylinder distort around the curve.
So, with the cylinder selected, go to “Animate > Motion Paths > Flow Path Object”.
![Page 44: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/44.jpg)
Step 45
With the deformer you just created selected, change the 'T Divisions' to '400', and
the cylinder should be following the curve smoothly.
![Page 45: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/45.jpg)
Step 46
To hide the deformers, go to “Show > Deformers” in the little menu on top of
perspective view.
![Page 46: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/46.jpg)
Step 47
Now create a primitive plane for the floor.
![Page 47: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/47.jpg)
Step 48
To attach the cable to the USB, just create a primitive cylinder, and position it as
shown.
![Page 48: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/48.jpg)
Step 49
In the “Polygons” menu, go to “Edit Mesh > Insert Edge Loop Tool”, and make
some edges around the cylinder.
![Page 49: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/49.jpg)
Step 50
Select the faces that you want to extrude, then go to “Edit Mesh > Extrude”, and
extrude them inward.
![Page 50: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/50.jpg)
Step 51
Create a primitive cylinder (this will be the thick portion of the cable).
![Page 51: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/51.jpg)
Step 52
Change the “Subdivisions Axis” to '50'.
![Page 52: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/52.jpg)
Step 53
Go to “Edit Mesh > Insert Edge Loop Tool”, and insert to 4 edges (2 on each side).
![Page 53: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/53.jpg)
Step 54
Select the vertexes at the end of the cylinder and scale them.
![Page 54: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/54.jpg)
Step 55
Do the same for the opposite side.
![Page 55: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/55.jpg)
Step 56
Go to “Edit Mesh > Insert Edge Loop tool”, and insert some edges at the hard
angles of the cylinder.
![Page 56: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/56.jpg)
Step 57
Make sure it's the same for both sides.
![Page 57: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/57.jpg)
Step 58
Create small cylinders and position them were you want the holes to be.
![Page 58: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/58.jpg)
Step 59
Select the 4 cylinders, and go to “Mesh > Combine”.
![Page 59: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/59.jpg)
Step 60
Now you need to create some geometry for the holes (this is very important,
because if you don´t do it, the hole could have some errors).
![Page 60: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/60.jpg)
Step 61
Select the big cylinder, press “shift”, and then select the small cylinders. Go to
“Mesh > Booleans > Difference”.
![Page 61: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/61.jpg)
Step 62
This is how it should look (little holes without glitches). If you do get any problems,
just move the edges around until they disappear.
![Page 62: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/62.jpg)
Step 63
Now position the cylinder where you want it to be.
![Page 63: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/63.jpg)
Step 64
Select the front faces from both sides.
![Page 64: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/64.jpg)
Step 65
Go to “Edit Mesh > Extrude”, and extrude the faces to make a smaller circle.
![Page 65: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/65.jpg)
Step 66
Select the new faces, go to “Edit Mesh > Extrude” and extrude them inward.
![Page 66: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/66.jpg)
Advertisement
Step 67
This is how it should look (I have hidden the floor so you can see the results
better).
![Page 67: Model and texture a photorealistic usb cable with maya and mental ray](https://reader034.fdocuments.net/reader034/viewer/2022051109/549e6389b37959d7618b468d/html5/thumbnails/67.jpg)
Step 68
For the background, I used a cloth included in a tutorial from the “Digital Tutors”
series. You can check it out here: http://www.digitaltutors.com
.