|
|
This is an attempt to use MegaPOV's proximity pattern in conjuction
with media. It leads to very interesting results, tough it's
slooooow (well, text object + sampled pattern + sampled media =
expected slugginess). I might try with other objects...
Dirty code and image follows.
---
#version unofficial MegaPov 0.5;
#include "colors.inc"
camera {location <50,50,100> direction z*2 look_at <0,0,0>}
#declare Obj1=//box {<0,0,-5>,<15,15,5> pigment {Red}}
text {ttf "trebuc.ttf","Neon",.1,0 pigment {OrangeRed*2}
scale 17 rotate y*-180 translate x*10}
object {Obj1}
#declare Sp1=
sphere {0,50 hollow
pigment {White transmit 1}
interior {
media {
method 2
intervals 8
samples 2,8
//confidence
//variance
//ratio
//absorption rgb <,,>
emission rgb 0.02
//scattering { Type, COLOR [ eccentricity Value ] [
extinction Value ] }
density {
proximity {
Obj1, 10
type 1 method 0
sides 1
sample_weighting <0, 0, 0>
samples 10
max_density 1
sample_bailout 30
type 1 //0 : dist moyenne, 1 plus petite
distance,
//2 somme des longeurs de tous les
vecteurs du point aux samples,
//3 : type 0 avec un falloff
method 0 //0 : random dans bbox, 1 : random, 2
randbb si hors de la bb, sinon rand.
sides 1 //0 faces internes, 1 faces externes, 2
les deux.
}//fin prox
color_map {[0 White+Orange][1 Black]}
//scale 40
}
}//fin media
}//fin interior
}
object {Sp1}
light_source {<400,500,300> White*2}
Post a reply to this message
Attachments:
Download 'proximedia.jpg' (7 KB)
Preview of image 'proximedia.jpg'
|
|
|
|
In article <3971C51C.F4C48A5D@skynet.be>, Fabien Mosen
<fab### [at] skynetbe> wrote:
> This is an attempt to use MegaPOV's proximity pattern in conjuction
> with media. It leads to very interesting results, tough it's
> slooooow (well, text object + sampled pattern + sampled media =
> expected slugginess). I might try with other objects...
Well, I have been trying to think of a way to reduce the "grainyness"
problem without requiring too many samples...maybe by initially doing 2
groups of samples, measuring the difference between their results, and
optionally making additional samples if they are too different...or
something like that.
What would be nice would be the ability to reuse samples, which would
not only be smoother, but a lot faster...but to do that well would
require a "pre-trace" stage, similar to radiosity, and would consume a
lot of memory. And I have no idea how to do it...
--
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/
Post a reply to this message
|
|