POV-Ray : Newsgroups : povray.newusers : Smooth blending of two or more materials via bitmap mask(s) Server Time
25 Nov 2024 06:00:19 EST (-0500)
  Smooth blending of two or more materials via bitmap mask(s) (Message 1 to 4 of 4)  
From: motorsep
Subject: Smooth blending of two or more materials via bitmap mask(s)
Date: 6 May 2006 13:00:01
Message: <web.445cd5308ae347bc1effc9720@news.povray.org>
Hi all,

I am relatively new to Povray. Usually I model in Blender and then render
with Povray via Blend2Pov.
Basically what I am trying to do is to create nice looking rust material.
Let's say I have base metal material, displacement image (lettering that has
to be embossed) and 3 layers of rust. All of that has to be blended together
via image masks I am going to create in GIMP.
I have tried to experiment with material maps, but I get really weird
results :(
I don't get smooth transition between materials.

Here is a mask:

http://img282.imageshack.us/img282/5996/mask1cs.jpg

And here is a result:

http://img473.imageshack.us/img473/6500/matmaptest2vs.jpg

Can somebody help me and explain how to get smooth transaction between
materials please?


Post a reply to this message

From: PM 2Ring
Subject: Re: Smooth blending of two or more materials via bitmap mask(s)
Date: 6 May 2006 14:45:00
Message: <web.445ceda2965bd4271bd1c060@news.povray.org>
"motorsep" <nomail@nomail> wrote:
> Let's say I have base metal material, displacement image (lettering that has
> to be embossed) and 3 layers of rust. All of that has to be blended together
> via image masks I am going to create in GIMP.
> I have tried to experiment with material maps, but I get really weird
> results :(
> I don't get smooth transition between materials.

No, you won't generally get smooth transition between materials using
material maps. What you really want to use here is a texture_map. See
'3.5.5.1  Texture Maps' in the POV 3.6 docs. Using a texture_map, you can
get smooth or sharp transitions between textures.

Why do you want to use a displacement map for the text, rather than a POV
text object? Is the text distorted by the corrosion? Will you do the
displacement using a heightfield, a mesh, an isosurface, or just fake it
with normals? Decisions, decisions! :) Since you're new to POV, I'd suggest
using a heightfield or mesh, if the native text object isn't suitable.

Good luck with the rust. It can be very hard to get it to look right, but
there are a few rust experts around here, with great examples posted last
year. Just scan back through the 'images' group for pics and code.


Post a reply to this message

From: Marc Jacquier
Subject: Re: Smooth blending of two or more materials via bitmap mask(s)
Date: 6 May 2006 15:09:29
Message: <445cf469$1@news.povray.org>

news:web.445ceda2965bd4271bd1c060@news.povray.org...
>
> No, you won't generally get smooth transition between materials using
> material maps. What you really want to use here is a texture_map. See
> '3.5.5.1  Texture Maps' in the POV 3.6 docs. Using a texture_map, you can
> get smooth or sharp transitions between textures.
>
Have a look at 3.5.11.20  Image Pattern in the POV 3.6 doc as well

Marc


Post a reply to this message

From: PM 2Ring
Subject: Re: Smooth blending of two or more materials via bitmap mask(s)
Date: 6 May 2006 15:55:01
Message: <web.445cfe15965bd42776ba2c900@news.povray.org>
"Marc Jacquier" <jac### [at] wanadoofr> wrote:

> news:web.445ceda2965bd4271bd1c060@news.povray.org...
> >
> > No, you won't generally get smooth transition between materials using
> > material maps. What you really want to use here is a texture_map. See
> > '3.5.5.1  Texture Maps' in the POV 3.6 docs. Using a texture_map, you can
> > get smooth or sharp transitions between textures.
> >
> Have a look at 3.5.11.20  Image Pattern in the POV 3.6 doc as well
>
> Marc

Good idea, Marc! It's probably a little simpler than using a texture_map
with an image_map, too. I'd forgotten about this one...


Post a reply to this message

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