POV-Ray : Newsgroups : povray.newusers : media ?s : Re: media ?s Server Time
4 Nov 2024 23:15:02 EST (-0500)
  Re: media ?s  
From: Warp
Date: 31 May 2001 10:17:08
Message: <3b165264@news.povray.org>
Chris Huff <chr### [at] maccom> wrote:
: The media feature uses the distance travelled 
: through the media, ignoring any effects scale would have, so you have to 
: scale the densities to get two objects of different sizes to look the 
: same.

  This is a bad thing in my opinion.
  Usually you expect that this:


#include "MyObject.inc"
camera { location <0,1,2> look_at 0 }
light_source { <10,20,-30>, 1}
object { MyObject }


and this:


#include "MyObject.inc"
camera { location <0,1,2>*10 look_at 0 }
light_source { <10,20,-30>*10, 1}
object { MyObject scale 10}


would give you identical results. That is, the scale of the whole scene
does not affect the result.
  However, if 'MyObject' contains media, the result will not be identical.

  In my opinion the 'scale 10' should scale the density as well so that
you really get the same result.

-- 
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

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