![](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Glass_Caustics_Preview.jpg)
Achieving a realistic render can be a challenging task, especially when re-creating a real-world object or scene. In this two-part tutorial, you learn how to build and render a realistic glass of water, complete with accurate caustics in Maya.
1. Modeling the Glass
Step 1
Create a new Maya project. Press the Spacebar to show the default views. We will start working with the side orthographic view.
![Maya_Realistic_Glass_PT1_1](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_1.jpg)
Step 2
To create the glass, we'll start with a CV Curve. Go to Create > CV Curve Tool.
![Maya_Realistic_Glass_PT1_2](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_2.jpg)
Step 3
Press X to snap the first vertex of the curve to the center (as shown in the image) and continue creating vertices for the shape of the glass.
![Maya_Realistic_Glass_PT1_3](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_3.jpg)
Step 4
End the CV Curve at the center of the view, it is important that the start and end vertices are aligned, as shown.
![Maya_Realistic_Glass_PT1_4](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_4.jpg)
Step 5
Select the curve and from the Surfaces menu, go to Surfaces > Revolve and click on the Options Box to open the tool settings.
![Maya_Realistic_Glass_PT1_5](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_5.jpg)
Step 6
The Revolve Options menu will open. Set the Axis preset to Y,
End sweep angle to 360, Output geometry to NURBS and then click on the Revolve button.
End sweep angle to 360, Output geometry to NURBS and then click on the Revolve button.
![Maya_Realistic_Glass_PT1_6](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_6.jpg)
Step 7
This is how the glass should look after the revolve. If we needed to modify the shape of the glass, we could simply change the curve, because the NURBS object is still connected.
![Maya_Realistic_Glass_PT1_7](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_7.jpg)
Step 8
In this step, we will delete the glass history. After this the shape of the glass will no longer be affected by the CV Curve. Go to Edit > Delete by Type > History.
![Maya_Realistic_Glass_PT1_8](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_8.jpg)
Step 9
Since the curve is no longer connected, we can Delete it from our scene.
![Maya_Realistic_Glass_PT1_9](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_9.jpg)
Step 10
We need to convert our glass to a polygon object, because later on we will set up UVs for the textures. Select the glass and go to Modify > Convert > NURBS to Polygons and click on the Options Box.
![Maya_Realistic_Glass_PT1_10](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_10.jpg)
Step 11
The options box will open, generally selecting Control points as the Tessellation method should work well enough. Then click on the Tessellate button.
![Maya_Realistic_Glass_PT1_11](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_11.jpg)
Step 12
We will end up with two glasses, a NURBS and a polygons object. Now we can safely delete our NURBSfrom the scene.
![Maya_Realistic_Glass_PT1_12](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_12.jpg)
Step 13
To smooth out the polygon glass, we need to press the 3 on the keyboard, while the object is selected. Now we have an exact copy of our old NURBS object.
![Maya_Realistic_Glass_PT1_13](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_13.jpg)
Step 14
With the glass selected, go to Edit > Delete by Type > History.
![Maya_Realistic_Glass_PT1_14](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_14.jpg)
Step 15
We should start organizing the scene by naming our objects. With the glass selected, open the Attributes Editor and change the name of the object to something recognizable.
![Maya_Realistic_Glass_PT1_15](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_15.jpg)
2. Creating the Table
Step 1
Now well create the table for the scene, go to Create > Polygon Primitives > Cylinder.
![Maya_Realistic_Glass_PT1_16](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_16.jpg)
Step 2
A Cylinder should appear in the scene.
![Maya_Realistic_Glass_PT1_17](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_17.jpg)
Step 3
With the Scale Tool, scale the cylinder until it has the shape of a table.
![Maya_Realistic_Glass_PT1_18](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_18.jpg)
Step 4
In the side view, we need to align the table with the glass using the Move Tool.
![Maya_Realistic_Glass_PT1_19](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_19.jpg)
Step 5
Now open the Attributes Editor of the Cylinder, here we will increase the Subdivisions Axis to 40, in order to get a round table.
![Maya_Realistic_Glass_PT1_20](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_20.jpg)
Step 6
As we did before with the glass, we should also name this object.
![Maya_Realistic_Glass_PT1_21](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_21.jpg)
3. Creating the Environment
Step 1
Now we're going to create a Sphere that will be the environment for render. Go to Create > Polygon Primitives > Sphere.
![Maya_Realistic_Glass_PT1_22](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_22.jpg)
Step 2
The Sphere will be created, but it will be much smaller then what we need.
![Maya_Realistic_Glass_PT1_23](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_23.jpg)
Step 3
Select the Sphere and with the Scale Tool, increase its size until it surrounds all the objects.
![Maya_Realistic_Glass_PT1_24](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_24.jpg)
Step 4
With the Sphere still selected, open the Attribute Editor and change its name.
![Maya_Realistic_Glass_PT1_25](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_25.jpg)
4. Adding the Water
Step 1
Now we're going to create the water in the glass, go into the side orthographic view.
![Maya_Realistic_Glass_PT1_26](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_26.jpg)
Step 2
As we did with the glass, we need to create a CV Curve. Go to Create > CV Curve Tool.
![Maya_Realistic_Glass_PT1_27](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_27.jpg)
Step 3
Zoom in, in the side view and start creating the curve following the inside shape of the glass. Remember to snap the first vertex to the center.
![Maya_Realistic_Glass_PT1_28](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_28.jpg)
Step 4
Finish the curve with both the start and end vertices aligned.
![Maya_Realistic_Glass_PT1_29](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_29.jpg)
Step 5
With the new curve selected and while in the Surfaces menu, go to Surfaces > Revolve and click on the Options box.
![Maya_Realistic_Glass_PT1_30](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_30.jpg)
Step 6
This will open the Revolve Options. Remember to set the Axis preset to Y and the End sweep angle to 360, this will make the revolve a full circumference. Also set the Output Geometry to be NURBS, and finally click on Revolve.
![Maya_Realistic_Glass_PT1_31](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_31.jpg)
Step 7
Now you'll have the water object inside the glass. If the shape of the water does not match perfectly with the glass, you can adjust it by moving the vertices of the original CV Curve.
![Maya_Realistic_Glass_PT1_32](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_32.jpg)
Step 8
When you are done adjusting the shape, select the water object and go to Edit > Delete by Type > History.
![Maya_Realistic_Glass_PT1_33](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_33.jpg)
Step 9
After deleting the history, the curve will be disconnected from the object and now we can Delete it safely.
![Maya_Realistic_Glass_PT1_34](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_34.jpg)
Step 10
Select the water object and open the Attribute Editor to change its name.
![Maya_Realistic_Glass_PT1_35](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_35.jpg)
5. Lighting the Scene
Step 1
Now, we need to set up the lighting for our scene. We'll start by creating an Area Light. Go to Create > Lights > Area Light.
![Maya_Realistic_Glass_PT1_36](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_36.jpg)
Step 2
Select the area light we just created.
![Maya_Realistic_Glass_PT1_37](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_37.jpg)
Step 3
To position our light, while in the View menu, go to Panels > Look Through Selected.
![Maya_Realistic_Glass_PT1_38](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_38.jpg)
Step 4
This will change our view to be the position of the light. Change the view until you're looking towards the scene from the top, on a slight angle.
![Maya_Realistic_Glass_PT1_39](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_39.jpg)
Step 5
Now we need to get back to our perspective view. In the View menu, go to Panels > Perspective > persp.
![Maya_Realistic_Glass_PT1_40](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_40.jpg)
Step 6
Select the Area Light, open the Attribute Editor and change its name.
![Maya_Realistic_Glass_PT1_41](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_41.jpg)
Step 7
We need to create another light, this time we'll create a Spotlight. Go to Create > Lights > Spot Light.
![Maya_Realistic_Glass_PT1_42](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_42.jpg)
Step 8
Select the Spotlight we just created.
![Maya_Realistic_Glass_PT1_43](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_43.jpg)
Step 9
We'll set its position as we did with the area light. In the View menu, go to Panels > Look Through Selected.
![Maya_Realistic_Glass_PT1_44](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_44.jpg)
Step 10
Position the light in a similar position as showed in the image.
![Maya_Realistic_Glass_PT1_45](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_45.jpg)
Step 11
We need to get back to our perspective view. In the View menu, go to Panels > Perspective > persp.
![Maya_Realistic_Glass_PT1_46](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_46.jpg)
Step 12
We'll now create a third light. Go to Create > Lights > Spot Light.
![Maya_Realistic_Glass_PT1_47](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_47.jpg)
Step 13
Again, select the Spotlight we just created.
![Maya_Realistic_Glass_PT1_48](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_48.jpg)
Step 14
We'll set its position as before. In the View menu, go to Panels > Look Through Selected.
![Maya_Realistic_Glass_PT1_49](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_49.jpg)
Step 15
Position this light higher than the other Spotlight.
![Maya_Realistic_Glass_PT1_50](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_50.jpg)
Step 16
We need to get back to our perspective view once again. So from the View menu, go to Panels > Perspective > persp.
![Maya_Realistic_Glass_PT1_51](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_51.jpg)
Step 17
Your lighting setup should now look similar to the one in the image.
![Maya_Realistic_Glass_PT1_52](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_52.jpg)
6. Adding the Camera
Step 1
Now we need to have a main camera for our render. Go to Create > Cameras > Camera.
![Maya_Realistic_Glass_PT1_53](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_53.jpg)
Step 2
You'll see the new camera created, now select the Camera.
![Maya_Realistic_Glass_PT1_54](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_54.jpg)
Step 3
Go to the Attribute Editor and change its name.
![Maya_Realistic_Glass_PT1_55](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_55.jpg)
Step 4
With the camera still selected, and while in the View menu, go to Panels > Look Through Selected.
![Maya_Realistic_Glass_PT1_56](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_56.jpg)
Step 5
This will set our view to be our main camera.
![Maya_Realistic_Glass_PT1_57](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_57.jpg)
7. Render Settings
Step 1
Click on the Resolution Gate button in the View menu. This will let us see the limits of our render with the current resolution.
![Maya_Realistic_Glass_PT1_58](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_58.jpg)
Step 2
Next open the Render Settings.
![Maya_Realistic_Glass_PT1_59](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_59.jpg)
Step 3
In the Common tab, change the Renderable Camera option to the main camera, and the Image Size Presetto whatever resolution you would like to render the final image. For this tutorial, we'll work with the HD 720preset. Finally close the render settings
![Maya_Realistic_Glass_PT1_60](https://cdn.tutsplus.com/cg/uploads/2013/11/Maya_Realistic_Glass_PT1_60.jpg)
Conclusion
Now with our resolution set, we can position our camera like so. In the next part, we'll add realistic materials and textures to the scene, set up caustics and adjust render settings.
Comments
Post a Comment