POV-Ray : Newsgroups : povray.binaries.images : Texture map not handling finishes properly? Server Time
14 Nov 2024 10:17:46 EST (-0500)
  Texture map not handling finishes properly? (Message 1 to 10 of 11)  
Goto Latest 10 Messages Next 1 Messages >>>
From: Greg M  Johnson
Subject: Texture map not handling finishes properly?
Date: 2 Jul 2004 22:36:16
Message: <40e61ba0@news.povray.org>
I have a character where the head gets a "skintext" skin texture.  The neck
gets a gradient y pattern, which is supposed to demarcate between a black
ring at the bottom (end of costume) and the start of the exposed flesh.

Note how the finish is "wrong" over the exposed neck.

Am I doing something wrong or this this a problem?


// relevant code pasted

#declare masktext=texture{pigment {rgb 0.1} finish {phong 2}}

#declare skintext= texture{
                        pigment{skinpig}
                        finish{ambient skin_amb  diffuse 0.69  specular 0.1
roughness 0.5  phong 0.1 phong_size 7 metallic 1 }
                        normal{granite 0.07 scale 0.1}
                                }

#declare necktext=texture{
        gradient y
        texture_map{
                [0.5 skintext scale 1/40]
                [0.5 masktext scale 1/40]
                }
        scale 40        translate 2*y

        }


Post a reply to this message


Attachments:
Download 'mimeredo21123.JPG' (149 KB)

Preview of image 'mimeredo21123.JPG'
mimeredo21123.JPG


 

From: Jeremy M  Praay
Subject: Re: Texture map not handling finishes properly?
Date: 2 Jul 2004 22:54:02
Message: <40e61fca$1@news.povray.org>
"Greg M. Johnson" <gregj;-)565### [at] aolcom> wrote in message
news:40e61ba0@news.povray.org...
> I have a character where the head gets a "skintext" skin texture.  The
neck
> gets a gradient y pattern, which is supposed to demarcate between a black
> ring at the bottom (end of costume) and the start of the exposed flesh.
>
> Note how the finish is "wrong" over the exposed neck.
>
> Am I doing something wrong or this this a problem?
>
>
> // relevant code pasted
>
> #declare masktext=texture{pigment {rgb 0.1} finish {phong 2}}
>
> #declare skintext= texture{
>                         pigment{skinpig}
>                         finish{ambient skin_amb  diffuse 0.69  specular
0.1
> roughness 0.5  phong 0.1 phong_size 7 metallic 1 }
>                         normal{granite 0.07 scale 0.1}
>                                 }
>
> #declare necktext=texture{
>         gradient y
>         texture_map{
>                 [0.5 skintext scale 1/40]
>                 [0.5 masktext scale 1/40]
>                 }
>         scale 40        translate 2*y
>
>         }
>

Perhaps I'm way off the mark, but generally I would say something like:

                [0.50000 skintext scale 1/40]
                [0.50001 masktext scale 1/40]

I'm not sure if that helps at all.


-- 
Jeremy
www.beantoad.com


Post a reply to this message

From: Greg M  Johnson
Subject: Re: Texture map not handling finishes properly?
Date: 2 Jul 2004 23:05:32
Message: <40e6227c@news.povray.org>
Thanks but i) I think my original is a preferred and acceptable usage and
ii) making that change didn't fix the problem.  Thanks anyway.


Post a reply to this message

From: juliette
Subject: Re: Texture map not handling finishes properly?
Date: 3 Jul 2004 10:31:11
Message: <40e6c32f$1@news.povray.org>
this image is just shouting to me : "PLAY with me"
do you mind if I do??
thanx in advance
juliette
www.bodhi-creations.com

"Greg M. Johnson" <gregj;-)565### [at] aolcom> schreef in bericht
news:40e61ba0@news.povray.org...
> I have a character where the head gets a "skintext" skin texture.  The
neck
> gets a gradient y pattern, which is supposed to demarcate between a black
> ring at the bottom (end of costume) and the start of the exposed flesh.
>
> Note how the finish is "wrong" over the exposed neck.
>
> Am I doing something wrong or this this a problem?
>
>
> // relevant code pasted
>
> #declare masktext=texture{pigment {rgb 0.1} finish {phong 2}}
>
> #declare skintext= texture{
>                         pigment{skinpig}
>                         finish{ambient skin_amb  diffuse 0.69  specular
0.1
> roughness 0.5  phong 0.1 phong_size 7 metallic 1 }
>                         normal{granite 0.07 scale 0.1}
>                                 }
>
> #declare necktext=texture{
>         gradient y
>         texture_map{
>                 [0.5 skintext scale 1/40]
>                 [0.5 masktext scale 1/40]
>                 }
>         scale 40        translate 2*y
>
>         }
>
>
>


Post a reply to this message

From: Greg M  Johnson
Subject: Re: Texture map not handling finishes properly?
Date: 3 Jul 2004 12:53:22
Message: <40e6e482$1@news.povray.org>
Well, can you show me an example of what you mean?
"juliette" <me### [at] nothomecom> wrote in message
news:40e6c32f$1@news.povray.org...
> this image is just shouting to me : "PLAY with me"
> do you mind if I do??
> thanx in advance
> juliette
> www.bodhi-creations.com
>


Post a reply to this message

From: gonzo
Subject: Re: Texture map not handling finishes properly?
Date: 3 Jul 2004 15:33:31
Message: <40e70a0b@news.povray.org>
Greg M. Johnson wrote:
> I have a character where the head gets a "skintext" skin texture.  The neck
> gets a gradient y pattern, which is supposed to demarcate between a black
> ring at the bottom (end of costume) and the start of the exposed flesh.
> 
> Note how the finish is "wrong" over the exposed neck.
> 
> Am I doing something wrong or this this a problem?

Your model is made of blobs, correct?  Is the texture applied to the 
blob components, or to the whole blob?

I get no problem with the texture mapping when applying it to a sphere 
or cylinder, so I suspect your problem is in how textures apply to blobs.

RG


Post a reply to this message

From: Samuel Benge
Subject: Re: Texture map not handling finishes properly?
Date: 3 Jul 2004 16:46:52
Message: <40E71ACF.1040200@hotmail.com>
gonzo wrote:
<snip>

> I get no problem with the texture mapping when applying it to a sphere 
> or cylinder, so I suspect your problem is in how textures apply to blobs.
> 
> RG


Yes, it looks exactly like classic blob texture blending...... when one 
blob component uses a different texture, and that texture is 
interpolated smoothly to the next blob component's texture.....

-Sam


Post a reply to this message

From: juliette
Subject: Re: Texture map not handling finishes properly?
Date: 3 Jul 2004 17:20:04
Message: <40e72304@news.povray.org>
"Greg M. Johnson" <gregj;-)565### [at] aolcom> schreef in bericht 
news:40e6e482$1@news.povray.org...
> Well, can you show me an example of what you mean?
> "juliette" <me### [at] nothomecom> wrote in message
> news:40e6c32f$1@news.povray.org...
> > this image is just shouting to me : "PLAY with me"
> > do you mind if I do??
> > thanx in advance
> > juliette
> > www.bodhi-creations.com
> >
> 
>


Post a reply to this message


Attachments:
Download 'iso-8859-1' (2 KB)

From: Greg M  Johnson
Subject: Re: Texture map not handling finishes properly?
Date: 3 Jul 2004 20:34:22
Message: <40e7508e$1@news.povray.org>
okay. have fun.


Post a reply to this message


Attachments:
Download 'iso-8859-1' (1 KB)

From: Greg M  Johnson
Subject: Re: Texture map not handling finishes properly?
Date: 3 Jul 2004 21:48:57
Message: <40e76209$1@news.povray.org>
Welllllll,   I just tried a reduced code on both a blob cylinder and classic
cylinder, and it behaves as it should.  Perhaps there's a code bug in the
construction of my character somewhere.   Thanks for checking, guys.


"Samuel Benge" <stb### [at] hotmailcom> wrote in message
news:40E### [at] hotmailcom...
> gonzo wrote:
> <snip>
>
> > I get no problem with the texture mapping when applying it to a sphere
> > or cylinder, so I suspect your problem is in how textures apply to
blobs.
> >
> > RG
>
>
> Yes, it looks exactly like classic blob texture blending...... when one
> blob component uses a different texture, and that texture is
> interpolated smoothly to the next blob component's texture.....
>
> -Sam
>
>
>


Post a reply to this message

Goto Latest 10 Messages Next 1 Messages >>>

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