I've finally (thanks to James) been able to paste my exaust particle onto the
place i wanted....
(see script below, a bit different syntax than James gave, but same idea,
different because i refer to allready exiting models. Also the emmitter
direction is made differently)
I've also tried creating new one without placing a little plane into the 3dapp,
the result was that i need to move the exaust up and backward from the chassis
model. Witch result in lot more try en error (to me!!!)

Ok, now, i have one particle emitter, the question is:
for the second exaust tube, should i simply clonedeep the first one or create a
totally new one?
Both exaust are submitted to variations , if vehicule is iddling or speeding.
What's the best performance move? In term of screen rendering? Ram?
or this is not relevant? both wil use simply double computing as one, cloned or
not?

Fabrice


  pr = member(2).newmodelresource("ParticleResource",#particle)
  pm = member(2).newmodel("exaust", pr)
  pr.lifeTime = 1100
  pr.colorRange.start = rgb( 89,91,95 )
  pr.colorRange.end = rgb( 255,255,255)
  pr.tweenMode = #age
  pr.sizerange.start = 1.000
  pr.sizerange.end = 9.0000
  pr.blendRange.start = 10.0000
  pr.blendRange.end = 0.0000
  pr.texture = void
  pr.emitter.numParticles = 400
  pr.emitter.mode = #stream
  pr.emitter.loop = 1
  pr.emitter.direction = vector( -1.0000, 0.0000, 1.0000 )
  pr.emitter.region = [vector( 0.0000, 0.0000, 0.0000 )]
  pr.emitter.distribution = #gaussian
  pr.emitter.angle = 23.0000
  pr.emitter.path = []
  pr.emitter.pathStrength = 256.0000
  pr.emitter.minSpeed = 23.0000
  pr.emitter.maxSpeed = 60.0000
  pr.drag = 8.0000
  pr.gravity = vector( 0.0000, 0.0000, -1.0000 )
  pr.wind = vector( 45.0000, 45.0000, 45.0000 )
  balls.model("ChassisM").addChild(pm)
  Newposition  = member(2).model("exaust1").worldposition
  pm.translate(Newposition)

-- here i delete my two placement planes.
  balls.model("exaust1").removeFromWorld()
  balls.model("exaust2").removeFromWorld()

James Newton wrote:

> Fabrice <[EMAIL PROTECTED]> wrote:
> > I have a moving car, when car accelerate i want some
> > exaust gas, via particle effect.
> > Now i have the car with an exaust tube (thats the model position i need), a
> > good looking exaust particle. But i cannot yet paste it on the right spot.
>
> Hi Fabrice,
>
> If you are using a cylinder model as the exhaust pipe its position will be
> at the centre of the cylinder.  The centre of the end of the cylinder will
> be half the height of the cylinder along its y-axis.  In pseudo-Lingo:
>
> on createCarModel(a3DMember)
>    ...
>
>    exhaustModel  = a3DMember.newModel("Exhaust", aCylinderResource)
>    particleModel = a3DMember.newModel("Particle", aParticle rResource)
>    halfHeight    = vector(0, exhaustModel.resource.height / 2, 0)
>
>    exhaustModel.addChild(particleModel)
>    particleModel.translate(halfHeight)
>
>    exhaustModel.rotate(90, 0, 0)
>    -- The exhaust should now emit particles to the left
>
>    ...
> end
>
> However...
>
> If the particle resource is a child of the exhaust pipe or of the car
> itself, then the particles will first be emitted backwards and then travel
> along with the car.  To get the particles to appear to be part of the world,
> you need to change the emitter.region property continuously.
>
> Here are two examples of this technique:
>
> http://perso.planetb.fr/newton/snowbox.dir
> http://perso.planetb.fr/newton/flame.dir
>
> Cheers,
>
> James
>
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/lingo-l.cgi  To post messages to the list,
> email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
> Lingo-L is for learning and helping with programming Lingo.  Thanks!]

--
Zuidzijde reclamebureau
http://www.zuidzijde.nl


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to