Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Position particle textures?

Jenny Carlos
Registered User
Join date: 30 Aug 2005
Posts: 52
09-30-2005 08:07
Hello im messing around with particle systems and would like to use a texture in the system.
All is good but two things lol..

#1 The texture is in the wrong place and needs to be moved / can this be done? rez the particles in a diff location then the actual prim is?

#2 The texture is faceing the wrong way. I could sure use some example code on how to move and position the particles texture.

Thanks tons for all the help guys.

Jenny Carlos
Jesrad Seraph
Nonsense
Join date: 11 Dec 2004
Posts: 1,463
09-30-2005 08:25
You can produce particles at:
- the position of the prim
- around the prim in a circle (the ANGLE pattern), around the X axis
- around the prim in a sphere (the CONE_ANGLE pattern)

Also, you can "cut" the last two with ANGLE_BEGIN and ANGLE_END. The angles are measured from the X axis.
Say, you want to spawn a half circle of particle around your prim: use the ANGLE pattern, an angle begin of 0.0 and an angle end of PI (full circle is TWO_PI).

You can set the radius of the circle / sphere with BURST_RADIUS (caution: this is disabled if you set your particles to follow the object with FOLLOW_SRC).

That's how I make my ear ring make clouds above me: its X axis is pointed up, I set it as pattern CONE_ANGLE, with a large radius (over 20 m) and angle_begin 0.0 / angle_end of PI/6, this way the particles appear over 20m above the ear ring, and form a dome.
_____________________
Either Man can enjoy universal freedom, or Man cannot. If it is possible then everyone can act freely if they don't stop anyone else from doing same. If it is not possible, then conflict will arise anyway so punch those that try to stop you. In conclusion the only strategy that wins in all cases is that of doing what you want against all adversity, as long as you respect that right in others.
Jenny Carlos
Registered User
Join date: 30 Aug 2005
Posts: 52
09-30-2005 10:53
So there really is no way to use x,y,z settings to actually set where the particles will show up?
I didnt really plan to add a new prim as all my scripts will have to be moved and the attachment re lined up agian/ How sad to hear this.
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
10-01-2005 15:11
Actually, you raise a good point. We should have a PSYS_SRC_OFFSET parameter. I'll suggest this...
Moleculor Satyr
Fireflies!
Join date: 5 Jan 2004
Posts: 2,650
10-01-2005 19:44
Been screaming for an offset (amongst other things) for over a year, you'll never see it.
_____________________
</sarcasm>
Fractal Mandala
Registered User
Join date: 15 Dec 2003
Posts: 60
10-01-2005 20:36
You could make a transparent prim to serve as the source of the particle system.