POV-Ray : Newsgroups : povray.general : save hf pattern ? : Re: save hf pattern ? Server Time
5 Aug 2024 18:25:33 EDT (-0400)
  Re: save hf pattern ?  
From: Rafal 'Raf256' Maj
Date: 30 Sep 2002 22:09:50
Message: <Xns929A2A21FA61Craf256com@204.213.191.226>
Christopher James Huff <chr### [at] maccom> wrote in
news:chr### [at] netplexaussieorg 

> I said cases where different functions had the same hash "signature" 
> would be rare, this would be quite a bit more common.

below
 
>> Mine's statment - 15 sec *but* on 1,7 GHz where render time for
>> 640x480 is 5 sec - 75% is pares-time.
> Huh? As rendering speed increases, parse speed will also increase. And
> in that range it is irrelevant unless you are doing an animation,
> where you probably would want to use an image file. For less
> simplistic images, it will take a much smaller percentage.

but for realy-complex HF's againt it would be a big part of total 
parse+render time.
 
> Right, see above. Your numbers still support me.

(parse + render times with and without caching)
write new HF formula -       15 + 5   15 + 5
change HF formula            15 + 5   15 + 5
go back to previous  form.    1 + 5   15 + 5
change other things in scene  1 + 5   15 + 5

Yes, I can go to another file, render HF-16 and go back to my scene but 
this is just UNCOMFORTABLE, and for lame-users (that would i.e. like to 
help me to render long aniamtions) - almost impossible.

> By "trimming pattern formula", I assume you mean the hash value 
> "signature" assigned to the function? Yes, it would be extremely
> complex to do. You don't seem to have any idea how many things could
> change functions, how many things would have to be taken into account,
> and how messy that code would look. It would add an entirely new
> system to POV-Ray, with very little benefit.

1. sin(x)*power  + clock + y+z+rand(seed1) // input 
2. sin(x)*power+clock+y+z+rand(seed1)      // no spaces 
3. sin(x)*3.0+0.1+y+z+rand(777)            // constants - ready

now show me formula that will result in _differnet_ pattern and that will 
give _same_ hash as "sin(x)*3.0+0.1+y+z+rand(777)"
 
>> cache system is a problem for YOU ? 
>> Ok, I'll write it (in few days, focal-blur path first :)
> Haha, go ahead.

ok. but if I do - You will help me to nicely merge it POV code, right ?

-- 
#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.