POV-Ray : Newsgroups : povray.newusers : scaling, translating media containers Server Time
2 Nov 2024 17:21:12 EDT (-0400)
  scaling, translating media containers (Message 1 to 4 of 4)  
From: Penners
Subject: scaling, translating media containers
Date: 11 Aug 2003 15:25:01
Message: <web.3f37ed63afc076e3807ed64d0@news.povray.org>
Hi all,
  Here is my problem...
I had a scene consisting of a main smoke df3 image in a box media container.
 But now I want to put that container in another scene which has much
smaller dimensions and different camera position etc.  But now in the new
scene my smoke is at the corner of the box media container and half of it
is cut off. I had to do some scaling and translating of the media container
to fit it into the scene, so i'm wondering if this also causes the media
inside the container to shift?  It shouldn't, I believe, but I don't know
how else to explain the change in the position of my smoke density.

Thanks for any suggestions.


Post a reply to this message

From: Penners
Subject: Re: scaling, translating media containers
Date: 11 Aug 2003 15:35:01
Message: <web.3f37efb24c84f230807ed64d0@news.povray.org>
Actually I just tried redefining the media container to simply fit the
scene, but again the media is not the same as before.  So it isn't the
scaling or translating...anyone have any other ideas?
Thanks.


Post a reply to this message

From: Hughes, B 
Subject: Re: scaling, translating media containers
Date: 13 Aug 2003 19:34:07
Message: <3f3acaef$1@news.povray.org>
"Penners" <pen### [at] hotmailcom> wrote in message
news:web.3f37efb24c84f230807ed64d0@news.povray.org...
> Actually I just tried redefining the media container to simply fit the
> scene, but again the media is not the same as before.  So it isn't the
> scaling or translating...anyone have any other ideas?

Media density requires an inverse rescaling when changing the scale of the
container object. And df3 is going to also act in a manner such as image_map
does when transforming it. You'll want to think in those terms then. For
example, adding "translate 0.5 scale 0.5" to the end of the density
statement (or block) and then multiplying the container object scale by 2
should show the same thing as it would if no changes were made.

You probably had some typical confusion going on. I saw this message after
replying to your latest question.

Bob H.


Post a reply to this message

From: Penners
Subject: Re: scaling, translating media containers
Date: 15 Aug 2003 15:00:01
Message: <web.3f3d2d6f4c84f230f779e6db0@news.povray.org>
>You probably had some typical confusion going on. I saw this message after
>replying to your latest question.
>
>Bob H.
>

Yeah, I think I had some confusion regarding the container object and how
the rescaling works.  Thanks for your replies...I'll look into it again.


Post a reply to this message

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