POV-Ray : Newsgroups : povray.newusers : Image mapping on triangles : Image mapping on triangles Server Time
8 Jul 2024 00:55:18 EDT (-0400)
  Image mapping on triangles  
From: solanb
Date: 3 Nov 2009 08:20:00
Message: <web.4af02da516d6504fcf0bfa9c0@news.povray.org>
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?

I there an easier way to do this?

Thanks for your help,
Benoit


Post a reply to this message

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