POV-Ray : Newsgroups : povray.animations : trouble with rune (particule system) and a sphere : Re: trouble with rune (particule system) and a sphere Server Time
17 May 2024 04:47:20 EDT (-0400)
  Re: trouble with rune (particule system) and a sphere  
From: chtisaxo
Date: 25 Sep 2007 08:05:00
Message: <web.46f8f952f5ab9856be9c7f8d0@news.povray.org>
if you want i can put the source i'm trying to render:



light_source {<-500,500,150> color rgb 1.3 }

camera {location <0,0,-5> look_at <0,0,0>}


// sphere which stop particules
#declare bloqueur =
sphere {
  <0,0,0>, 2
 clipped_by{sphere {<0,0,0>,1.8 inverse}}

}



   // Include particle system include file
// ************************************

   #include "particle.inc"

// Clock settings
// **************

   #declare particle_start  = -1;
   #declare particle_end    = 1.0;
   #declare particle_cyclic = on;
   #declare particle_steps  = 20;

// General particle settings
// *************************

   #declare particle_frequency = 10;
   #declare particle_life      = 1.5;
   #declare particle_lifeturb  = 0.0;
   #declare particle_seed      = 120;
   //#declare particle_maxnumber = 50;

// Environment settings
// ********************

   #declare particle_drag      = 0.0;
   #declare particle_transfer  = 0.0;

   #macro particle_gravity  (Clock,Point) 0*y #end
   #macro particle_wind     (Clock,Point) <0,0,0> #end

// Emitter settings
// ****************

   #macro particle_emitter  (Clock) <0,0,0>  #end
   #macro particle_emitting (Clock) on      #end
   #macro particle_emitvect (Clock) <5,0,0> #end
   #macro particle_emitturb (Clock) 0     #end
 #macro particle_emitobj(Clock) sphere{<0,0,0>,1} #end

   #macro particle_emitobjn (Clock) 1.2 #end

// Collision settings
// ******************

#declare particle_blockobj =bloqueur;
#declare particle_bounce = 0.5;
#declare particle_bounceturb = 0.5;
#declare particle_friction = 0.0;
#declare particle_bounceoffset = 0.1;

// Particle element macro (optional)
// *********************************

   #include "glow.inc"

// These settings are constant in this example, so they can
// be #declared outside of the particle_element macro.
   #declare glow_color     = <2,2,0.5>/0.8;
   #declare glow_colorturb = <0.3,0.3,0.3>;
   #declare glow_size      = 0.3;
   #declare glow_samples   = 5;

   #macro particle_element ()
//    Do things with the particle data here. Available data:
//    p_id,        p_random,    p_location,  p_direction, p_life,
//    p_age,       p_birth,     p_state,     p_rotate
      glow_element()
   #end


// Call particle system
// ********************

   particle_system ("partsys")






so here it is.. i putted this inverse keyword, but it's still not working...
thx anyway for this very fast answer!
i hope you will be able to help me ;)
J-E


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.