POV-Ray : Newsgroups : povray.newusers : Image mapping on triangles : Re: Image mapping on triangles Server Time
8 Jul 2024 01:05:51 EDT (-0400)
  Re: Image mapping on triangles  
From: Mike Williams
Date: 3 Nov 2009 08:43:26
Message: <JnhwnfAPND8KFwgq@econym.demon.co.uk>
Wasn't it solanb who wrote:
>Hi,
>
>I'm working with 3d scenes of plants. Each plant is composed of leaves and each
>leaved is composed of triangles. The whole scene contains thousands of
>triangles.
>
>I'd like to add a texture from an image file on the leaves and I tried several
>techniques but I'm not sure of the best way to do.
>My constraint is that the image's projection on a given triangle must be in the
>same plane of the triangle.
>Using image_map, I have to rotate the texture in the triangle's plane: is there
>a way to calculate rotation parameters from triangle's coordinates?

If you collect your triangles into a mesh or mesh2, you can use 
uv_mapping.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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