PDA

View Full Version : Animations of Liquids in Vizard?


Corn
03-25-2024, 07:40 AM
Hello there,

are there any template solutions for embedding the behavior of liquids into Vizard? Either with "water simulation" or with predefined "liquid animations"? We want to create a setup in which participants can pour a liquid from a bottle into a glass and then swivel the glass to appreciate the content. Is there any example of how to accomplish this?

Thank you all in advance!

sado_rabaudi
09-11-2025, 09:29 AM
Animations are best made in another program (such as Blender) and then played back in Vizard. You can trigger the animation playback from built-in animations using code similar to this:
door = vizfx.addChild('DoorAnimated.osgb')
door.setPosition(0, 0, 5)
door.setAnimationSpeed(0.5)
door.setAnimationState(0)
door.setAnimationFrame(100)
door.setAnimationLoopMode(viz.OFF)

See the C:\Program Files\WorldViz\Vizard8\resources\piazza_animations .osgb for an example of this

There are also some limited particle based animations available in the Inspector tool.