POV-Ray : Newsgroups : povray.general : normal indices in mesh2 : Re: normal indices in mesh2 Server Time
1 Aug 2024 16:24:24 EDT (-0400)
  Re: normal indices in mesh2  
From: sokermaniac11
Date: 3 Aug 2005 15:35:00
Message: <web.42f11b35a43a55f01068d2140@news.povray.org>
quote:
The reason for having more normals than vertices is so that adjacent faces
> can use different normals on the same vertices, creating sharp transitions
> between them (like at sharp edges of an object).

yes, i knew this. sorry, i think my question was phrased poorly. i know that
i have twice as many normals because im generating a square
ribbon(molecular modeling) and thus have sharp corners on the ribbon. my
question was actually regarding the format of povray's normal indices. i
have been trying to figure out how to write the code itself. i have the
normals and vertexs calculated correctly, but i need to figure out how to
lay out the index correctly. I know that if you dont specify a normal
index, it just takes the index from your faces. but when i specify a
seperate normal index, what is the format? for example, if i have 2 vertex
points and 4 normals, how do i tell povray that the first two normals go
with the first vertex, and the second two with the second vertex? what
would that index look like? (obviously this isnt the best example since its
not a triangle, but it illustrates my question). Thanks!

Ben


Post a reply to this message

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