POV-Ray : Newsgroups : povray.general : Rune particle system questions Server Time
5 Nov 2024 09:21:47 EST (-0500)
  Rune particle system questions (Message 1 to 5 of 5)  
From: SharkD
Subject: Rune particle system questions
Date: 9 Jun 2007 06:30:01
Message: <web.466a7ffa46f250d85c40800@news.povray.org>
A couple of questions:

1) Is there a way to scale the whole effect? I need it to be larger.

2) Is there a way to make it cast shadows?

Thank you!


Post a reply to this message

From: Rune
Subject: Re: Rune particle system questions
Date: 9 Jun 2007 07:03:56
Message: <466a891c@news.povray.org>
SharkD wrote:
> A couple of questions:
>
> 1) Is there a way to scale the whole effect? I need it to be larger.

You can scale up the individual particles. I'm pretty sure all the example 
particle_element macros that comes with the system have a size setting, for 
example smoke_startsize and smoke_endsize for the smoke.inc particle_element 
macro.

You can also "scale up" the simulation by making all velocities that are 
used bigger, possibly including gravity, depending on what you want.

#macro particle_emitvect (Clock) your_vector*your_scaling_factor #end

#macro particle_gravity (Clock,Point) 
your_gravity_vector*your_scaling_factor #end

> 2) Is there a way to make it cast shadows?

Which particle_element macro are you talking about?

Rune
-- 
http://runevision.com


Post a reply to this message

From: SharkD
Subject: Re: Rune particle system questions
Date: 9 Jun 2007 08:20:02
Message: <web.466a99ef10d7ec9a6e2dd0cf0@news.povray.org>
"Rune" <new### [at] runevisioncom> wrote:
> Which particle_element macro are you talking about?

My scene is based off of the "blowup.pov" example scene.


Post a reply to this message

From: Rune
Subject: Re: Rune particle system questions
Date: 9 Jun 2007 08:39:05
Message: <466a9f69@news.povray.org>
SharkD wrote:
> "Rune" <new### [at] runevisioncom> wrote:
>> Which particle_element macro are you talking about?
>
> My scene is based off of the "blowup.pov" example scene.

In that case the particles already cast shadows, as can be seen in the 
animation made from blowup.pov:
http://runevision.com/3d/include/particles/#204

However, this particle element type uses a trick for rendering as well as 
for casting shadows which mean that only one light source may cast shadows. 
You must also define the location of that light source, otherwise the 
particles will not cast shadows.

From expl.inc:

Required setting:

  camera_location The location of the camera

Settings (all optional, see the default values which are declared below):

  light_source_location The location of the one light_source that may cast a 
shadow

  exp_size The size of the fire/smoke elements
  exp_opacity How solid the fire/smoke element is
  exp_emission How much the fire element glows
  exp_smokeshade The shade of the smoke - 0.0 is black, 1.0 is more like 
white
  exp_smokeglow How much the smoke is glowing due to the illumination from 
the fire
  exp_smokestart At which point in the particle's life there will appear 
smoke
  exp_fireend At which point in the particle's life the fire will disappear 
(must be >= exp_smokestart)
  exp_ambient The ambient lighting of the smoke
  exp_test Set it to true to have the fire and smoke replaced by spheres 
with grid lines.

Note: Due to the trickery of the rendering method used,
  you can only use one light_source that casts a shadow.
  The other light_sources, if any, must be shadowless.

Rune
-- 
http://runevision.com


Post a reply to this message

From: SharkD
Subject: Re: Rune particle system questions
Date: 9 Jun 2007 10:15:01
Message: <web.466ab4d310d7ec9a8e7100430@news.povray.org>
OK, I think the shadows work now. Thanks!

Also, I was able to scale the effect by placing the macro calls within a
union statement and then transforming it.


Post a reply to this message

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