POV-Ray : Newsgroups : povray.general : Bumps with UV mapping Server Time
5 Aug 2024 04:18:13 EDT (-0400)
  Bumps with UV mapping (Message 1 to 6 of 6)  
From: Tony LaVigne
Subject: Bumps with UV mapping
Date: 20 Dec 2002 13:55:03
Message: <web.3e03671f1e67b05f88d4e3910@news.povray.org>
Hello,
I have a surface that I've applied a uv mapping to but I cannot get it to
have a bumpy texture.  An example bitmap can be viewed at
http://xenomechanics.com/plate_gallery/temp.html
The code is extensive as it's a mesh2 but texture portion is:

texture { uv_mapping pigment{ image_map { sys "xenoGraffitipad.bmp" } }
                     normal { bumps .1 scale 10 }
        }


In rendering the normal bumps are ignored.  The surrounding surfaces without
uv mapping  cited below is working fine
texture { pigment { color rgb <1,1,1> }
           normal { bumps bumpsA scale scaleA }
        }

The picture shows the uv mapped surface not blending well into the
surrounding bumpy surface.
Can someone tell me if I have made a mistake or if you just cannot have
simulated bumps using normal and UV mapping?
Thanks
Tony




xen### [at] xenomechanicscom


Post a reply to this message

From: Gilles Tran
Subject: Re: Bumps with UV mapping
Date: 20 Dec 2002 17:08:49
Message: <3e0394f1@news.povray.org>

web.3e03671f1e67b05f88d4e3910@news.povray.org...

>                      normal { bumps .1 scale 10 }

The uv surface is comprised between <0,0> and <1,1>.
If you scale the bumps by 10, it becomes much larger than that, which is why
you can't see it.
Try to scale it somewhere between 1/100 and 1/10 and see if it works.

G.


--
**********************
http://www.oyonale.com
**********************
- Graphic experiments
- POV-Ray and Poser computer images
- Posters


Post a reply to this message

From: Tony LaVigne
Subject: Re: Bumps with UV mapping
Date: 20 Dec 2002 19:25:02
Message: <web.3e03b3de93fe96fe88d4e3910@news.povray.org>
Gilles,
The example in the documentation has it at
normal { bumps 0.4 scale 0.2 }
but it still ignores it and just renders it flat :(
Tony
xen### [at] xenomechanicscom


Post a reply to this message

From: Tony LaVigne
Subject: Re: Bumps with UV mapping
Date: 20 Dec 2002 22:20:03
Message: <web.3e03dc6e93fe96fe88d4e3910@news.povray.org>
The code below helps to simulate my problem.   The 1st (right) sphere is
without bumps, the 2nd (left) does.

light_source {<0, 2, -3>,rgb <1,1,1> }
background { color rgb <1,1,1> }
light_source { <10, 100, -100> rgb <1,1,1> }
camera {  location <.25, .25, -5>  look_at  <.25, .25,  0>   }

sphere {<2, 1, 2>, 2  //right sphere
texture {   uv_mapping   pigment { color rgb <1,1,0> }     normal { bumps
0.4 scale 0.2 }}  }

sphere {<-2, 1, 2>, 2  //left sphere
texture { /*uv_mapping*/   pigment { color rgb <1,1,0> } normal { bumps 0.4
scale 0.2 }}  }


Post a reply to this message

From: Mike Williams
Subject: Re: Bumps with UV mapping
Date: 21 Dec 2002 01:44:40
Message: <ObdkZCA4yAB+EwIC@econym.demon.co.uk>
Wasn't it Tony LaVigne who wrote:
>The code below helps to simulate my problem.   The 1st (right) sphere is
>without bumps, the 2nd (left) does.
>
>light_source {<0, 2, -3>,rgb <1,1,1> }
>background { color rgb <1,1,1> }
>light_source { <10, 100, -100> rgb <1,1,1> }
>camera {  location <.25, .25, -5>  look_at  <.25, .25,  0>   }
>
>sphere {<2, 1, 2>, 2  //right sphere
>texture {   uv_mapping   pigment { color rgb <1,1,0> }     normal { bumps
>0.4 scale 0.2 }}  }
>
>sphere {<-2, 1, 2>, 2  //left sphere
>texture { /*uv_mapping*/   pigment { color rgb <1,1,0> } normal { bumps 0.4
>scale 0.2 }}  }
>

But that is fixed by what Giles Tran said.

When the bumps are uvmapped, the scale of the bump is relative to the
scale of the uvmapping cell instead of relative tot he unit cube.
Changing the scale from 0.2 to 0.02 fixes it.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: Tony LaVigne
Subject: Re: Bumps with UV mapping
Date: 21 Dec 2002 11:10:03
Message: <web.3e04923d93fe96fe88d4e3910@news.povray.org>
Mike Williams wrote:
>Wasn't it Tony LaVigne who wrote:
>>The code below helps to simulate my problem.   The 1st (right) sphere is
>>without bumps, the 2nd (left) does.
>>
>>light_source {<0, 2, -3>,rgb <1,1,1> }
>>background { color rgb <1,1,1> }
>>light_source { <10, 100, -100> rgb <1,1,1> }
>>camera {  location <.25, .25, -5>  look_at  <.25, .25,  0>   }
>>
>>sphere {<2, 1, 2>, 2  //right sphere
>>texture {   uv_mapping   pigment { color rgb <1,1,0> }     normal { bumps
>>0.4 scale 0.2 }}  }
>>
>>sphere {<-2, 1, 2>, 2  //left sphere
>>texture { /*uv_mapping*/   pigment { color rgb <1,1,0> } normal { bumps 0.4
>>scale 0.2 }}  }
>>
>
>But that is fixed by what Giles Tran said.
>
>When the bumps are uvmapped, the scale of the bump is relative to the
>scale of the uvmapping cell instead of relative tot he unit cube.
>Changing the scale from 0.2 to 0.02 fixes it.
>
>Mike Williams
>Gentleman of Leisure
>
I think I see now.  As I understand it I cannot get the bumps (using
normals)  larger than the uv Cell.
I appreciate the help.
Tony
xen### [at] xenomechanicscom


Post a reply to this message

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