POV-Ray : Newsgroups : povray.binaries.images : snow subsurface file Server Time
7 Nov 2024 00:19:06 EST (-0500)
  snow subsurface file (Message 1 to 10 of 14)  
Goto Latest 10 Messages Next 4 Messages >>>
From: And
Subject: snow subsurface file
Date: 1 Dec 2017 00:10:01
Message: <web.5a20e35f56f808c27e12b7e70@news.povray.org>
I slightly revised my file, then post here. In fact I'm not sure its scale is
right or not. I haven't seen snow in real life. It's a box with 3.2 meter side
lengths.


#version 3.7;



global_settings{
max_trace_level 3
assumed_gamma 1.0
adc_bailout 0.007
mm_per_unit 1000 //important for subsurface

radiosity{
 pretrace_start 64/image_width
 pretrace_end   4/image_width
 count 60
 nearest_count 6
 error_bound 0.64
 recursion_limit 8
 low_error_factor 0.5
 gray_threshold 0.0
 brightness 1
}
    subsurface{
        samples 10, 10
        radiosity off
    }
}

default{
texture{
    pigment {rgb<0.2,0.2,0.2>}
    finish{ambient 0 diffuse 0}
}
}
//---------------------background------------------------
background{rgb <0,0,0>}

//-------------------settings--------------------------------
//--------------------light source-----------------------------




light_source {
<-4, -2.5, 4>*100
color rgb <1.0, 0.88, 0.76>*0.80
parallel
point_at <0.0, 0.0, 0.0>
rotate <0,0,-56>
}





sky_sphere{
    pigment {rgb <0.35,0.55,1>*0.36}
}


//------------------------------------------












//My render is z toward sky, xy horizon


camera{
location <8,4,4>
look_at <0, 0, 0>
right <-4/3,0,0>
sky <0,0,1>
angle 24
}
//----------------------------------------


#declare material_snow =
material{
    texture{
        pigment{
        rgb<0.93,0.93,0.93>
        }
        finish{
            diffuse 1.0
            subsurface{translucency rgb<1,1,1>*6}
        }
    }
}


//----------------ground------------------------







#declare t_soil1=
texture{
    pigment{rgb<0.2,0.164,0.1>*0.9}
    finish{ambient 0 diffuse 1}
}




plane{
<0,0,1>,0
texture{t_soil1}
}







//--------------------cloud----------------------

#include "functions.inc"


#declare f_test =
function(x,y,z) {
   +0.20*sum(i, 0, 3, pow(abs(f_noise3d(x*pow(2, i)/0.3, y*pow(2, i)/0.3,
z*pow(2, i)/0.3)), 2.5)/pow(2.0, i) )


}

isosurface {
    function {0.5 - f_test(x,y,z)*3.5*3.5*z*exp(-3.5*z) -
0.32*3.5*3.5*z*exp(-3.5*z)}
    contained_by { box { <-1.0, -1.0, 0.0>, <1.0, 1.0, 1.0> } }
threshold 0.0
accuracy 0.001
max_gradient 2
//all_intersections
//open

    material{
    material_snow
    }


    scale <1.6, 1.6, 0.8>
    translate<0,0,0>

}






#declare t_soil2=
texture{
    pigment{
        function{0.5 + 0.2* (0.5 - f_test(x,y,z)*3.5*3.5*z*exp(-3.5*z) -
0.32*3.5*3.5*z*exp(-3.5*z))}
        color_map{
            [0.0 rgb<0.2,0.164,0.1>*0.03]
            [0.504 rgb<0.2,0.164,0.1>*0.03]
            [0.533 rgb<0.2,0.164,0.1>*0.9]
            [1.0 rgb<0.2,0.164,0.1>*0.9]


        }
        scale <1.6, 1.6, 0.8>
    }
    finish{ambient 0 diffuse 1}
}

box{
<-1.601, -1.601, 0.0>, <1.601, 1.601, 0.20>
texture{t_soil2}


}


Post a reply to this message


Attachments:
Download 'snow.png' (303 KB)

Preview of image 'snow.png'
snow.png


 

From: Sven Littkowski
Subject: Re: snow subsurface file
Date: 1 Dec 2017 00:44:15
Message: <5a20ec2f$1@news.povray.org>
Yes, not bad at all! It can easily go as "snow". Only thing I would
suggest is to add some sort of tiny crystalline structure to the
surface, similar to crand, with tiny light reflections.

---

http://www.avg.com


Post a reply to this message

From: Stephen
Subject: Re: snow subsurface file
Date: 1 Dec 2017 02:25:39
Message: <5a2103f3$1@news.povray.org>
On 01/12/2017 05:06, And wrote:
> I haven't seen snow in real life.

You are doing very well then. You lucky person. :-)
(And in case you don't know. "Not bad" can mean "very good" in some 
parts of the English speaking world.)


-- 

Regards
     Stephen


Post a reply to this message

From: And
Subject: Re: snow subsurface file
Date: 1 Dec 2017 03:35:01
Message: <web.5a211313c7d35cdd7e12b7e70@news.povray.org>
Stephen <mca### [at] aolcom> wrote:
> On 01/12/2017 05:06, And wrote:
> > I haven't seen snow in real life.
>
> You are doing very well then. You lucky person. :-)
> (And in case you don't know. "Not bad" can mean "very good" in some
> parts of the English speaking world.)
>
>
> --
>
> Regards
>      Stephen

Lol You flatter me immensely


Post a reply to this message

From: Sven Littkowski
Subject: Re: snow subsurface file
Date: 1 Dec 2017 04:35:53
Message: <5a212279$1@news.povray.org>
On 01.12.2017 02:25, Stephen wrote:
> (And in case you don't know. "Not bad" can mean "very good" in some
> parts of the English speaking world.)

So true. I knew exactly. :-)

---

http://www.avg.com


Post a reply to this message

From: Stephen
Subject: Re: snow subsurface file
Date: 1 Dec 2017 05:19:30
Message: <5a212cb2$1@news.povray.org>
On 01/12/2017 09:35, Sven Littkowski wrote:
> On 01.12.2017 02:25, Stephen wrote:
>> (And in case you don't know. "Not bad" can mean "very good" in some
>> parts of the English speaking world.)
> 
> So true. I knew exactly. :-)
> 

I guessed you did. I know the equivalent is used in some parts of 
Germany. It is the opposite of backhanded compliment.


-- 

Regards
     Stephen


Post a reply to this message

From: Stephen
Subject: Re: snow subsurface file
Date: 1 Dec 2017 05:21:24
Message: <5a212d24$1@news.povray.org>
On 01/12/2017 08:30, And wrote:
> Stephen <mca### [at] aolcom> wrote:
>> On 01/12/2017 05:06, And wrote:
>>> I haven't seen snow in real life.
>>
>> You are doing very well then. You lucky person. :-)
>> (And in case you don't know. "Not bad" can mean "very good" in some
>> parts of the English speaking world.)
>>
>>
>> --
>>
>> Regards
>>       Stephen
> 
> Lol You flatter me immensely
> 

No. They are very good. Some of the best clouds I've seen.
Better even than the dull grey ones outside my window. ;-)

-- 

Regards
     Stephen


Post a reply to this message

From: Sven Littkowski
Subject: Re: snow subsurface file
Date: 1 Dec 2017 06:11:09
Message: <5a2138cd$1@news.povray.org>
On 01.12.2017 05:19, Stephen wrote:
> I guessed you did. I know the equivalent is used in some parts of
> Germany. It is the opposite of backhanded compliment.

True again. :-)

---

http://www.avg.com


Post a reply to this message

From: Stephen
Subject: Re: snow subsurface file
Date: 1 Dec 2017 06:20:52
Message: <5a213b14$1@news.povray.org>
On 01/12/2017 11:10, Sven Littkowski wrote:
> On 01.12.2017 05:19, Stephen wrote:
>> I guessed you did. I know the equivalent is used in some parts of
>> Germany. It is the opposite of backhanded compliment.
> 
> True again. :-)
> 

I'm good, aren't I. ;-)


-- 

Regards
     Stephen


Post a reply to this message

From: And
Subject: Re: snow subsurface file
Date: 1 Dec 2017 07:10:00
Message: <web.5a21464ac7d35cdd7e12b7e70@news.povray.org>
Stephen <mca### [at] aolcom> wrote:
> On 01/12/2017 11:10, Sven Littkowski wrote:
> > On 01.12.2017 05:19, Stephen wrote:
> >> I guessed you did. I know the equivalent is used in some parts of
> >> Germany. It is the opposite of backhanded compliment.
> >
> > True again. :-)
> >
>
> I'm good, aren't I. ;-)
>
>
> --
>
> Regards
>      Stephen

You are a nice man.


Post a reply to this message

Goto Latest 10 Messages Next 4 Messages >>>

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