![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On 12/12/2012 04:55 PM, Alain wrote:
>
>> Now I have a question .... because holy crap my first stab at photons in
>> this scene took 28 hrs and it just didn't suit. I think some of the rays
>> are getting through the gaps between the peppercorns. I've been reading
>> (and re-reading) the docs on photons and I'm unclear about the setup I'm
>> using. I'd like to trim some time off that process and here's what I
>> have:
>>
>> union {
>> object { PepperMill scale 1.01 #if (UsePhotons) split_union off #end }
>> object { Peppercorns #if (UsePhotons) split_union off #end }
>> translate <-120,0,12.5>
>> rotate y*60
>> #if (UsePhotons)
>> photons { target reflection on refraction on collect off }
>> #end
>> }
>>
>> The peppercorns are a union of all the peppercorns is why I did it like
>> that, and just wanted a reality check so I don't waste another 28 hrs!
>
> I'm not sure that turning split_union off help you. If the union is
> split, you stop checking if you hit any object of the union, but, if you
> don't split it, each ray must test against all of your 2000 peper corns,
> even those on the oposite side or in the middle that have no hope of
> ever interacting with your photons...
> Anyway, do a test using only mockup spheres and one photons target
> object shining photons on the whole thing. Compare with and without
> split_union off.
>
> Not splitting the union of the peper mill itself may help in some cases,
> but it also may not.
> Do a test render with the empty peper mill and simple planes to collect
> the photons and compare the performances with and without split_union off.
>
> You don't need to use the conditional expression for your photons block.
> In a non-photons scene, any photons block is just silently ignored.
>
>
> Alain
Thanks for the nudge ...
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: James Holsenback
Subject: Re: NOT a Canister of Elbow Macaroni
Date: 13 Dec 2012 10:26:35
Message: <50c9f3ab@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On 12/12/2012 04:55 PM, Alain wrote:
>
>> Now I have a question .... because holy crap my first stab at photons in
>> this scene took 28 hrs and it just didn't suit. I think some of the rays
>> are getting through the gaps between the peppercorns. I've been reading
>> (and re-reading) the docs on photons and I'm unclear about the setup I'm
>> using. I'd like to trim some time off that process and here's what I
>> have:
>>
>> union {
>> object { PepperMill scale 1.01 #if (UsePhotons) split_union off #end }
>> object { Peppercorns #if (UsePhotons) split_union off #end }
>> translate <-120,0,12.5>
>> rotate y*60
>> #if (UsePhotons)
>> photons { target reflection on refraction on collect off }
>> #end
>> }
>>
>> The peppercorns are a union of all the peppercorns is why I did it like
>> that, and just wanted a reality check so I don't waste another 28 hrs!
>
> I'm not sure that turning split_union off help you. If the union is
> split, you stop checking if you hit any object of the union, but, if you
> don't split it, each ray must test against all of your 2000 peper corns,
> even those on the oposite side or in the middle that have no hope of
> ever interacting with your photons...
> Anyway, do a test using only mockup spheres and one photons target
> object shining photons on the whole thing. Compare with and without
> split_union off.
>
> Not splitting the union of the peper mill itself may help in some cases,
> but it also may not.
> Do a test render with the empty peper mill and simple planes to collect
> the photons and compare the performances with and without split_union off.
>
> You don't need to use the conditional expression for your photons block.
> In a non-photons scene, any photons block is just silently ignored.
>
>
> Alain
Well after running a few test cases it became painfully obvious that the
peppercorns were the culprit ...
split_union off on the empty pepper-mill showed a gain in performance of
a little more than 30% (photon time) ... on just the peppercorns about
the same gain in photon time, but the render time increased by over 10x!!!
Using pass_through on the peppercorns just didn't seem to make any sense
for this case, so I took the peppercorns out of the pepper-mill union
and added them as a separate instance ... they appeared incorrectly
shaded, so back into the pepper-mill union.
While going over the docs yet again, the "Using Photon Mapping in Your
Scene" section in the reference gave me the idea to try (with what
appears to be favorable results) the following :
union {
object { PepperMill scale 1.01 #if (UsePhotons) split_union off #end }
object { Peppercorns
#if (UsePhotons)
photons { reflection off refraction off collect off }
#end
}
translate <-120,0,12.5>
rotate y*60
#if (UsePhotons)
photons { target reflection on refraction on collect off }
#end
}
The photon global settings previously used (that yielded 28 hrs render
time) now comes in at 35 min photon time and 13 min render time! Now I
hope I can decrease my spacing parameter (for better results) and save
that photon map, then move on to working on the radiosity :-)
Post a reply to this message
Attachments:
Download 'work.png' (602 KB)
Preview of image 'work.png'
![work.png](/povray.binaries.images/attachment/%3C50c9f3ab%40news.povray.org%3E/work.png?preview=1)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
> The photon global settings previously used (that yielded 28 hrs render
> time) now comes in at 35 min photon time and 13 min render time! Now I
> hope I can decrease my spacing parameter (for better results) and save
> that photon map, then move on to working on the radiosity :-)
You can fine tune the spacing on a per object basis using target.
target can be followed by a float. That value is a multiplicator to the
spacing.
If you use target 0.5, the spacing for that object will be half the
general spacing resulting in shooting 4 times as many photons to that
object, and 8 times as many photons in a media.
Using target 2 will double the spacing and thus divide the photons
density by 4 for that object.
It's good if you have about the right photons density in general but
some object need more, or can do with less, photons.
Alain
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Am 13.12.2012 16:25, schrieb James Holsenback:
> The photon global settings previously used (that yielded 28 hrs render
> time) now comes in at 35 min photon time and 13 min render time! Now I
> hope I can decrease my spacing parameter (for better results) and save
> that photon map, then move on to working on the radiosity :-)
I'm sorry to say it, Jim, but to me the pepper mill looks more like some
bubblegum vending machine...
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On 13/12/2012 3:25 PM, James Holsenback wrote:
> Well after running a few test cases...
It looks good but I can't help agreeing with Clipa. The scale of the
pepper mill is too big, for the home. (Are you sure that you're not from
Texas, where everything is bigger and better?) :-P
--
Regards
Stephen
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On 14-12-2012 13:48, Stephen wrote:
> On 13/12/2012 3:25 PM, James Holsenback wrote:
>> Well after running a few test cases...
>
>
> It looks good but I can't help agreeing with Clipa. The scale of the
> pepper mill is too big, for the home. (Are you sure that you're not from
> Texas, where everything is bigger and better?) :-P
>
LOL. From the /Hall of the Mountain King/ perhaps.
Thomas
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On 12/14/2012 07:48 AM, Stephen wrote:
> On 13/12/2012 3:25 PM, James Holsenback wrote:
>> Well after running a few test cases...
>
>
> It looks good but I can't help agreeing with Clipa. The scale of the
> pepper mill is too big, for the home. (Are you sure that you're not from
> Texas, where everything is bigger and better?) :-P
>
actually it's the rack and utensils that need scaling (all my attention
has been on pepper-mill) ... in this scene the bottom of the accent
stripe on the tile is 6 inches. i used a rl example for the mill design
so i think the proportions and size are good for this scene, once i get
the utensils the correct size i should be ok. as far as it looking like
a gumball machine ... other than possibly the chrome material i don't see
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On 14/12/2012 2:22 PM, James Holsenback wrote:
> as far as it looking like a gumball machine ... other than possibly the
> chrome material i don't see
I think that it is the scale and the brightly coloured peppercorns. In
the UK, we mostly see very dark brown, lighter dark brown or off white
ones. They also are quite dried up and gnarly.
--
Regards
Stephen
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On 12/14/2012 09:46 AM, Stephen wrote:
> On 14/12/2012 2:22 PM, James Holsenback wrote:
>> as far as it looking like a gumball machine ... other than possibly the
>> chrome material i don't see
>
> I think that it is the scale and the brightly coloured peppercorns. In
> the UK, we mostly see very dark brown, lighter dark brown or off white
> ones. They also are quite dried up and gnarly.
>
lot's of diff colors here ....
http://www.fotosearch.com/photos-images/peppercorn.html
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On 14/12/2012 3:03 PM, James Holsenback wrote:
>>
>> I think that it is the scale and the brightly coloured peppercorns. In
>> the UK, we mostly see very dark brown, lighter dark brown or off white
>> ones. They also are quite dried up and gnarly.
>>
>
> lot's of diff colors here ....
> http://www.fotosearch.com/photos-images/peppercorn.html
I know that they exist but "it's not for the likes of us" ;-)
--
Regards
Stephen
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |