POV-Ray : Newsgroups : povray.binaries.scene-files : Proximity and subsurface scattering macros + examples Server Time
23 Apr 2024 10:09:25 EDT (-0400)
  Proximity and subsurface scattering macros + examples (Message 1 to 6 of 6)  
From: stbenge
Subject: Proximity and subsurface scattering macros + examples
Date: 10 Aug 2008 15:48:32
Message: <489f4610@news.povray.org>
Okay, here they are! The proximity and SSS pattern macros, as seen in 
p.b-images.

Full documentation is included within the inc file, so be sure to read 
it carefully to avoid long parse/render times. The examples have highish 
settings, and don't represent the fastest speeds achievable.

Have fun with these! You can add scuff marks to the edges, dirt to the 
corners, and light scattering to the surfaces of your objects now :)

Happy rendering!

Sam


Post a reply to this message


Attachments:
Download 'fastprox.zip' (8 KB)

From: stbenge
Subject: Re: Proximity and subsurface scattering macros + examples
Date: 10 Aug 2008 17:12:53
Message: <489f59d5@news.povray.org>
I forgot to mention that you may get strange artifacts if the vector 
right after the min/max vectors is too high. This is especially true for 
curved surfaces. You will have to fiddle with it to achieve a desirable 
result. The value right after than should be set to 2 or more. Higher 
values give more falloff, and tend to reduce artifacts.

The patterns are 3d, so they can be used for media and isosurface 
functions, although these will take a long time to render.

Also, I did not make a fastSSS3 macro to behave like fastProx3. You can 
probably make one yourself by looking at the code.

That is all :)

edit:
One last thing. You can transform the object after applying a pattern to 
it, but don't expect this to work very well with the SSS pattern.

For SSS you should apply your transforms *first*, and then apply the 
pattern to the object and adjust the bounding box accordingly.

The proximity patterned object can be transformed anytime, as it does 
not take a light position into account.

Sam


Post a reply to this message

From: And
Subject: Re: Proximity and subsurface scattering macros + examples
Date: 9 Jul 2023 09:40:00
Message: <web.64aab7c373f2e83512686435aa81652d@news.povray.org>
I research this and Edouard's df3prox-0.95 , thanks for the idea and detail how
it can achieve. I'm planing to write macros with such pattern storage in .df3,
too. I want to write a slope pattern with proximity pattern at the same time.


Post a reply to this message

From: jr
Subject: Re: Proximity and subsurface scattering macros + examples
Date: 9 Jul 2023 17:30:00
Message: <web.64ab262d73f2e835b49d80446cde94f1@news.povray.org>
hi,

"And" <49341109@ntnu.edu.tw> wrote:
> I research this and Edouard's df3prox-0.95 ... I'm planing to write macros with such
pattern storage in .df3,

may be worth looking at PB's page, too:
<http://paulbourke.net/miscellaneous/povexamples/#df3>


regards, jr.


Post a reply to this message

From: And
Subject: Re: Proximity and subsurface scattering macros + examples
Date: 10 Jul 2023 00:50:00
Message: <web.64ab8cff73f2e83512686435aa81652d@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:
> hi,
>
> may be worth looking at PB's page, too:
> <http://paulbourke.net/miscellaneous/povexamples/#df3>
>
>
> regards, jr.

Thank you very much. I ever saw this page many years ago, but if you didn't
remind me, I have forgot it.


Post a reply to this message

From: And
Subject: Re: Proximity and subsurface scattering macros + examples
Date: 11 Jul 2023 09:55:00
Message: <web.64ad5e0073f2e835ee1d8e88aa81652d@news.povray.org>
I think that I can calculate several properties together in the main loop.

1). Proximity pattern

2). Slope pattern
   just like POV-Ray's slope pattern, assign a axis, then calc the slope of that
axis

3). ...
  investigate the point is near or far from object surface



then output to series .df3 file.


Post a reply to this message


Attachments:
Download 'df3 pattern idea.jpg' (452 KB)

Preview of image 'df3 pattern idea.jpg'
df3 pattern idea.jpg


 

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