PDA

View Full Version : Fluids


fabioped
01-22-2014, 11:32 AM
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:

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?