PDA

View Full Version : filling an object ?


kaas
11-27-2002, 06:17 PM
hi , i want to fill a bottle with a fluid but i cannot find a tutorial or a help file that explain how to do it. i am a starter with maya but i want to learn it. who knows a little bit about it ?

i want to fill like this :

beaker
11-27-2002, 06:19 PM
Just make a copy of the bottle and scale it down a little and then just color it brown. Cut off the top part where the liquid isn't at.

kaas
11-27-2002, 06:21 PM
thanks !

(B-HOLM)
11-28-2002, 06:26 AM
would it be possible to use some of those Maya liquids instead? 'cause Beaker's idea wouldn't be to good at animating...would it?

Kabab
11-28-2002, 07:03 AM
maya fluids can't do that as yet..

lowkey
11-28-2002, 07:16 AM
you could use 'traditional' particles to do that.

1.create an emiter
2.set the particle object to collide with the surface of your bottle.
3.attach 'gravity field'
4.start animation
5.go, drink a cup of coffee
6.set 'render type' to i.e. blobby and assign an adequate material

regarding this technique, i wonder if there's a method to freeze some initial state for the emitted particles.

:shrug:

i saw a pretty handy function called 'buzz' in nextLimit's RealFlow, which allows the simulation to start, without having to start the entire animation itself.

so one can wait until the particles have reached the density and come to rest in a state one likes and then start the animation from that point onwards.

if anyone knows how to achieve this inside of maya, please let me know. :thumbsup:

ps:
you've just become witness of smart 'thread-hijacking' ! ;)
sorry about that.

lowkey
11-28-2002, 07:36 AM
i know it's dumb, but i just figured out how to solve that 'initial state' issue myself ! :wip:


To use a dynamic object's current attribute values at the initial state:

Play and stop the animation at the desired frame.
Select the dynamic object.
Select Solvers > Initial State > Set for Selected.
To use all dynamic objects' current attribute values at the initial state:

Play and stop the animation at the desired frame.
Select Solvers > Initial State > Set for All Dynamic.

artifish
11-28-2002, 09:39 AM
don't forget to make the particles repell from each other (eg. by using a radial field) otherwise your fluid won't have much volume. there is a tut on highend3d, it is down at the moment (again), so you've got to search for yourself.

cheers, carsten

beaker
11-28-2002, 09:41 AM
There is a script for doing that here:
http://www.splotsh.com/script.htm

wah431996
11-29-2002, 01:53 AM
beaker:

I can't read the language in the script. and there's no documentation for this script in english. Can you give me a quick translation on the discription?

Description:
//
// Ceci est un script qui tente de simuler le comportement d'un
// liquide en ajoutant une notion de volume aux particules.
//
// Les colisions entre les particules et les objets se faisant
// en leur centre, il n'est pas possible de constater des
// phenomenes d'accumulation de particules (le liquide qui monte
// dans un r¨Ścipient).
//
// Pour y remedier ce script cree des objets appeles "goutte"
// (de type Cube ou Sphere) avec lesquels on calcule la dynamique et
// sur lesquels viennent se fixer les particules.
// Pour optimiser les calculs (tres lourds) il est recommande
// de bien regler sa dynamique puis ensuite d'accrocher les
// particules.
// Afin de simuler la cohesion d'un liquide les "gouttes" sont
// attirees les unes vers les autres (forces de Van der Walls).
// Cette option peut etre connectee ou non.

kaas
11-29-2002, 06:55 AM
thanks for all the answers !

:)

artifish
11-29-2002, 09:15 AM
wah#: This is a script which tries to simulate the behavior of a liquid by adding a concept of volume to the particles. The colisions between the particles and the objects being done in their center, it is not possible to note phenomena of accumulation of particles (the liquid which goes up in one r??cipient). For y remedier this script cree of the appeles objects "drop" (of Cube type or Sphere) with which one calculates dynamics and on which come to set the particles. To optimize calculations (very heavy) it east recommends of good regler its dynamics then then to hang the particles. In order to simulate the cohesion of a liquid the "drops" are attirees the ones towards the others (forces of Van der Walls). This option can be connectee or not.

by babelfish :) the language was french btw.

CGTalk Moderation
01-13-2006, 10:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.