Editing Tutorial/Mug

From BRL-CAD

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 5: Line 5:
 
<b>1. Outside of the cup</b>
 
<b>1. Outside of the cup</b>
  
Use "eto" for the cup so that it will have more rounder edges and middle. Name it <i>cup.s</i>. Then after that,  adjust the shape's width and set the "D" if you want to make the edges and middle more rounder. Click "Apply" then to put some color on it, make it into a region first and named it <i>cup.r</i> then go to the Combination Editor and input "53 20 0" (dark brown color) on the Color GUI.
+
Use "eto" for the cup so that it will have more rounder edges and middle. Name it cup.s. Then after that,  adjust the shape's width and set the D if you want to make the edges and middle more rounder. Click "Apply" then to put some color on it, make it into a region first and named it cup.r then go to the Combination Editor and input "53 20 0" (dark brown color) on the Color GUI.
  
 
[[File:Outside cup.PNG|600px|]]
 
[[File:Outside cup.PNG|600px|]]
Line 11: Line 11:
 
<b>2. Handle</b>
 
<b>2. Handle</b>
  
Create <i>handle.s</i> and use "pipe" for the handle so you can bend it to a more unique shape than the torus by clicking the "Append Point" then select the parts of the handle you wanted to add new points with. Adjust the new points to the desired shape and position by clicking "Move Point" and click the place where you want the points to be moved. The problem on this is that the adjusted points leave creases on the shape which gives it a rougher appearance and needs a lot of adjustments to lessen the creases. Do the same way on how put color on <i>cup.r</i> only name the new region <i>handle.r.</i>
+
Create handle.s and use "pipe" for the handle so you can bend it to a more unique shape than the torus by clicking the "Append Point" then select the parts of the handle you wanted to add new points with. Adjust the new points to the desired shape and position by selecting "Move Point". The problem on this is that the adjusted points leave creases on the shape which gives it a rougher appearance and needs a lot of adjusments to lessen the creases. Do the same way on how put color on cup.r only name the new region handle.r.
 
   
 
   
[[File:Handle.PNG|600px|]]
+
 
  
 
<b>3. Inside of the cup</b>  
 
<b>3. Inside of the cup</b>  
  
To give it a white inside part, copy the shape of the outside cup (cp cup.s inside.s) and name it inside.s. Adjust its "r", and "Rotate C" until it is smaller and thinner than the outside cup. The space inside of the cup might now looked too small for a cup and also that <i>cup.r</i> would hide parts of <i>inside.s</i> so make a region of <i>cup.r</i> and <i>inside.s</i> as follows:
+
To give it a white inside part, copy the shape of the outside cup (cp cup.s inside.s) and name it inside.s. Adjust its r, and Rotate C until it is smaller and thinner than the outside cup. The space inside of the cup might now looked too small for a cup and also that cup.r  would hide parts of inside.s so make a region of cup.r and inside.s as follows:
  
r inside.r u inside.s - cup.r
+
r inside.r u inside.s - cup.r
 
   
 
   
[[File:Inside cup.PNG|600px|]]
+
 
  
 
<b>4. Rim</b>
 
<b>4. Rim</b>
 
   
 
   
Place a torus for a rim so that the white color would overlap the brown cup rim and give it a nicer appearance. Adjust "Radius 1" to fit it to the cup's circumference, and "Radius 2" to fit it to the cup's width.  After that make it into a region named <i>rim.r</i>.
+
Place a torus for a rim so that the white color would overlap the brown cup rim and give it a nicer appearance. Adjust Radius 1 to fit it to the cup's circumference, and Radius 2 to fit it to the cup's width.  After that make it into a region named rim.r.
 
+
[[File:Rim.PNG|600px|]]
 
  
 
<b>5. Base</b>
 
<b>5. Base</b>
  
Use "sph" for the base then set its "C" to make it flatter. Make it into a region named <i>base.r</i> then type "53 20 0" on the Color GUI in Combination Editor.
+
Use "sph" for the base then set its C to make it flatter. Make it into a region named base.r then type "53 20 0" on the Color GUI in Combination Editor.
 
 
[[File:Base.PNG|600px|]]
 
  
 
<b>6. Coffee (optional)</b>
 
<b>6. Coffee (optional)</b>
  
If you want to put coffee in your mug, use "rcc" then adjust its "H" "A,B" and "C,D" to fit in the cup. Name it <i>coffee.s</i>. Make it into a region and name it <i>coffee.r</i> then input "143 93 1" (light brown color) on the Combination Editor and set the Shader to "glass". Set the Mirror Reflectance to 0.05 to give it a liquid appearance and, to give it a more coffee-like appearance, set the Transparency to 0.1. The problem on setting the transparency to 0.1 rather than 0 is that the Command Window would "complain" on overlapping.
+
If you want to put a coffee in your mug, use "rcc" then adjust its H A,B and C,D to fit in the cup. Name it coffee.s. Make it into a region and name it coffee.r then input "143 93 1" (light brown color) on the Combination Editor and set the shader to "glass". Set the Mirror Reflectance to 0.05 to give it a liquid appearance and, to give it a more coffee-like appearance, set the Transparency to 0.1. The problem on setting the transparency to 0.1 rather than 0 is that the Command Window would "complain" on overlapping.
 
   
 
   
[[File:Coffee.PNG|600px|]]
 
  
 
<b>7. Combining all regions</b>
 
<b>7. Combining all regions</b>
  
Combine all the regions and name it <i>coffeemug.c</i> using this command:
+
Combine all the regions and name it coffeemug.c using this command:
  
comb coffemug.c u cup.r u inside.r u handle.r u rim.r u base.r u coffee.r
+
comb coffemug.c u cup.r u inside.r u handle.r u rim.r u base.r u coffee.r
  
or without <i>coffee.r</i>:
+
or without coffee.r:
  
comb coffemug.c u cup.r u inside.r u handle.r u rim.r u base.r
+
comb coffemug.c u cup.r u inside.r u handle.r u rim.r u base.r
  
 
<b>8. Raytracing the design</b>
 
<b>8. Raytracing the design</b>
Line 55: Line 51:
 
Now, Blast your design first before raytracing:
 
Now, Blast your design first before raytracing:
  
B coffeemug.c
+
B coffeemug.c
  
 
Then raytrace your design using the Raytrace GUI in the File Menu and, for best results, set the Background Color to white, the view in "az35,el25", and also the Framebuffer option to "Overlay".
 
Then raytrace your design using the Raytrace GUI in the File Menu and, for best results, set the Background Color to white, the view in "az35,el25", and also the Framebuffer option to "Overlay".
 
[[File:Raytrace1.PNG|600px|]]
 
 
with coffee
 
 
[[File:Raytrace2.PNG|600px|]]
 
 
without coffee
 

Please note that all contributions to BRL-CAD may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see BRL-CAD:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)