POV-Ray : Newsgroups : povray.general : Issues with bamp mapping Server Time
26 Nov 2024 13:23:55 EST (-0500)
  Issues with bamp mapping (Message 1 to 3 of 3)  
From: Raool
Subject: Issues with bamp mapping
Date: 12 Sep 2010 10:55:00
Message: <web.4c8ce91fdfdee501b6a7208f0@news.povray.org>
Hi,

I have a problem with bump mapping UV coordinates in POV-Ray. Let's say I'm
having a scene made of plenty of blocks (think of LEGO blocks). Each block
contains pins (sometimes a hundreds of them) and I need to have every pin top (a
list of faces) bump-mapped.
I have a single texture with bump_map (common for all pins) and the problem is
that bump mapping uses planar mapping which makes each pin top bump mapped
differently (the texture has different offset for each pin, that's because they
all have different position in world space).
Is there any way to use triangle UV coordinates for bump mapping? (that would
solve my problem, because faces which belong to pin tops are mapped correctly).

Thanks,
Raool


Post a reply to this message

From: Jaime Vives Piqueres
Subject: Re: Issues with bamp mapping
Date: 12 Sep 2010 11:52:50
Message: <4c8cf752@news.povray.org>

> Hi,
>
> I have a problem with bump mapping UV coordinates in POV-Ray. Let's say
> I'm having a scene made of plenty of blocks (think of LEGO blocks). Each
> block contains pins (sometimes a hundreds of them) and I need to have
> every pin top (a list of faces) bump-mapped. I have a single texture
> with bump_map (common for all pins) and the problem is that bump mapping
> uses planar mapping which makes each pin top bump mapped differently
> (the texture has different offset for each pin, that's because they all
> have different position in world space). Is there any way to use triangle
> UV coordinates for bump mapping? (that would solve my problem, because
> faces which belong to pin tops are mapped correctly).
>

   Assuming the blocks already have uv maps, just use the keyword
"uv_mapping" within the normal{} statement, like you will do with a pigment
or a texture.


-- 
Jaime Vives Piqueres

http://www.ignorancia.org


Post a reply to this message

From: Raool
Subject: Re: Issues with bamp mapping
Date: 12 Sep 2010 12:40:00
Message: <web.4c8d01354d697a1fb6a7208f0@news.povray.org>
Jaime Vives Piqueres <jai### [at] ignoranciaorg> wrote:

> > Hi,
> >
> > I have a problem with bump mapping UV coordinates in POV-Ray. Let's say
> > I'm having a scene made of plenty of blocks (think of LEGO blocks). Each
> > block contains pins (sometimes a hundreds of them) and I need to have
> > every pin top (a list of faces) bump-mapped. I have a single texture
> > with bump_map (common for all pins) and the problem is that bump mapping
> > uses planar mapping which makes each pin top bump mapped differently
> > (the texture has different offset for each pin, that's because they all
> > have different position in world space). Is there any way to use triangle
> > UV coordinates for bump mapping? (that would solve my problem, because
> > faces which belong to pin tops are mapped correctly).
> >
>
>    Assuming the blocks already have uv maps, just use the keyword
> "uv_mapping" within the normal{} statement, like you will do with a pigment
> or a texture.
>
>
> --
> Jaime Vives Piqueres
>
> http://www.ignorancia.org

Thank you - that is exactly what I need!

Best regards,
Raool


Post a reply to this message

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