POV-Ray : Newsgroups : povray.newusers : Using texture to apply rough edges to an object : Re: Using texture to apply rough edges to an object Server Time
29 Jul 2024 04:26:02 EDT (-0400)
  Re: Using texture to apply rough edges to an object  
From: Penelope20k
Date: 7 Sep 2006 04:06:22
Message: <44ffd2fe$1@news.povray.org>
assume that your map is a

box {left_bottom_corner,right_upper_corner}
then you have created your texture

#local Map_texture1= texture { My_map  finish {Old_map}};


For ragged the corner, the better way is to apply a pattern
The create an black & white pattern with place for rags .

then your texture will be a texture_map i think

texture {
    image_pattern {    * your rag pattern *  }
    texture_map {
                [0 pigment {rgbt 1} ]   // color 0 will be transparent
                [0.1 pigment {rgb 0 }]  // grey 0.1 will be black   // burn
like
                [1 Map_texture1 ] // color between 0.1 - 1 will show you
your old map texture
    }

// then  dont forget to sale, translate your texture for placing it on your
box ..



}

I wil do it like that
















news:44ffc469$1@news.povray.org...
>
> "bc" <nomail@nomail> schreef in bericht
> news:web.44ffbde6328d59aff79a0050@news.povray.org...
> > Hi everyone-
> >
> > I'm working on my first povray scene and have run into a problem I can't
> > figure out and haven't found an answer for in my searches.  I made a map
> > object for the scene and would like to make the edges of the map look
old
> > and ragged.  I am currently using three textures layered on the map and
> > had
> > hoped to apply a fourth texture which would force a somewhat random
> > transparency around the edges of the map.  Here's a render of the scene
> > I'm
> > working on:
> >
> > http://www.eastex.net/billcline/files/startmap2.JPG
> >
> > Thanks in advance for any advice or pointers.
> >
>
> The easy answer would be to do the edge of the map in a paint program,
like
> the map itself is already made in, and make the borders ragged and
> transparant (alpha channel).
>
> By the way: nice scene and nice map :-)
>
> Thomas
>
>


Post a reply to this message

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