CompuServe Thread

#Pouring beer from bottle

32 messages in this thread
#48768From: MARTIN G FOSTERJul 6, 1993 3:39 PM
Dear all, Does anybody have any hints on animating pouring beer from a bottle into a glass? Any ideas greatly appreciated, I've got to do this tomorrow and my brain is experiencing neuro-gridlock <g>.
#48778From: Yost GroupJul 6, 1993 5:06 PM
Sounds like a rotoscoping job to me… or maybe you can borrow the supercomputers down at USC for some fluid dynamics studies! – G
#48788From: Kevin Mc TiernanJul 6, 1993 6:46 PM
Martin, I've seen the WATER IPAS routine used, it animates a flowing/ rippling effect on to the object. I'd check it out. -Kevin Mc Tiernan (A.A.S.T. N.J.)
#48791From: MARTIN G FOSTERJul 6, 1993 7:40 PM
Kevin, sounds interesting, although one minor problem, I don't have the water.sxp <shucks>. The same type of effect may be possible with a bump map, with it's co-ordinates set up the right way.
#48790From: MARTIN G FOSTERJul 6, 1993 7:37 PM
Gary, thank you for your kind and tongue-in-cheek suggestions <g>. The rotoscoping is not in the budget, for sure. However, I just happen to have an evaluation/loaner supercomputer handy in my spare bedroom that I was reviewing for "Graphics Mutants Monthly" and may be able to use for the fluid dynamics – NOT! I was hoping for some enlightentment of the aapro and 3ds type – the final output is only a piddly, little, 320×200 flic – as apposed to my more normal 70mm IMAX film output <g>.
#48806From: Yost GroupJul 6, 1993 9:25 PM
Glad to hear that you're finally warming up the Cray. Time to pay that light bill! – G PS: I hear that there's something called beer.sxp that might work.
#48817From: MARTIN G FOSTERJul 6, 1993 11:09 PM
Gary, Hey! I've done a nice froth – without even resorting to froth.sxp <g>. PS: I presume you are joshing about the beer.sxp – I have never heard of it. You are, right?
#48905From: Yost GroupJul 7, 1993 10:52 AM
You never heard of beer.sxp? It comes bundled with froth.axp! Where you been, dude? – G
#48989From: Jul 8, 1993 1:08 AM
Gary: >> You never heard of beer.sxp? It comes bundled with froth.axp! I don't think Martin is old enough for these routines! I hear they are listed on Kevin Krell's interactive police program, and the cops are cracking down! <g> Greg
#49015From: Yost GroupJul 8, 1993 10:46 AM
Uh oh. – G
#49082From: MARTIN G FOSTERJul 8, 1993 10:57 PM
Gosh, the one time I'm actually serious about a project, nobody else wants to be <g>. FWIW and FYI, I finally used a variation on Jack's suggestion to great effect. I used a thin rectangle shape, lofted with twists in it and mapping co-ordinates on. I then made 2 more of the same thing, except with the shape rotated 90 degrees each time before lofting. I then bent all of the three twisted objects and morphed between them. In this way I was able to get the twist to travel along the path giving the appearance of pulsating fluid pouring out of the beer bottle and arcing down into the glass. Add a beer material and an animated opacity map and the pouring part was complete. I then had to add a seperate piece of geometry for the contents of the bottle complete with animated opacity map to represent the diminishment of the contents. The final touch was a piece of geometry for the beer in the glass, part beer and part froth, which scaled up to fill the straight glass. Timing all of these happenings was the hardest part, but it all came together today and the client loved it! The final rendered resolution was 320×200, <chuckle>, and there is a quarter screen 160×100 version and it will probably appear at some or all Black Angus restaurants and other Sports bars etc. as a quarter screen overlay to football games and such like. This project certainly tested my powers of animation problem-solving <g>.
#49101From: ALAN IGLESIASJul 9, 1993 12:31 AM
Nice work, Mate! -Alan
#49170From: Ralph F. FrantzJul 9, 1993 12:52 PM
Martin, Nice job! I have been following this thread with a chuckle, but I knew you would come up with something and pull it off. Even without beer.sxp <G> -Ralph
#49241From: MARTIN G FOSTERJul 10, 1993 2:21 AM
Ralph, thanks mate. The client really liked it, so all's well.
#48918From: ALAN IGLESIASJul 7, 1993 11:38 AM
He's probably joking about the beer.sxp, but I hear they *are* working on a ferret.pxp, just for you, Martin!<g> Hey, how was Big Bear? I hope y'all had a good time. Talk to you soon, -Alan
#49079From: MARTIN G FOSTERJul 8, 1993 10:41 PM
Alan, Lake Arrowhead (poor neighbour of Big Bear) was great. We had a fine time and I got to do some lighting (spot following) for an ice show up there. How was your holiday weekend?
#49102From: ALAN IGLESIASJul 9, 1993 12:31 AM
Excellent! Good to hear you guys had fun. I'm sure you both were beat when you got home, but Greg's party was a blast! First he had me bartending (one for them, one for me; one for them, two for me <g>) but I finally escaped and we all had a great time. His friends are very nice and watching the fireworks was fun too. So, were you handling a Super-Trooper carbon arc unit or what? -Alan
#49106From: MARTIN G FOSTERJul 9, 1993 2:52 AM
Alan, good to hear you had fun, too. Did you take Kitty? If not, shame on you. He/she (forgot to look) loves a good shindig <g>. >> So, were you handling a Super-Trooper carbon arc unit or what? A what? Yeah, sure, well maybe. I just pointed it and pull a few levers at the appropriate time, completely forget to read the label <g>. Good fun, though.
#49108From: ALAN IGLESIASJul 9, 1993 5:07 AM
Kitty doesn't travel too well, I'm afraid! You'd know if it was carbon arc 'cause that sucker woulda' been hot! Usually has a cooling fan, too. -Alan
#48793From: Yost GroupJul 6, 1993 7:59 PM
Why don't you model something like those phony, mechanical beer ads you see in some bars. (Or at least _someone_ sees in some bars.) It's just an irregular, clear plastic rod which they rotate to give the illusion that liquid is pouring. If you've never seen one, this probably makes no sense, and, frankly, I don't want to attempt to document it in any greater detail. (I'm up to my chin in tutorials as it is.) – Jack
#48813From: MARTIN G FOSTERJul 6, 1993 11:05 PM
Jackmeister, I think I know what you mean and it sounds like a promising idea – a twisted rod, rotating. I'll have to have a bash at it. Thanks terribly much <g>.
#48887From: David RhotenJul 7, 1993 10:24 AM
Martin: The first time I read your message, I missed the word "animating". I thought "Wow! Martin's really blown a fuse this time! How could anyone forget how to pour a beer?" I'm glad you're actually still holding it together. Dave
#48892From: MARTIN G FOSTERJul 7, 1993 10:40 AM
David, Teehee. Actually, in "rehearsal" for the animation I had to pour a lot of beer to examine the look of the "fluid dynamics". 'Course, I had to drink all that beer too, rather than letting it go to waste <g>.
#48973From: Maan (Mark) KurdiJul 7, 1993 11:18 PM
Martin, I bet as all that beer went down, you got better and better at animating it…<g> Mark K.
#48976From: Maan (Mark) KurdiJul 7, 1993 11:37 PM
Martin, I bet as all that beer went down, you got better and better at animating it…<g> Mark K.
#49094From: MARTIN G FOSTERJul 8, 1993 11:22 PM
Maan, that'ssssss right <slurring badly>.
#49326From: Nathan JohnstonJul 11, 1993 3:29 PM
What color is beer exactly (RGB)? How do I get it to look like it does in those flashy beer commercials? I figure I mut use some kind of backlighting so the background doesen't muddy up the color…I am modeling a yard glass full of beer and havent spent too much time on the material for the beer yet…. Have to get a little of that real life observation in…(gulp, gulp, gulp….) Have you played aroud with a material for the head yet? –Nat'n
#49356From: MARTIN G FOSTERJul 12, 1993 3:51 AM
Nathan, for the beer I used RGB 198,122,32; self-illum, transparency 25, transparency falloff 50 (outside). The froth was white self-illum with a texture map of ball.sxp amount 60, size 1, colour 1 RGB 231,237,165; colour 2 black. If I'd had more time and this was more than just a quarter screen animation I would have spent more time on the beer material and added some bubbles in the form of an animated map. The froth however looked good from a distance.
#49821From: ALAN D. HORDJul 16, 1993 1:39 AM
Depends on what style of beer. Scottish Ales are redder, Porters are deep red-brown, to yellow-dark brown, Stouts are near black, Straw for lagers and wheat. I should know, I make ten gallons at a wack – all grain mash. Watch the head color too. 🙂 Alan – Hords of Fun! aka Kingfish Brewing Co., Redmond, WA.
#49923From: Ron WodaskiJul 16, 1993 9:16 PM
Another Seattle micro brewery? Or are you a picobrewery (i.e., a home brewery)? <g> Ron
#49974From: ALAN D. HORDJul 17, 1993 3:35 PM
🙂 Well, yes! I'm a Picobrewery, but a LARGE pico I assure you! I do all grain ten gallon mash, recirculating step-infusion ten gallon batches. My favorites are the wheat and fruit brews! Try Raspberries and wheat, or a Raspberry Stout! Yummy! You have to let the fruit beer ferment longer in the carbouy – like about other month because of the residual sugars. Else you wind up with high carbonation and foamy beers. 🙂 Alan – Hords of Fun! aka Kingfish Brewing Co., Redmond, Washinton.
#50018From: Ron WodaskiJul 18, 1993 11:04 AM
Well, I was just curious. I don't drink or brew beer myself, but I keep running into all of these Seattle folks who brew beer… Ron