POV-Ray : Newsgroups : povray.tools.general : Blender, Povanim, Poseray and friends : Solved (was Re: Blender, Povanim, Poseray and friends) Server Time
17 May 2024 07:43:51 EDT (-0400)
  Solved (was Re: Blender, Povanim, Poseray and friends)  
From: Ross
Date: 22 Apr 2005 23:31:26
Message: <4269c18e@news.povray.org>
FlyerX wrote:

> PoseRay always creates POV mesh files with normals at each vertex. If
> Povanim does not the mesh will appear faceted.
> 
> FlyerX
> 

So for some reason, given a mesh named MyObjext, Povanim is exporting a file
called MyObjectCube1nindice.inc and in that file is just this: "0,"

It also creates a file called meshMyObject.inc which contains:

// BEGIN FILE

//Mesh number: 1
#declare Cube1 = mesh2 {
  vertex_vectors{ #include "MyObjectCube1verts.inc"}
  normal_vectors{ #include "MyObjectCube1norm.inc"}
  face_indices{ #include "MyObjectCube1faces.inc"}
  normal_indices{ #include "MyObjectCube1nindice.inc"}
}

object{ Cube1 
  pigment{rgb<0.8,0.8,0.8>} 
  scale<1.0,1.0,1.0> 
  rotate<89.9999956743,-0.0,0.0> 
  translate<0.0,0.0,0.0> 
}

// END FILE

So when that nindice file gets included in the "normal_indices {...}"
statement, it basically overrides POV-Rays behavior stated in section
2.3.2.2.1 of the manual:

"In case we want a smooth mesh, the same steps we did also apply to the
normals in a mesh. For each vertex there is one normal vector listed in
normal_vectors{}, duplicates can be removed. If the number of normals
equals the number of vertices then the normal_indices{} list is optional
and the indexes from the face_indices{} list are used instead."

commenting out the normal_indices {...} line in the meshMyObject.inc file
caused the object to be rendered with POV-Ray in a smooth manner.

So that's cool. I think I can safely use Blender+Povanim+POV-Ray without
worrying about flat-faced meshes.

happy tracing!
-ross


Post a reply to this message

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