![](/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) |
try using image_width to choose the photon count/spacing
Sven Littkowski napsal(a):
> Hi Ben,
>
> but even so, based on what I heard already, meanwhile, the photon map would
> still take 6 days, right?
>
> Sven
>
>
>
> "Chambers" <ben### [at] pacificwebguy com> schrieb im Newsbeitrag
> news:479bdf30$1@news.povray.org...
>> Sven Littkowski wrote:
>>> Hi.
>>>
>>> I have a scene, which already takes around 6 days to create the photon
>>> map for, if it is done in the same resolution like the remaining scene.
>>>
>>> I would like to know, if it is possible to use a lower resolution (let's
>>> say: 400x300) for the photon map (with the "save_file" option enabled),
>>> and then to stop and continue the scene in a high resolution (now with
>>> the "load_file" option enabled).
>> Sure, I do it myself. However, since the photon map is independent from
>> the scene resolution, you can set the image size absurdly low (like +w1
>> +h1) and still get a full-quality photon map.
>>
>> --
>> ...Ben Chambers
>> www.pacificwebguy.com
>
>
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Sven Littkowski
Subject: Re: Photon Map: Created at Lower Res than Scene?
Date: 27 Jan 2008 10:57:37
Message: <479ca9f1$1@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Hmm... THAT sounds interesting and promising, Jan. I looked into the POV
help file, and see the keywords "image_width" and "image_height". And also
some examples, how to use them. I really think, this could shorten the
calculation time, if I can find out, how to use them properly in connection
with my photon map creation.
Jan, can you give me some more advice in this? If you like, I could post the
scene file to you. Please let me know. Thanks,
Sven
"Jan Dvorak" <jan### [at] centrum cz> schrieb im Newsbeitrag
news:479c31b4$1@news.povray.org...
> try using image_width to choose the photon count/spacing
> Sven Littkowski napsal(a):
>> Hi Ben,
>>
>> but even so, based on what I heard already, meanwhile, the photon map
>> would still take 6 days, right?
>>
>> Sven
>>
>>
>>
>> "Chambers" <ben### [at] pacificwebguy com> schrieb im Newsbeitrag
>> news:479bdf30$1@news.povray.org...
>>> Sven Littkowski wrote:
>>>> Hi.
>>>>
>>>> I have a scene, which already takes around 6 days to create the photon
>>>> map for, if it is done in the same resolution like the remaining scene.
>>>>
>>>> I would like to know, if it is possible to use a lower resolution
>>>> (let's say: 400x300) for the photon map (with the "save_file" option
>>>> enabled), and then to stop and continue the scene in a high resolution
>>>> (now with the "load_file" option enabled).
>>> Sure, I do it myself. However, since the photon map is independent from
>>> the scene resolution, you can set the image size absurdly low (like +w1
>>> +h1) and still get a full-quality photon map.
>>>
>>> --
>>> ...Ben Chambers
>>> www.pacificwebguy.com
>>
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Jan Dvorak
Subject: Re: Photon Map: Created at Lower Res than Scene?
Date: 27 Jan 2008 17:02:39
Message: <479cff7f@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
You might decide to shoot image_width*image_height*some_constant
photons. Some_constant==1 might work well but feel free to increase for
high quality or decrease for faster render. Use the count keyword and
watch POV-ray do its best.
Sven Littkowski napsal(a):
> Hmm... THAT sounds interesting and promising, Jan. I looked into the POV
> help file, and see the keywords "image_width" and "image_height". And also
> some examples, how to use them. I really think, this could shorten the
> calculation time, if I can find out, how to use them properly in connection
> with my photon map creation.
>
> Jan, can you give me some more advice in this? If you like, I could post the
> scene file to you. Please let me know. Thanks,
>
> Sven
>
>
>
>
>
> "Jan Dvorak" <jan### [at] centrum cz> schrieb im Newsbeitrag
> news:479c31b4$1@news.povray.org...
>> try using image_width to choose the photon count/spacing
>> Sven Littkowski napsal(a):
>>> Hi Ben,
>>>
>>> but even so, based on what I heard already, meanwhile, the photon map
>>> would still take 6 days, right?
>>>
>>> Sven
>>>
>>>
>>>
>>> "Chambers" <ben### [at] pacificwebguy com> schrieb im Newsbeitrag
>>> news:479bdf30$1@news.povray.org...
>>>> Sven Littkowski wrote:
>>>>> Hi.
>>>>>
>>>>> I have a scene, which already takes around 6 days to create the photon
>>>>> map for, if it is done in the same resolution like the remaining scene.
>>>>>
>>>>> I would like to know, if it is possible to use a lower resolution
>>>>> (let's say: 400x300) for the photon map (with the "save_file" option
>>>>> enabled), and then to stop and continue the scene in a high resolution
>>>>> (now with the "load_file" option enabled).
>>>> Sure, I do it myself. However, since the photon map is independent from
>>>> the scene resolution, you can set the image size absurdly low (like +w1
>>>> +h1) and still get a full-quality photon map.
>>>>
>>>> --
>>>> ...Ben Chambers
>>>> www.pacificwebguy.com
>
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Sven Littkowski
Subject: Re: Photon Map: Created at Lower Res than Scene?
Date: 27 Jan 2008 18:15:49
Message: <479d10a5$1@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Shooting the image with those keywords... Hmm, do you mean that I need to
put these two keywords inside the camera directive? To be honest, due the
lack of experience and knowledge with these two keywords, i would just like
to ask you to give an example where and how to use these two keywords in a
scene. I think, that should help me.
Thanks, Jan.
Sven
"Jan Dvorak" <jan### [at] centrum cz> schrieb im Newsbeitrag
news:479cff7f@news.povray.org...
> You might decide to shoot image_width*image_height*some_constant photons.
> Some_constant==1 might work well but feel free to increase for high
> quality or decrease for faster render. Use the count keyword and watch
> POV-ray do its best.
> Sven Littkowski napsal(a):
>> Hmm... THAT sounds interesting and promising, Jan. I looked into the POV
>> help file, and see the keywords "image_width" and "image_height". And
>> also some examples, how to use them. I really think, this could shorten
>> the calculation time, if I can find out, how to use them properly in
>> connection with my photon map creation.
>>
>> Jan, can you give me some more advice in this? If you like, I could post
>> the scene file to you. Please let me know. Thanks,
>>
>> Sven
>>
>>
>>
>>
>>
>> "Jan Dvorak" <jan### [at] centrum cz> schrieb im Newsbeitrag
>> news:479c31b4$1@news.povray.org...
>>> try using image_width to choose the photon count/spacing
>>> Sven Littkowski napsal(a):
>>>> Hi Ben,
>>>>
>>>> but even so, based on what I heard already, meanwhile, the photon map
>>>> would still take 6 days, right?
>>>>
>>>> Sven
>>>>
>>>>
>>>>
>>>> "Chambers" <ben### [at] pacificwebguy com> schrieb im Newsbeitrag
>>>> news:479bdf30$1@news.povray.org...
>>>>> Sven Littkowski wrote:
>>>>>> Hi.
>>>>>>
>>>>>> I have a scene, which already takes around 6 days to create the
>>>>>> photon map for, if it is done in the same resolution like the
>>>>>> remaining scene.
>>>>>>
>>>>>> I would like to know, if it is possible to use a lower resolution
>>>>>> (let's say: 400x300) for the photon map (with the "save_file" option
>>>>>> enabled), and then to stop and continue the scene in a high
>>>>>> resolution (now with the "load_file" option enabled).
>>>>> Sure, I do it myself. However, since the photon map is independent
>>>>> from the scene resolution, you can set the image size absurdly low
>>>>> (like +w1 +h1) and still get a full-quality photon map.
>>>>>
>>>>> --
>>>>> ...Ben Chambers
>>>>> www.pacificwebguy.com
>>
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Jan Dvorak
Subject: Re: Photon Map: Created at Lower Res than Scene?
Date: 27 Jan 2008 21:38:17
Message: <479d4019@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
global_settings{
photons{
count image_width*image_height
...
}
...
}
untested
Sven Littkowski napsal(a):
> Shooting the image with those keywords... Hmm, do you mean that I need to
> put these two keywords inside the camera directive? To be honest, due the
> lack of experience and knowledge with these two keywords, i would just like
> to ask you to give an example where and how to use these two keywords in a
> scene. I think, that should help me.
>
> Thanks, Jan.
>
> Sven
>
>
>
> "Jan Dvorak" <jan### [at] centrum cz> schrieb im Newsbeitrag
> news:479cff7f@news.povray.org...
>> You might decide to shoot image_width*image_height*some_constant photons.
>> Some_constant==1 might work well but feel free to increase for high
>> quality or decrease for faster render. Use the count keyword and watch
>> POV-ray do its best.
>> Sven Littkowski napsal(a):
>>> Hmm... THAT sounds interesting and promising, Jan. I looked into the POV
>>> help file, and see the keywords "image_width" and "image_height". And
>>> also some examples, how to use them. I really think, this could shorten
>>> the calculation time, if I can find out, how to use them properly in
>>> connection with my photon map creation.
>>>
>>> Jan, can you give me some more advice in this? If you like, I could post
>>> the scene file to you. Please let me know. Thanks,
>>>
>>> Sven
>>>
>>>
>>>
>>>
>>>
>>> "Jan Dvorak" <jan### [at] centrum cz> schrieb im Newsbeitrag
>>> news:479c31b4$1@news.povray.org...
>>>> try using image_width to choose the photon count/spacing
>>>> Sven Littkowski napsal(a):
>>>>> Hi Ben,
>>>>>
>>>>> but even so, based on what I heard already, meanwhile, the photon map
>>>>> would still take 6 days, right?
>>>>>
>>>>> Sven
>>>>>
>>>>>
>>>>>
>>>>> "Chambers" <ben### [at] pacificwebguy com> schrieb im Newsbeitrag
>>>>> news:479bdf30$1@news.povray.org...
>>>>>> Sven Littkowski wrote:
>>>>>>> Hi.
>>>>>>>
>>>>>>> I have a scene, which already takes around 6 days to create the
>>>>>>> photon map for, if it is done in the same resolution like the
>>>>>>> remaining scene.
>>>>>>>
>>>>>>> I would like to know, if it is possible to use a lower resolution
>>>>>>> (let's say: 400x300) for the photon map (with the "save_file" option
>>>>>>> enabled), and then to stop and continue the scene in a high
>>>>>>> resolution (now with the "load_file" option enabled).
>>>>>> Sure, I do it myself. However, since the photon map is independent
>>>>>> from the scene resolution, you can set the image size absurdly low
>>>>>> (like +w1 +h1) and still get a full-quality photon map.
>>>>>>
>>>>>> --
>>>>>> ...Ben Chambers
>>>>>> www.pacificwebguy.com
>
>
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Nicolas Alvarez
Subject: Re: Photon Map: Created at Lower Res than Scene?
Date: 27 Jan 2008 21:50:18
Message: <479d42ea$1@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
[Posting to newsgroup since other people may be interested]
Now that you sent me the files... The scene is quite slow to render
(55pps) even without radiosity or photons. I tried with photons, and
there were very long periods where the "photons shot" counter didn't
change, which could mean POV-Ray is shooting lots of photons but
"missing the object".
What I'm suspecting is that POV-Ray is creating sub-optimal bounding
boxes. I see a lot of difference objects on your scene. POV-Ray
sometimes does a bad job bounding difference/intersection CSG.
I'm now rendering a 160x120 image to see the raytrace statistics at the
end, and see if there were a lot of misses or not. Stay tuned...
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Nicolas Alvarez
Subject: Re: Photon Map: Created at Lower Res than Scene?
Date: 27 Jan 2008 22:05:32
Message: <479d467c$1@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Nicolas Alvarez escribió:
> I'm now rendering a 160x120 image to see the raytrace statistics at the
> end, and see if there were a lot of misses or not. Stay tuned...
Ray->Shape Intersection Tests Succeeded Percentage
Plane 3224478 124068 3.85
Torus 12394622 976314 7.88
Torus Bound 12394622 1072053 8.65
Cone/Cylinder 103967072 15537453 14.94
CSG Intersection 95235655 24004815 25.21
Sphere 48158288 13067745 27.13
CSG Union 28433556 12742408 44.81
Box 261303211 123172730 47.14
Light Buffer 418693292 219308071 52.38
Blob 96908476 51630734 53.28
Blob Bound 883968592 471672540 53.36
Bounding Box 166046777 100557601 60.56
Vista Buffer 2803512 1912181 68.21
Blob Component 317778794 254071826 79.95
CSG Merge 25841750 25837528 99.98
(table sorted by percentage)
Intersection wasn't as bad as I expected. Torus has a particularly low
value. Plane calculation is quite fast, so that one isn't important.
It's still possible that some manual bounding could improve things.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Jan Dvorak
Subject: Re: Photon Map: Created at Lower Res than Scene?
Date: 27 Jan 2008 22:20:05
Message: <479d49e5@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Nicolas Alvarez napsal(a):
> Nicolas Alvarez escribió:
>> I'm now rendering a 160x120 image to see the raytrace statistics at
>> the end, and see if there were a lot of misses or not. Stay tuned...
>
> Ray->Shape Intersection Tests Succeeded Percentage
>
> Plane 3224478 124068 3.85
> Torus 12394622 976314 7.88
> Torus Bound 12394622 1072053 8.65
> Cone/Cylinder 103967072 15537453 14.94
> CSG Intersection 95235655 24004815 25.21
> Sphere 48158288 13067745 27.13
> CSG Union 28433556 12742408 44.81
> Box 261303211 123172730 47.14
> Light Buffer 418693292 219308071 52.38
> Blob 96908476 51630734 53.28
> Blob Bound 883968592 471672540 53.36
> Bounding Box 166046777 100557601 60.56
> Vista Buffer 2803512 1912181 68.21
> Blob Component 317778794 254071826 79.95
> CSG Merge 25841750 25837528 99.98
>
> (table sorted by percentage)
>
> Intersection wasn't as bad as I expected. Torus has a particularly low
> value. Plane calculation is quite fast, so that one isn't important.
>
> It's still possible that some manual bounding could improve things.
torus is tested only if its bound fails. It is bounded by a tight
difference of two cyliders.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Nicolas Alvarez
Subject: Re: Photon Map: Created at Lower Res than Scene?
Date: 27 Jan 2008 22:27:39
Message: <479d4bab$1@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Jan Dvorak escribió:
> torus is tested only if its bound fails. It is bounded by a tight
> difference of two cyliders.
Interesting fact. I knew it, now that you mention it; but I didn't
remember (been a while since I read it).
Any idea why both torus and its bounding shape have such low hit percentage?
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Nicolas Alvarez
Subject: Re: Photon Map: Created at Lower Res than Scene?
Date: 27 Jan 2008 22:31:31
Message: <479d4c93$1@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
> I tried with photons, and
> there were very long periods where the "photons shot" counter didn't
> change, which could mean POV-Ray is shooting lots of photons but
> "missing the object".
Photon count went up until a minute of shooting passed, then it got
stuck at 41294 photons shot. Been at that number for *20 minutes*.
There is clearly some bounding issue!
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) |