![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: stbenge
Subject: RTR isosurface clouds screen shot and code (28k jpg)
Date: 14 Oct 2008 19:40:24
Message: <48f52de8@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Hi,
Nothing massively important here, just a real-time raytracing test
involving volumetric isosurface clouds. There are no light_sources; I
faked lighting by using a texture with an ambient finish. As you can see
in the image, it's possible to get reasonably fast frame rates (when
using more than one core).
For real-time raytracing, POV does not support animating anything but
the camera, which makes things like this impossible unless you "cheat"
by having one object per frame, like frames on a film strip.
I noticed that beta 25 runs faster than 27. I don't know why this is. I
hope the POV Team keeps real-time raytracing as an option!
For those who are interested and have a quick computer, here is the code:
//recommended resolution:
//160x120
//add this to the command line:
//+a0.1 +am2 +r1 +j0.0 +bm2 +kla +rtr
#include"transforms.inc"
#default{finish{ambient 0}}
// distance from one object to the next
#declare step=30;
// number of frames
#declare frames=10000;
#declare V=0;
#while(V<frames)
camera {
right x*4/3
up y
location<V*step,-10,-10>
look_at <V*step, 0, 0>
angle 40
}
#declare V=V+1;
#end
#declare lpos = <1,.5,0>;
#declare lcol = <1,.875,.5>*2;
#declare air = <.1 .2 .5>;
sky_sphere{
pigment{
spherical scale 2 translate y
Point_At_Trans(lpos)
poly_wave 2
pigment_map{
[0 rgb air-.1]
[1 rgb lcol*2]
}
}
}
fog{rgb air fog_type 2 distance 5 fog_alt 1 fog_offset -2}
#declare pf=
function{
pattern{
granite scale 13
translate -20
}
}
#declare hSpeed=.05;
#declare vSpeed=.025;
#declare V=0;
#while(V<frames)
isosurface{
function{
-pf(x-V*hSpeed,y-V*vSpeed,z)+.5
}
accuracy .02 max_gradient 1
contained_by{box{<-12,-1,-12>,<12,1,12>}}
pigment{
function{pf(x-V*hSpeed,y-V*vSpeed,z)} translate lpos*.5
color_map{[.25 rgb(air+.5)/4][1 rgb lcol]}
}
finish{ambient 7.5 diffuse 0}
translate x*V*step
}
#declare V=V+1;
#end
Beware of using this technique! You can run out of memory very easily,
especially when using infinite objects such as planes.
Sam
Post a reply to this message
Attachments:
Download 'rtric.jpeg.jpg' (25 KB)
Preview of image 'rtric.jpeg.jpg'
![rtric.jpeg.jpg](/povray.binaries.images/attachment/%3C48f52de8%40news.povray.org%3E/rtric.jpeg.jpg?ttop=443866&toff=3000&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) |
stbenge <THI### [at] hotmail com> wrote:
> Hi,
>
> Nothing massively important here [...]
Indeed, from your posts we always expect something surprising!
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: stbenge
Subject: Re: RTR isosurface clouds screen shot and code (28k jpg)
Date: 15 Oct 2008 12:22:03
Message: <48f618ab$1@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Carlo C. wrote:
> stbenge <THI### [at] hotmail com> wrote:
>> Hi,
>>
>> Nothing massively important here [...]
>
> Indeed, from your posts we always expect something surprising!
Sorry to disappoint you with this one ;)
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) |
stbenge <THI### [at] hotmail com> wrote:
//add this to the command line:
> //+a0.1 +am2 +r1 +j0.0 +bm2 +kla +rtr
>
>
> #declare V=0;
> #while(V<frames)
> camera {
> right x*4/3
> up y
> location<V*step,-10,-10>
> look_at <V*step, 0, 0>
> angle 40
> }
> #declare V=V+1;
> #end
>
Parse Warning: More than one camera in scene. Ignoring previous camera(s).
Rendering using command line '+a0.1 +am2 +r1 +j0.0 +bm2 +kla +rtr'.
Integer parameter expected for switch 'B', found 'm2'.
Cannot process command-line at ' +kla +rtr' due to a parse error.
I can't seem to render using your code and command line.
I have povray 3.6 and magapov 1.2.1 neither seem to work
Leef_me
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Paolo Gibellini
Subject: Re: RTR isosurface clouds screen shot and code (28k jpg)
Date: 16 Oct 2008 04:42:26
Message: <48f6fe72$1@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Hallo, Sam!
Your code is interesting for static images too, decreasing a bit the
number of the frames we have strange and interesting lighted clouds.
;-)
Paolo
>stbenge on date 15/10/2008 01:40 wrote:
> Hi,
>
> Nothing massively important here, just a real-time raytracing test
> involving volumetric isosurface clouds. There are no light_sources; I
> faked lighting by using a texture with an ambient finish. As you can see
> in the image, it's possible to get reasonably fast frame rates (when
> using more than one core).
>
> For real-time raytracing, POV does not support animating anything but
> the camera, which makes things like this impossible unless you "cheat"
> by having one object per frame, like frames on a film strip.
>
> I noticed that beta 25 runs faster than 27. I don't know why this is. I
> hope the POV Team keeps real-time raytracing as an option!
>
> For those who are interested and have a quick computer, here is the code:
>
> //recommended resolution:
> //160x120
> //add this to the command line:
> //+a0.1 +am2 +r1 +j0.0 +bm2 +kla +rtr
>
> #include"transforms.inc"
>
> #default{finish{ambient 0}}
>
> // distance from one object to the next
> #declare step=30;
>
> // number of frames
> #declare frames=10000;
>
> #declare V=0;
> #while(V<frames)
> camera {
> right x*4/3
> up y
> location<V*step,-10,-10>
> look_at <V*step, 0, 0>
> angle 40
> }
> #declare V=V+1;
> #end
>
> #declare lpos = <1,.5,0>;
> #declare lcol = <1,.875,.5>*2;
> #declare air = <.1 .2 .5>;
>
> sky_sphere{
> pigment{
> spherical scale 2 translate y
> Point_At_Trans(lpos)
> poly_wave 2
> pigment_map{
> [0 rgb air-.1]
> [1 rgb lcol*2]
> }
> }
> }
>
> fog{rgb air fog_type 2 distance 5 fog_alt 1 fog_offset -2}
>
> #declare pf=
> function{
> pattern{
> granite scale 13
> translate -20
> }
> }
>
> #declare hSpeed=.05;
> #declare vSpeed=.025;
> #declare V=0;
> #while(V<frames)
> isosurface{
> function{
> -pf(x-V*hSpeed,y-V*vSpeed,z)+.5
> }
> accuracy .02 max_gradient 1
> contained_by{box{<-12,-1,-12>,<12,1,12>}}
> pigment{
> function{pf(x-V*hSpeed,y-V*vSpeed,z)} translate lpos*.5
> color_map{[.25 rgb(air+.5)/4][1 rgb lcol]}
> }
> finish{ambient 7.5 diffuse 0}
> translate x*V*step
> }
> #declare V=V+1;
> #end
>
> Beware of using this technique! You can run out of memory very easily,
> especially when using infinite objects such as planes.
>
> Sam
>
> ------------------------------------------------------------------------
>
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Warp
Subject: Re: RTR isosurface clouds screen shot and code (28k jpg)
Date: 16 Oct 2008 09:51:57
Message: <48f746fd$1@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Leef_me wrote:
> I can't seem to render using your code and command line.
> I have povray 3.6
That's the problem. The RTR feature is part of POV-Ray 3.7.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: stbenge
Subject: Re: RTR isosurface clouds screen shot and code (28k jpg)
Date: 16 Oct 2008 17:59:30
Message: <48f7b942$1@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Paolo Gibellini wrote:
> Hallo, Sam!
> Your code is interesting for static images too, decreasing a bit the
> number of the frames we have strange and interesting lighted clouds.
> ;-)
> Paolo
Hi Paolo,
Here, swap the pigment out for this one:
pigment{
function{pf(x-V*hSpeed,y-V*vSpeed,z)}
translate -lpos*.5
color_map{
[0 rgb lcol]
[.75 rgb(air+.5)/4]
}
}
It's just the opposite of the other one, but it looks much better.
Sam
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Paolo Gibellini
Subject: Re: RTR isosurface clouds screen shot and code (28k jpg)
Date: 17 Oct 2008 04:24:11
Message: <48f84bab$1@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Nice indeed...
A sort of sub-atomic clouds!
;-)
Paolo
>stbenge on date 16/10/2008 23:59 wrote:
> Paolo Gibellini wrote:
>> Hallo, Sam!
>> Your code is interesting for static images too, decreasing a bit the
>> number of the frames we have strange and interesting lighted clouds.
>> ;-)
>> Paolo
>
> Hi Paolo,
>
> Here, swap the pigment out for this one:
> pigment{
> function{pf(x-V*hSpeed,y-V*vSpeed,z)}
> translate -lpos*.5
> color_map{
> [0 rgb lcol]
> [.75 rgb(air+.5)/4]
> }
> }
>
> It's just the opposite of the other one, but it looks much better.
>
> Sam
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Alain
Subject: Re: RTR isosurface clouds screen shot and code (28k jpg)
Date: 18 Oct 2008 11:48:32
Message: <48fa0550$1@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Leef_me nous illumina en ce 2008-10-16 01:18 -->
> stbenge <THI### [at] hotmail com> wrote:
>
> //add this to the command line:
>> //+a0.1 +am2 +r1 +j0.0 +bm2 +kla +rtr
>>
>>
>> #declare V=0;
>> #while(V<frames)
>> camera {
>> right x*4/3
>> up y
>> location<V*step,-10,-10>
>> look_at <V*step, 0, 0>
>> angle 40
>> }
>> #declare V=V+1;
>> #end
>>
>
> Parse Warning: More than one camera in scene. Ignoring previous camera(s).
>
> Rendering using command line '+a0.1 +am2 +r1 +j0.0 +bm2 +kla +rtr'.
> Integer parameter expected for switch 'B', found 'm2'.
> Cannot process command-line at ' +kla +rtr' due to a parse error.
>
>
> I can't seem to render using your code and command line.
> I have povray 3.6 and magapov 1.2.1 neither seem to work
>
> Leef_me
>
+bm2 for bounding method 2 or binary tree bounding. Not available in version
3.6. A new 3.7 feature.
+rtr and +kla, for "real time render" is also a new 3.7 feature.
--
Alain
-------------------------------------------------
To define recursion, we must first define recursion.
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) |