Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Maya Basics & Newbie Lounge (https://simplymaya.com/forum/forumdisplay.php?f=31)
-   -   Revolver cylinder (https://simplymaya.com/forum/showthread.php?t=33747)

n88tr 11-02-2010 09:11 PM

Revolver cylinder
 
I'm trying to create the holes in my revolver cylinder. Doing a little research on other forums I have figured out I should use the inset function to create a face within a face and then extrude my hole for the cartridge. I cannot find the function in my version of maya, 2009 unlimited. I will continue to search but if anyone can help me it would be greatly appreciated. Thanks.

jsprogg 11-02-2010 10:22 PM

i dont think there is such a tool as insert in Maya, perhaps they mean insert edge loop tool. You could also use the split polygon tool to create the holes, another option is to use a boolean but i wouldnt personally recomend this method as you will have less control and some cleaning up to do after.

ctbram 12-02-2010 04:10 AM

Well I don't really know why people think booleans are so hard to control.

Here is my test case, but I forgot to save the boolean parts before deleting history...

http://i181.photobucket.com/albums/x...r_cylinder.jpghttp://i181.photobucket.com/albums/x...inder_wire.jpg

But that is okay because I then used google image to look at revolver cylinders and found that a lot of them have an indent in the sides so it gave me a chance to do an even more complex boolean. The whole operation took me about 5 minutes to set up, boolean, and clean up.

http://i181.photobucket.com/albums/x..._booleaned.jpghttp://i181.photobucket.com/albums/x...eaned_wire.jpg

Booleans are not the evil that many would have you believe. You just have to think about what you are doing.

Even I goof up. After booleaning I realized I would have been better served to use a 12-side polygon for the outer cylinder since there are 6 holes and 6 indents. It was not hard to fix though as you can see at step 3 I just pulled the center vertices for the indented bits out using a 12-sided cylinder as my guide. (actually I just did 1 segment and then deleted everything else and made 5 copies rotating by 60 degrees for each copy). Even having to do all that, it still took me 5 minutes to complete the task.

ctbram 12-02-2010 06:00 AM

1 Attachment(s)
Just in case it helps. Here is the .ma file...

jsprogg 12-02-2010 07:07 AM

Hi Ct ..for an experienced user booleans are pretty easy to control but for a new user it can be hell on earth if they dont know the pitfalls ..hehe

gster123 12-02-2010 08:13 AM

Quote:

Originally posted by jsprogg
Hi Ct ..for an experienced user booleans are pretty easy to control but for a new user it can be hell on earth if they dont know the pitfalls ..hehe

Very Very true. I would not recommend boolians to a new user. I would only intro them later on when they understand topology and when and where to use them.

daverave 12-02-2010 11:42 AM

I think the sooner you understand how to clean the mesh after using a boolean the better, there is not anough tutorials out there to explain how to do this..............dave

ctbram 12-02-2010 01:35 PM

yeah, I hear you P.

I started out doing only nurbs modeling. Back at maya 3 that was the primary way to model in maya. Machines back then could not handle the number of polygons that they can today and nurbs models were easier for systems and graphics cards to digest vs. lots of polygons.

Anyway, in the old nurbs method of modeling booleans and trims and fillets were used extensively and so I had an opportunity to learn all their quirks.

When I moved to polygon modeling I just naturally gravitated to using polygon booleans as I would use them in nurbs modeling. Polygon booleans have a whole new set of issues vs nurbs booleans that I had to figure out but I would say that in the end they were still worth learning to use.

I would really like to see better integration between nurbs and polygon modeling tools in maya. For instance it would be nice to project curves on poly surfaces, and take trimmed and filleted nurbs surfaces and convert them seamlessly to polygons.

Anyway, I hope the model and screen shots helped for the revolver cylinder and if anyone would like to see a camtasia video of the process just let me know and I will toss something together.

G-Man 12-02-2010 04:49 PM

would be nice to project curves onto poly surfaces.
But you can make an object live and draw curves on it, which can achieve similar results.

there is also a mel script on Creative crash that will allow you to create curve from edge on a poly model,
basically to will allow you to create two curves and do a fillet across two pieces of geometry that are crammed into each other for a seamless integration between to.

G-man

Dekulon 13-02-2010 07:38 PM

can i see the camtasia video please ?

ctbram 14-02-2010 01:48 AM

1 Attachment(s)
Okay I will post a link to a video tutorial on how to make the revolver cylinder using booleans.

I have the capture done I am just editing it and adding a sound track.

In this version I start with a 12-sided cylinder for the main cylinder and 6-sided cylinders for the holes and the indents. Why 12 and 6? Well I find a 6 sided polygon is about the smallest number of sides you can use to make a round cylinder when smoothed. Keeping the number of edges as low as possible will reduce the amount of cleanup we will need to do.

I chose 12-sided for the main cylinder because there are 6 holes and 6 indents so by choosing 12-sides I have either a hole or an indent at each of the cylinders 12 corners.

When smoothed everything will be nice and round.

Here is a screen shot of the new version and the original version...

http://i181.photobucket.com/albums/x...ooleaned_2.jpghttp://i181.photobucket.com/albums/x...ned_2_wire.jpg

Here is the .ma file with both versions...

I will have a link to the video tutorial shortly.

Cheers

ctbram 14-02-2010 03:14 AM

Here is a link to a video I quickly tossed together on how to make the revolver cylinder using booleans as a guide, I hope you find it helpful.

Cheers,
ctbram

http://www.screencast.com/t/ZWExZDU2ZGQt

Notes:

1. It is best to delete history and freeze transforms before doing your boolean

2. Avoid short edges or small near zero surface area faces.

3. If your boolean gives unexpected results or your objects disappear completely check for:

a. flipped normals (turn off two sided lighting is a fast way to check for this)
b. make sure geometry is completely intersecting through at least one full polygon
c. clean history, freeze xforms
d. be sure geometry is manifold (no edges connecting more then exactly 2 polygons, no bow-tie geometry ie edges that intersect but have no vertex at the intersection, and finally no flipped normals)

4. Think about the geometry that will be created after the boolean and avoid creating near parallel edges that are right next to each other or faces with near zero surface area or edges with near zero length or vertices that are co-resident.

5. Remember you can use history after your boolean. To get the cutting pieces visible again so you can adjust them go to the hypergraph and find the hidden shape nodes and make them visible again (shift-h).

6. Don't go crazy with booleans, but also do not fear to use them! They can help you to get a start on a complex form and you can always just use the resulting shape as a template and build on top of it if it proves to hard to clean up.

Experiment with booleans to learn their quirks. Try to keep the shapes of the objects as simple as possible, ie if you are planning to smooth you don't need gazilian-sided objects (this is something you should think about all the time. Use as little geometry as possible to get the shape desired.)

Just a general note - Always think about edge flow. Try to keep the geometry simple and flowing smoothly around the model. don't be afraid to add edge loops to even out the polygon distribution, shore up corners and help smoothing interpolation.

Note on HOLES...

Sometimes when booleaning an object you will get holes in a surface. Maya considers any edges contained within a polygon face that have no connection to an OUTER edge as a "hole". A common error that can be quite frustrating is to attempt to fix the problem by cutting an edge from the hole to an outer edge on the polygon. Maya will print a nasty message and refuse to allow you to do this. The best solution is to just delete the entire face (like the end caps of this cylinder example) and then use bridge or append to polygon to systematically rebuild the entire face.

And one last thing...

Remember symmetry is your friend! Don't be afraid to destroy what seems to be most of your model and just work on the smallest symmetric part and then rebuild.

I hope some will find this little tutorial is helpful and it makes folks a little less intimidated by booleans. They can be quite a time saver if used for good and not for evil! (smile)

ctbram 14-02-2010 10:11 AM

1 Attachment(s)
As long as I was at it I modeled a bit more of the revolver cylinder based on some of the references I got from google images.

http://i181.photobucket.com/albums/x...ooleaned_3.jpghttp://i181.photobucket.com/albums/x...ned_3_wire.jpg
http://i181.photobucket.com/albums/x...ned_solo_3.jpghttp://i181.photobucket.com/albums/x...ed_solo_3_.jpg

Here is the .ma file in case anyone might find it useful...

ctbram 14-02-2010 12:30 PM

Tossed some mental ray shaders on things...

http://i181.photobucket.com/albums/x...ned_solo-3.jpg

daverave 14-02-2010 01:53 PM

Another lovely little tutorial ctbram and what speed you model, wish I was half as fast............dave


All times are GMT. The time now is 02:52 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018