Thread: Fluids
View Single Post
  #1  
Old 01-22-2014, 11:32 AM
fabioped fabioped is offline
Member
 
Join Date: Feb 2013
Posts: 21
Question Fluids

Hello!

I'm trying to have milk being poured into a cup. I'm trying to fake my way into that using 3d max. I've created a SuperSpray as particle creator, and used a OSG sequence to sample its geometry. But somehow I can't really use it inside vizard.

I'm attaching the .max and the .osgb. The code is as follows:

Code:
import viz
import vizact
import vizcam
import vizshape
import vizconfig

viz.setMultiSample(8)
viz.fov(60)
viz.go()

model = viz.addChild('piazza.osgb')

a = viz.addChild('milk.osgb', scale=(0.01, 0.01, 0.01), pos=(0, 0, 5) )

osg = viz.add('SceneGraphTools.dle')
sequence = osg.Sequence(a)
Can you please help me out with this?
Attached Files
File Type: zip milk.zip (56.4 KB, 713 views)
Reply With Quote