POV-Ray : Newsgroups : povray.binaries.images : crackle flagstone floor question Server Time
1 Aug 2024 18:21:39 EDT (-0400)
  crackle flagstone floor question (Message 1 to 10 of 17)  
Goto Latest 10 Messages Next 7 Messages >>>
From: Charles C
Subject: crackle flagstone floor question
Date: 21 Mar 2008 18:15:38
Message: <47e4419a@news.povray.org>
This is a height_field (multiple actually, tiled, but not tile-able) 
made from a nine* megapixel .png made of course from an orthogonal view 
of crackle pattern pigment on a plane.  The pigment used for the 
height_field is a *different* .png which is basically the original after 
a few bucket-fills in GIMP with different colors to different 'stones.'

I could keep-it-in-POV-Ray (no image based height_fields or image_maps) 
if I knew how to give individual stones different colors using crackle. 
  Unfortunately it looks like there's a choice between patterns that can 
give borders to cells, or patterns which can give different colors to 
different cells.

Any advice?

Thanks!
Charles

PS I'm using 1 unit = 1".  The reference axis arrows are 12" long as is 
the sphere's diameter.

*I was using 36 megapixels earlier but didn't re-do it so the below 
image has seams:


Post a reply to this message


Attachments:
Download 'crackle flagstone floor.jpg' (187 KB)

Preview of image 'crackle flagstone floor.jpg'
crackle flagstone floor.jpg


 

From: Charles C
Subject: Re: crackle flagstone floor question
Date: 21 Mar 2008 18:24:11
Message: <47e4439b@news.povray.org>
I forgot to mention the crackle is topped with wrinkles to try to keep 
the stone tops a little less flat.  Do they show up enough or could it 
use more?  A different scale perhaps on the wrinkles?
Charles


Post a reply to this message

From: William Tracy
Subject: Re: crackle flagstone floor question
Date: 21 Mar 2008 19:06:57
Message: <47e44da1$1@news.povray.org>
Wow, I like that.

-- 
William Tracy
afi### [at] gmailcom -- wtr### [at] calpolyedu

    When you expect to live another two hundred years, you behave 
differently from when you expect to live only twenty.
     -- Kim Stanley Robinson, _Red Mars_


Post a reply to this message

From: William Tracy
Subject: Re: crackle flagstone floor question
Date: 21 Mar 2008 19:10:07
Message: <47e44e5f$1@news.povray.org>
William Tracy wrote:
> Wow, I like that.

I concur.

Something that I only learned after a lot of fiddling: Povray can build 
heightfields from textures generated procedurally in-memory. I can 
actually save parse time that way if the texture is detailed (large 
images take a while to load from disk).

Something like so:

height_field {
     function 400, 400 { fn_pattern(x, y, 0)}
}

-- 
William Tracy
afi### [at] gmailcom -- wtr### [at] calpolyedu

    When you expect to live another two hundred years, you behave 
differently from when you expect to live only twenty.
     -- Kim Stanley Robinson, _Red Mars_


Post a reply to this message

From: Mark Birch
Subject: Re: crackle flagstone floor question
Date: 22 Mar 2008 01:40:00
Message: <web.47e4a88d54640dcbd925e5810@news.povray.org>
Have you tried 'crackle solid'?

I think that pretty much does what you want.


Post a reply to this message

From: Edouard Poor
Subject: Re: crackle flagstone floor question
Date: 22 Mar 2008 01:55:12
Message: <news.povray.org-6BC0ED.19551122032008@news.povray.org>
In article <47e4419a@news.povray.org>,
 Charles C <"nospam a nospam.com"> wrote:

> This is a height_field (multiple actually, tiled, but not tile-able) 
> made from a nine* megapixel .png made of course from an orthogonal view 
> of crackle pattern pigment on a plane.  The pigment used for the 
> height_field is a *different* .png which is basically the original after 
> a few bucket-fills in GIMP with different colors to different 'stones.'

Looks great!

> I could keep-it-in-POV-Ray (no image based height_fields or image_maps) 
> if I knew how to give individual stones different colors using crackle. 
>   Unfortunately it looks like there's a choice between patterns that can 
> give borders to cells, or patterns which can give different colors to 
> different cells.
> 
> Any advice?

I may be misunderstanding what you are trying to do, but can you use the 
"solid" keyword with the crackle pattern? That sets each crackle to be a 
solid colour chosen from random from the colour map.

> Thanks!
> Charles

Cheers,
Edouard.


Post a reply to this message

From: Tek
Subject: Re: crackle flagstone floor question
Date: 22 Mar 2008 15:22:35
Message: <47e56a8b@news.povray.org>
"Charles C" <"nospam a nospam.com"> wrote in message 
news:47e4439b@news.povray.org...
>
> I forgot to mention the crackle is topped with wrinkles to try to keep the 
> stone tops a little less flat.  Do they show up enough or could it use 
> more?  A different scale perhaps on the wrinkles?
> Charles

Looks good to me! I think the wrinkle looks just right, nice and subtle. I 
think the edges look a bit odd, I'd expect them to be more vertical in 
places (obviously awkward in a height_field).

Anyway like some others have said: you want to use crackle solid. Try 
something like this:

#declare f_flagstones =
    function {
        pigment {
            pigment_pattern { crackle colour_map { [.05 rgb 0][.1 rgb 1] } }
            cubic_wave //smooth off the edges a bit
            turbulence .3
            scale .1
            pigment_map {
                [0 rgb 0]
                [1
                    average
                    pigment_map {
                        [1 crackle solid]
                        [.1 wrinkles]
                    }
                ]
            }
        }
    }

height_field {
    function 2048,2048 { f_flagstones(x,0,y).x }
}

-- 
Tek
http://evilsuperbrain.com


Post a reply to this message

From: Charles C
Subject: Re: crackle flagstone floor question
Date: 22 Mar 2008 23:01:05
Message: <47e5d601@news.povray.org>
William Tracy wrote:
> Wow, I like that.
> 

Thanks! :D I'm new to stonework.


Post a reply to this message

From: Charles C
Subject: Re: crackle flagstone floor question
Date: 22 Mar 2008 23:06:35
Message: <47e5d74b@news.povray.org>
William Tracy wrote:
> William Tracy wrote:
>> Wow, I like that.
> 
> I concur.

Hehe

> 
> Something that I only learned after a lot of fiddling: Povray can build 
> heightfields from textures generated procedurally in-memory. I can 
> actually save parse time that way if the texture is detailed (large 
> images take a while to load from disk).
> 
> Something like so:
> 
> height_field {
>     function 400, 400 { fn_pattern(x, y, 0)}
> }
> 

Yes, that's what I had in mind when I mentioned 'keeping-it-in-POV'. 
After actually trying it though, on this particular machine it's taking 
longer to re-generate it than it is to load an image so I may end up 
sticking to images.  For some reason I had it in my head that a 
non-image_map based height_field worked more like an isosurface without 
a specific resolution. (Another thing I haven't learned a lot about.)

Charles


Post a reply to this message

From: Charles C
Subject: Re: crackle flagstone floor question
Date: 22 Mar 2008 23:08:36
Message: <47e5d7c4@news.povray.org>
Mark Birch wrote:
> Have you tried 'crackle solid'?
> 
> I think that pretty much does what you want.
> 
> 

Thanks, that was exactly what I needed if you don't count going 
backwards in time and fully reading the section on crackle. :D I'd 
missed that one.
Charles


Post a reply to this message

Goto Latest 10 Messages Next 7 Messages >>>

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