POV-Ray : Newsgroups : povray.binaries.images : Textured crackle city : Re: Textured crackle city Server Time
16 Aug 2024 04:13:02 EDT (-0400)
  Re: Textured crackle city  
From: Jan Walzer
Date: 17 Mar 2002 14:36:50
Message: <3c94f052@news.povray.org>
"Tek" <tek### [at] evilsuperbraincom> wrote:
> I've put some textures onto the city scape

very nice ....

> ...And while I'm here, I want to pick your brains: Can anyone come up with a
> pigment that is perpendicular to crackle? i.e. it has it's junctions in the
> centre of crackle's points, and it's points on crackle's junctions. Or am I > just
talking crazy talk?

Ahh ... you want some roofes on the top of the buildings ?
so you want the gradient of the pattern ?
just an idea, something like (please debug):

function crk_gr_x(x,y,z,a) {
    (f_crackle(x,y,z)+f_crackle(x+a,y,z))/a
    }
function crk_gr_y(x,y,z,a) {
    (f_crackle(x,y,z)+f_crackle(x,y+a,z))/a
    }
function crk_gr_z(x,y,z,a) {
    (f_crackle(x,y,z)+f_crackle(x,y,z+a))/a
    }

function crk_gr_l(x,y,z,a) {
    sqrt(
        crk_gr_x(x,y,z,a)^2+
        crk_gr_y(x,y,z,a)^2+
        crk_gr_z(x,y,z,a)^2)
    }


Post a reply to this message

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