POV-Ray : Newsgroups : povray.binaries.scene-files : Treat a mesh as an isofunction : Re: Treat a mesh as an isofunction Server Time
25 Apr 2024 21:38:17 EDT (-0400)
  Re: Treat a mesh as an isofunction  
From: Thomas de Groot
Date: 30 Sep 2016 03:18:33
Message: <57ee11c9@news.povray.org>
On 29-9-2016 21:25, SecondCup wrote:
> Hi,
>
> I'm wondering if there is a way to treat a mesh2 as an isosurface. I'm pretty
> new to pov-ray (some will notice my regular contribution to the 'newusers'
> forum) so still figuring out a lot of the stuff. This one might be straight
> forward.

As far as I know: no.

>
> I have a mesh2 file of something that looks like a few pancakes layered on top
> of one another. This was created using Accutrans that converted my
> wireframe/solid/whatever-ya-wanna-call-it.dxf into a .pov file (version 3.5).
> I want to make these pancake type surfaces look like they are stone, or a
> roughly chiseled piece of rock.
>
> Looking around online, I found an excellent rendering of a sandstone by PM 2Ring
> on this site. The wrinkly patterns and depth of the bumps are perfect for what I
> am looking for. Is it possible to make my pancake-type-thingy.pov have the same
> texture as the sandstone in PM 2Ring's code?

Yes. Although the pancakes are very smooth, to get a stone-like effect 
you need to add a normal to the texture and play with scale and rotation 
to get the effect you desire.

The isosurface PM2Ring is using is sufficiently rough by itself to just 
use the texture without a normal. The pancakes on the other hand are too 
smooth and you have to adapt to get a similar effect. Note that my 
example is only one of many. You should play with all the possibilities 
offered by POV-Ray to get what you want.

One thing I would like to suggest, if you want to go along with these 
pancakes, is to try and use 'Subdivision' and then 'Displacement' in 
Poseray. That way you would make the pancakes much more interesting.

>
> He uses functions and isosurfaces that I'm still trying to get my head around,
> is there someone out there who can tell me if they are mergeable?

As said above, no.

>
> Attached are both codes...You'll notice I have been able to incorporate the
> colours into my file.
>

I re-attach the file with a couple of additions/corrections. Switch off 
most of the fill-in lights. Set to version 3.7 and standard assumed_gamma 1.

-- 
Thomas


Post a reply to this message


Attachments:
Download 'utf-8' (68 KB)

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