From the Povray3.5(beta) help:
6.7.8 Triangle Texture Interpolation
This feature is utilized in a number of visualization approaches: triangles
with individual textures for each vertex, which are interpolated during
rendering.
So for Povray3.5 it should be possible to do an export from VPython that
preserves all features of VPython faces.
I am coming along with my effort. Abandoned the concept of new keywords.
All faces exports will be a Povray mesh.
It will test for non-zero normals and create
smooth_triangles where they are found,
triangles otherwise.
I prefer to have explicitly declared textures
override colors, rather than combine with
them . So a declared texture will
trump any color info, and be included in
the mesh description.
If no declared texture:
Will test the objects colors. If all vertex
colors are the same for all triangles will add the pigment at the mesh
level.
If not will test at triangle level. If all vertexes are the same color will
create
a texture (pigment) and a reference to it.
If vertexes have different colors, will add
a texture_list, and a reference to it.
Missing anything?
Art
|