POV-Ray : Newsgroups : povray.general : Mesh problem... : Re: Mesh problem... Server Time
3 Aug 2024 12:19:04 EDT (-0400)
  Re: Mesh problem...  
From: Tim Nikias v2 0
Date: 23 Feb 2004 06:56:40
Message: <4039ea78$1@news.povray.org>
> I wrote a program that export geometry to POV file and I have a problem.
> POV-Ray want something like that:
SNIP

You don't have to supply a texture for each triangle. That's optional. The
untextured triangles will then just inherit the texture applied to the mesh,
so that'd be
mesh{ triangle{...} texture{...}}
instead of
mesh{ triangle{... texture{...}} texture{...}}

Additionally, for your normal vectors, there's smooth_triangle, which
requires 6 instead of 3 vectors:
smooth_triangle{
Corner_1, Normal_Vector_1,
Corner_2, Normal_Vector_2,
Corner_3, Normal_Vector_3
}

But that's all in the docs, just read more carefully. :-)

Regards,
Tim

-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>
Email: tim.nikias (@) nolights.de


Post a reply to this message

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