POV-Ray : Newsgroups : povray.newusers : Using texture to apply rough edges to an object Server Time
25 Nov 2024 03:38:42 EST (-0500)
  Using texture to apply rough edges to an object (Message 1 to 6 of 6)  
From: bc
Subject: Using texture to apply rough edges to an object
Date: 7 Sep 2006 02:45:01
Message: <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.


Post a reply to this message

From: Thomas de Groot
Subject: Re: Using texture to apply rough edges to an object
Date: 7 Sep 2006 03:04:09
Message: <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

From: Penelope20k
Subject: Re: Using texture to apply rough edges to an object
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

From: Tim Attwood
Subject: Re: Using texture to apply rough edges to an object
Date: 7 Sep 2006 06:59:56
Message: <44fffbac@news.povray.org>
I would make a a 2 color image with
black for the rips and white for the rest.
Then replace the box with a height field,
and use the water_level to cut the rips
so they are clear. It's simple and quick.

Even better looking results can be achieved
with meshes and uv mapping.


Post a reply to this message

From: bc
Subject: Re: Using texture to apply rough edges to an object
Date: 7 Sep 2006 13:05:00
Message: <web.45005068228d4c3bf79a0050@news.povray.org>
Thank you very much everybody!

The map is a bicubic patch with a bitmap image sandwiched betwen 2 pov-ray
textures.  A combination of editing the bitmap image, using a texture map,
and uv mapping is yielding some good results.  I was not aware of texture
maps, and the uv mapping is allowing me to curl the corners of the map like
I wanted.

Thanks a lot for the responses and encouragement!

-bc


Post a reply to this message

From: bc
Subject: Re: Using texture to apply rough edges to an object
Date: 7 Sep 2006 16:30:01
Message: <web.4500813a228d4c3bf79a0050@news.povray.org>
I just wanted to follow up.  A material map seems to be getting me where I
want to go:

http://www.eastex.net/billcline/files/startmap3.JPG

I drew a new bitmap of the map edge and combined it with the map texture in
a material map.

Obviously still needs lots of work, but you guys got me back on track.

Thanks again for your help!


Post a reply to this message

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