POV-Ray : Newsgroups : povray.general : Problems scaling media Server Time
14 Nov 2024 15:15:01 EST (-0500)
  Problems scaling media (Message 1 to 6 of 6)  
From: Jan Danielsson
Subject: Problems scaling media
Date: 23 May 1999 06:45:18
Message: <wnaqnavryffbasnyhaznvygryvnpbz.fc6zo00.pminews@news.povray.org>
Howdy, everyone!

I'm having problems scaling Media and keeping it visible.

I have an 'frame-object' which contains a media, It looks as I want it to.
When I try to create another instance of the object, scale it and translate
it a little bit the media doesn't show. The 'frame' is still there, but it's
interior (the media) is not visible. However, I know the media's there since
I can see it's shadow on the plane.

If that wasn't clear: Imagine declaring a big lamp which glows with the help
of media. Create an instance of the object in a scene, and surround the big
lamp with identical (but smaller) lamps. In my case everything works great,
except that the smaller lamps' medias don't glow.

Any ideas? Doesn't the glow in media scale? :-)


 /j


Post a reply to this message

From: Bob Hughes
Subject: Re: Problems scaling media
Date: 23 May 1999 10:50:21
Message: <37480791.7BBDD267@aol.com>
If you are scaling the object smaller with media already defined in it
your going to need to scale the media larger(?) by a directly proportional
amount. ie. object {YourObject media {scale*2} scale/2} and the reverse is
also true, object {YourObject media {scale/2} scale*2}.


Jan Danielsson wrote:
> 
> Howdy, everyone!
> 
> I'm having problems scaling Media and keeping it visible.
> 
> I have an 'frame-object' which contains a media, It looks as I want it to.
> When I try to create another instance of the object, scale it and translate
> it a little bit the media doesn't show. The 'frame' is still there, but it's
> interior (the media) is not visible. However, I know the media's there since
> I can see it's shadow on the plane.
> 
> If that wasn't clear: Imagine declaring a big lamp which glows with the help
> of media. Create an instance of the object in a scene, and surround the big
> lamp with identical (but smaller) lamps. In my case everything works great,
> except that the smaller lamps' medias don't glow.
> 
> Any ideas? Doesn't the glow in media scale? :-)
> 
>  /j

-- 
 omniVERSE: beyond the universe
  http://members.aol.com/inversez/homepage.htm
 mailto://inversez@aol.com?Subject=PoV-News


Post a reply to this message

From: Jan Danielsson
Subject: Re: Problems scaling media
Date: 23 May 1999 11:42:16
Message: <wnaqnavryffbasnyhaznvygryvnpbz.fc7dgo0.pminews@news.povray.org>
>If you are scaling the object smaller with media already defined in it
>your going to need to scale the media larger(?) by a directly proportional
>amount. ie. object {YourObject media {scale*2} scale/2} and the reverse is
>also true, object {YourObject media {scale/2} scale*2}.

Hmmmmm... Strange. I'll try that.

Thanks for the reply!


 /j


Post a reply to this message

From: PoD
Subject: Re: Problems scaling media
Date: 23 May 1999 16:17:32
Message: <374854F2.9382B525@merlin.net.au>
Jan Danielsson wrote:
> 
> >If you are scaling the object smaller with media already defined in it
> >your going to need to scale the media larger(?) by a directly proportional
> >amount. ie. object {YourObject media {scale*2} scale/2} and the reverse is
> >also true, object {YourObject media {scale/2} scale*2}.
> 
> Hmmmmm... Strange. I'll try that.
> 
> Thanks for the reply!
> 
>  /j

Media effects are created on a 'per unit distance' basis.
If you make the media smaller, you'll have to increase the density or
the rgb value.  Imaging looking through 1cm of glowing gas verus 1m of
the same gas.

Cheers, PoD.


Post a reply to this message

From: Alan Kong
Subject: Re: Problems scaling media
Date: 23 May 1999 17:50:52
Message: <37496819.43326629@news.povray.org>
On Sun, 23 May 1999 08:50:09 -0500, Bob Hughes <inv### [at] aolcom>
wrote:

> scale the media larger(?) by a directly proportional
> amount. ie. object {YourObject media {scale*2} scale/2} and the
> reverse is also true, object {YourObject media {scale/2} scale*2}.

  This might work to save some typing:

  #declare Object_scale = .5;	// example value, only
  #declare Media_scale  = 1/Object_scale;

  {YourObject media {scale*Media_scale} scale*Object_scale}

-- 
Alan
--------------------------------------------------------------------
http://www.povray.org - Home of the Persistence of Vision Ray Tracer
news.povray.org - where POV-Ray enthusiasts from around the world
                - get together to exchange ideas and experiences
--------------------------------------------------------------------


Post a reply to this message

From: Cliff Bowman
Subject: Re: Problems scaling media
Date: 25 May 1999 14:26:46
Message: <374aa35e.223270186@news.povray.org>
On Sun, 23 May 1999 11:43:12 +0200 (CDT), "Jan Danielsson"
<Jan### [at] falunmailteliacom> wrote:

>Howdy, everyone!
>
>I'm having problems scaling Media and keeping it visible.
>
See "PoD's" answer - I've been struggling with media in my attempts
(assisted by articles here) to produce explosions. I still haven't got
anything to rival a 2D explosion effect produced by Chris Colefax
(alas) but just today I've found density to be the key reason that
explosion examples have been falling apart for me when introduced to
my 'scenes' (actually animation). Increase the density/rgb values as
you decrease the scale seems very much to be the solution.

Maybe by this time next year I'll have a working media bang!


Cheers,

Cliff Bowman
Why not pay my 3D Dr Who site a visit at
http://www.geocities.com/Area51/Dimension/7855/
PS change ".duffnet" to ".net" if replying via e-mail


Post a reply to this message

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