POV-Ray : Newsgroups : povray.general : Issues with bamp mapping : Re: Issues with bamp mapping Server Time
29 Jul 2024 20:22:49 EDT (-0400)
  Re: Issues with bamp mapping  
From: Jaime Vives Piqueres
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

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