POV-Ray : Newsgroups : povray.general : True Antialiasing : Re: True Antialiasing Server Time
4 Nov 2024 23:19:24 EST (-0500)
  Re: True Antialiasing  
From: Rafal 'Raf256' Maj
Date: 27 Aug 2003 10:41:41
Message: <Xns93E4A9BEFA0D1raf256com@204.213.191.226>
nomail@nomail news:web.3f4cb0bf4d31ed7fd63a77300@news.povray.org

[...]

I had lately other idea about AA, how about introducing mip-maping or some 
simmilar methods.

1) For image-maps, POV could create mip-maps not only for interpolating 
input data (with is done already), but for better AA.

2) For procedural pigments - few functions - most complicated and most 
"blurred". 

Example:

pigment {
  mipmap {
    [1..50 function { f_checker(x,y,z).9 + .1+f_granite(x,y,z)*FADE }]
    [50..500 function { 0.5 + f_checker(x,y,z)*FADE }]
  }  
}

Result - surface viewed from near would be a checker modulated by bozo - 
and it's the "real" pigment.
Surface viewed from distance 1..50 will fade out bozo and, at 50 - it will 
left only checker
At distance 50..5000 also checker will fade-out into gray color rgb .5

And Yes, I *will* implement it :) First as include file, because this can 
be IMHO done with macros (in some area).


-- 
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

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