|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Dear all,
I started rendering a simple scene with the Radiosity this week.
Would it be possible to apply both the Radiosity and the Photon mapping at
the same scene, for example, a scene comprising an almost transparent glass
cylinder on top of a reflecting plastic gray floor?
If possible, how would I change the global_settings?
The samples I tried below did not work well enough.
Any comments would be welcome!
-------Part of my First try -----
//-------------------------------------------
// radiosity test together with PHOTON Mapping
global_settings {
radiosity {
pretrace_start 0.08
pretrace_end 0.04
count 35
nearest_count 5
error_bound 1.8
recursion_limit 3
low_error_factor 0.5
gray_threshold 0.0
minimum_reuse 0.015
brightness 1
adc_bailout 0.01/2
}
}
//------------------------------------------------
#declare Photons=on;
global_settings {
assumed_gamma 1.0
max_trace_level 50
#if (Photons) // global photon block
photons {
spacing 0.01 // specify the density of photons
//count 100000 // alternatively use a total number of
photons
//gather min, max // amount of photons gathered during
render [20, 100]
//media max_steps [,factor] // media photons
//jitter 1.0 // jitter phor photon rays
//max_trace_level 5 // optional separate max_trace_level
//adc_bailout 1/255 // see global adc_bailout
//save_file "filename" // save photons to file
//load_file "filename" // load photons from file
//autostop 0 // photon autostop option
//radius 10 // manually specified search radius
// (---Adaptive Search Radius---)
//steps 1
//expand_thresholds 0.2, 40
}
#end
}
// ----------------------------------------
#declare M_Glass= // Glass material
material {
texture {
pigment {rgbt 1}
finish {
ambient 0.0
diffuse 0.09
specular 0.50
roughness 0.013
reflection {
0.05, 1.0
fresnel on
}
conserve_energy
}
}
interior {
ior 1.50
fade_power 100
fade_distance 0.9
fade_color <0.5,0.8,0.6>
}
}
// Light1
light_source {
<27.2831, 56.2092, 50.7291>
color rgb <1, 1, 1> *1.2
photons { // photon block for a light source
refraction on
reflection on
}
}
//
light_source {
<-14.943, 29.7022, 16.4799>
color rgb <1, 1, 1> *1.15
photons { // photon block for a light source
refraction on
reflection on
}
}
..... deleted ...
object { Object1 material { M_Glass}
photons { // photon block for an object
target 1.0
refraction on
reflection on
collect off
}
}
..... deleted ...
Post a reply to this message
|
|
| |
| |
|
|
From: Warp
Subject: Re: Radiosity and Photon Mapping possible at the same time?
Date: 30 Dec 2004 09:09:56
Message: <41d40c34@news.povray.org>
|
|
|
| |
| |
|
|
Sunny <sjy### [at] hanmailnet> wrote:
> Would it be possible to apply both the Radiosity and the Photon mapping at
> the same scene
Why wouldn't it be possible? Is there something which would make them
mutually exclusive?
> If possible, how would I change the global_settings?
Just putting a radiosity block and a photons block in the global_settings
block should do it.
--
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}// - Warp -
Post a reply to this message
|
|
| |
| |
|
|
From: Alain
Subject: Re: Radiosity and Photon Mapping possible at the same time?
Date: 30 Dec 2004 10:09:14
Message: <41d41a1a$1@news.povray.org>
|
|
|
| |
| |
|
|
Sunny nous apporta ses lumieres ainsi en ce 2004-12-30 03:41... :
>Dear all,
>
> I started rendering a simple scene with the Radiosity this week.
>Would it be possible to apply both the Radiosity and the Photon mapping at
>the same scene, for example, a scene comprising an almost transparent glass
>cylinder on top of a reflecting plastic gray floor?
>If possible, how would I change the global_settings?
>The samples I tried below did not work well enough.
>
>Any comments would be welcome!
>
>
Use a single global_settings block containing both radiosity and photons
blocks:
global_settings{
radiosity{
<radiosity elements>
}
photons{
<photons elements>
}
}
Alain
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Dear Warp and Alain,
I really appreciate your help and comments in this regard.
Now, it's working perfect with a reasonably short rendering time.
I was afraid it might take tremendous amount of time. Thanks.
Sunny
"Sunny" <sjy### [at] hanmailnet> wrote:
> Dear all,
>
> I started rendering a simple scene with the Radiosity this week.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|