|
#1
|
|||
|
|||
particle
Hello,
I want to animate a powder like substance being poured from a container. Is there an easy way to this? How can I animate particle movement? Any clue? Thanks a bunch. Zafer |
#2
|
|||
|
|||
Hi Zafer,
Vizard supports particle systems, but currently the only way to create one is by hand editing a text file. I've attached a zip file that contains a particle file with a texture. To use it simply do the following in your script: Code:
dust = viz.add('dust.osg') dust.hasparticles() |
#3
|
|||
|
|||
Hi Farshizzo,
I included the two files that you sent me in my source folder. Then I added the two lines below. However, I couldn't see anything. I tried to open the RGB file in FotoShop but it didn't work. What was I supposed to see when I added those lines into my script? You told me about editing a text file. Could you give an example? Thanks a lot... Zafer Quote:
|
#4
|
|||
|
|||
Hi Zafer,
Try the following script. You should see the dust appear in front of you. Code:
import viz viz.go() dust = viz.add('dust.osg') dust.hasparticles() viz.translate(viz.HEAD_POS,0,-1.8,-1) lifeTime - This controls how long a single particle will exist before it disappears sizeRange - Two number that control the beginning and ending size of the particles. The particles will grow to the ending size during its lifetime. alphaRange - The beginning and ending alpha value of the particles. For example, 1 0, mean that the particle will start out opaque and end up transparent. colorRange - The beginning and ending color of the particles. In the example I sent you the beginning and ending colors are both white. rateRange - A min and max range of how many particles to create per second. initialSpeedRange - A min and max range of how fast the particles initial speed should be Hope that helps! |
|
|