WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Fluids (https://forum.worldviz.com/showthread.php?t=4921)

fabioped 01-22-2014 11:32 AM

Fluids
 
1 Attachment(s)
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?


All times are GMT -7. The time now is 01:16 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC