SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Lounges / Maya Basics & Newbie Lounge / Liquid in a container with booleans
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 13-12-2006, 03:04 AM   #1
Zefiris
Registered User
 
Zefiris's Avatar
 
Join Date: Mar 2006
Location: Germany # B-W # S. Gmünd
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Liquid in a container with booleans

Hi there,

when searching for info on how to create a liquid in a container I often find the answer "use booleans". Actually even the official Maya tuts say so. Well, I tried lots of containers. Having a simple glass and a cube around it got me this result:


What I actually need is an object that fits inside the glass, as you might have guessed.
Could anyone tell me if I do things wrong? Or could anyone pm me on how this is done right? Actually I'd prefer it to be posted here in the thread, so more ppl wondering about this stuff can see it. Hopefully I'm not the only one getting that problem ;D


-- Zefi
__________________
www.fallofmankind.de

It's a small world but not if you have to clean it.
Zefiris is offline   Reply With Quote
Old 13-12-2006, 04:45 AM   #2
enhzflep
Subscriber
 
enhzflep's Avatar
 
Join Date: Oct 2006
Location: Melbourne
Posts: 313
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Man, you're soo close!

1) Create your tumbler in polygons
2) Copy this tumbler and move it off to the side
3) Create a cube that encompasses the bottom of the glass
4) Select the glass, then the cube & do booleans->Difference
5) Select this block and do Polygons->Seperate
6) Delete the bottom chunk
7) Move the copy of the glass back to the origin

Simon.

In a picture:
Attached Thumbnails
Click image for larger version

Name:	booleanglass.jpg
Views:	86
Size:	15.9 KB
ID:	31798  
enhzflep is offline   Reply With Quote
Old 13-12-2006, 07:54 AM   #3
mirek03
Subscriber
 
mirek03's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 2,752
Thanks: 0
Thanked 3 Times in 3 Posts
Default

then what?? soft bodies?? caustics?? intersting this! never seen this, thought fluids were 2D or 3D containers scaled to suit?? unless you're not using fluids??

live and learn, '.., and i think to myself what a wonderful world '
__________________
take it easy and life will be easy
mirek03 is offline   Reply With Quote
Old 13-12-2006, 08:08 AM   #4
Joopson
Registered User
 
Joopson's Avatar
 
Join Date: Jul 2005
Location: Los Angeles, CA
Posts: 2,313
Thanks: 1
Thanked 33 Times in 33 Posts
Default

no, looks like thats not fluids mirek...

but yes, caustics and other things will help make it look real anyway...


idk, maya fluids seem a bit low tech IMHO compared to realflow or even Glu3D. hopefully they fix that in the next maya version...


anyway, i would actually just use a nurbs circle with the use of surfaces>planar, and do that, or do a custom curve and do surfaces>revolve, but thats just me ^_^

anyway, nice job on figuring that out enhzflep


cheers ,
Andy
__________________
Environment Artist @ Plastic Piranha
www.joopson.com
Joopson is offline   Reply With Quote
Old 13-12-2006, 08:27 AM   #5
mirek03
Subscriber
 
mirek03's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 2,752
Thanks: 0
Thanked 3 Times in 3 Posts
Default

yea, thought the same thing myself, maybe import a texture map via surface sculpt tool and animate it, or a soft body with a bit of turbulance, ect, direction blah blah??

but yea, good detective work from Simon., bool;eans, i thought they were great once but now, well, anything can happen lol?
__________________
take it easy and life will be easy
mirek03 is offline   Reply With Quote
Old 13-12-2006, 01:39 PM   #6
gster123
Moderator
 
gster123's Avatar
 
Join Date: May 2005
Location: Manchester Uk
Posts: 6,300
Thanks: 1
Thanked 51 Times in 45 Posts
Default

I know this might sound mad but maya fliuds are not really suited to making fluids, there better for fire, smoke, clouds, explosions etc.

If you want to make a liquid (say a glass of water) then I would create the "liquid" as a poly object and then use softbodies on the surface
__________________
"No pressure, no diamonds" Thomas Carlyle
gster123 is offline   Reply With Quote
Old 13-12-2006, 01:50 PM   #7
mirek03
Subscriber
 
mirek03's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 2,752
Thanks: 0
Thanked 3 Times in 3 Posts
Default

yea, thats my piont, couldn't agree more, even the fluids maya is good for isn't good for, they can be faked easier, the fire is not to bad but considering sprite render and fluids render time, well..?? I would probably go the sprites, any takes on that??
__________________
take it easy and life will be easy
mirek03 is offline   Reply With Quote
Old 13-12-2006, 02:08 PM   #8
gster123
Moderator
 
gster123's Avatar
 
Join Date: May 2005
Location: Manchester Uk
Posts: 6,300
Thanks: 1
Thanked 51 Times in 45 Posts
Default

yeah if you want realism then sprites are the way (as you map real images to them) so you cant get better than a real image!

I really think that using a combination of particles and fluids gives very good explosions smoke etc (T3 I think used fluids for the nuclear explosions at the end)

You could use particles with fields on each so they dont go over the top of each other (the playback speed isnt too bad i've found) even with lots of fields) if you want it to pour. (maybe with the blobby particle surface...)

Just another thought
__________________
"No pressure, no diamonds" Thomas Carlyle
gster123 is offline   Reply With Quote
Old 13-12-2006, 02:20 PM   #9
mirek03
Subscriber
 
mirek03's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 2,752
Thanks: 0
Thanked 3 Times in 3 Posts
Default

yea, i'd go the particls and fluids combo, sprites and blobby surface or streaks (whatever they are`called) and these days would probably try and render them for composite.

specially good for explosions as you have pionted out. might do a WIP on it soon. (when the computer comes back )

so we have pinned down another area of contention
__________________
take it easy and life will be easy
mirek03 is offline   Reply With Quote
Old 13-12-2006, 03:10 PM   #10
Zefiris
Registered User
 
Zefiris's Avatar
 
Join Date: Mar 2006
Location: Germany # B-W # S. Gmünd
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally posted by enhzflep
Man, you're soo close!

1) Create your tumbler in polygons
2) Copy this tumbler and move it off to the side
3) Create a cube that encompasses the bottom of the glass
4) Select the glass, then the cube & do booleans->Difference
5) Select this block and do Polygons->Seperate
6) Delete the bottom chunk
7) Move the copy of the glass back to the origin

Simon.
Simon you're the best! Though I'm wondering why you got that result by doing difference, and i got it by intersection.
I guess the Maya tuts said 'Difference' too, but I get different results with that.. but thanks man. Polygons -> Separate is some nice thing.

@others - I never used fluids much as they take a hella time to render and most particles are unrenderable for me cuz my gCard doesn't support hardware rendering.
__________________
www.fallofmankind.de

It's a small world but not if you have to clean it.
Zefiris is offline   Reply With Quote
Old 13-12-2006, 04:17 PM   #11
enhzflep
Subscriber
 
enhzflep's Avatar
 
Join Date: Oct 2006
Location: Melbourne
Posts: 313
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Cool, no worries Zefiris.

That's weird that we had to use different tools to get the same result. As long as the result's the same, then who cares i guess.

On a side note (EDIT: that turned out rather long )
Just today, I picked up a _really_ cheap video card, as in $51 australian - at Dick Smith of all places!

It's a Legend Radeon 9550, so it's got an ATI gpu. Sure it's by no means a firegl7350, but I just bought it to get something a bit faster than the onboard intel 865 stuff I had.

Turns out it's really quite a lot faster just for 2d stuff and modelling, I can turn on hardware shading in the viewport and get 10 or more fps with near identical quality to what I can generate a single frame in 2 seconds using Software Render.

It'll also do particles too. :bandit:

As for render times, tried on a scene I've got here and how does 13 seconds vs 2 mins and 26 seconds sound?

Though Hardware Render doesn't like subds too much - they just don't appear!(they do in the viewport, but not the render) Nor do shadows look too spectacular, nor is there any glow where there is with a software render. But still, it's helped more than I thought it would with modelling already and for the price, I reckon it's not too bad.

Thanks gster123 for the soft bodies tip. It's sure going to look a whole lot better than my crappy attempts with software particles thus far. Nice one.

Simon.

edit: thanx for the kind comments one and all.

Last edited by enhzflep : 13-12-2006 at 04:22 PM.
enhzflep is offline   Reply With Quote
Old 13-12-2006, 05:12 PM   #12
Zefiris
Registered User
 
Zefiris's Avatar
 
Join Date: Mar 2006
Location: Germany # B-W # S. Gmünd
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yeah well, I guess anything is better than my Radeon 8500 .

And I got some problems with the shadow when I use caustics on a glass with a liquid object in it. By simply using ray trace shadows it turns out fine, but if you want to add photons to make the shadow appear more realistic the shadow turns out fully opaque and not transparent as it did without caustics. I'll post the renders in a bit, as I closed Maya and now have to render the stuff again.

EDIT: Here's the stuff..
RayTrace w/o caustics:

Standard caustics:

Better caustics with more refractions, max depth and photon intensity:

And here's some phenomenon i just figured ;D
It looks like there're bubbles in the liquid, though I didn't add any.


Hope someone knows how to make a nice looking caustics shadow with this.

-- Zefi
__________________
www.fallofmankind.de

It's a small world but not if you have to clean it.

Last edited by Zefiris : 13-12-2006 at 05:40 PM.
Zefiris is offline   Reply With Quote
Old 14-12-2006, 04:08 AM   #13
enhzflep
Subscriber
 
enhzflep's Avatar
 
Join Date: Oct 2006
Location: Melbourne
Posts: 313
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, the only time I've played with caustics so far was to do a tute I found. Don't know how much use it'll be, but here 'go: http://www.interstation3d.com/maya/t...troduction.htm

Simon
enhzflep is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.