POV-Ray : Newsgroups : povray.beta-test : POV-Ray V3.7.0 R6 mesh_camera does not parse mesh2 : Re: POV-Ray V3.7.0 R6 mesh_camera does not parse mesh2 Server Time
16 May 2024 05:38:40 EDT (-0400)
  Re: POV-Ray V3.7.0 R6 mesh_camera does not parse mesh2  
From: Juce
Date: 15 Nov 2012 08:15:01
Message: <web.50a4e8d2ced0df555892c1fc0@news.povray.org>
"lytenyn" <nomail@nomail> wrote:
> When trying to put a mesh2 into a mesh_camera instead of a regular mesh, POVray
> aborts on the line containing vertex_vectors with "Parse Error: No triangles in
> triangle mesh."

This kind of code causes the error:

camera {
    mesh_camera {
        1 3
        mesh2 {
        ...
        }
    }
}


This should work:

#declare cam_mesh = mesh2 {
....
}
camera {
    mesh_camera {
        1 3
        mesh {
            cam_mesh
        }
    }
}


Post a reply to this message

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