The unofficial Patches: Pov-Sub
Previous      Next
  Povanim  for  Blender
jean-michel soler 2002 - 2004
vide


 
   I
  n
  d
  e
  x

the unofficial Patches: Pov-Sub
 
In povanim the button of compatibility for megapov became "povray patch compatibility", if it is activated, a menu appears on the right  where one can select "PV_engine_sub" ( this term may change soon perhaps for "Pov-Sub")
This choice makes possible the export in a directory named "subanim" and the call of a file pvengine_sub if one is under window, or povray_sub if one is under linux. It is necessary to have downloaded the file which is at this address:
http://www.cise.ufl.edu/~xwu/Pov-Sub/
http://www.cise.ufl.edu/~xwu/Pov-Sub/bin/pvengine.exe
and to rename  it after the installation in the repertory \bin of povray.

The process of script export  checks if  mesh is  in division of surfaces state:  Subsurf button

If control is positive, it makes the difference between the division employed for real time display ( Subdiv: 0  in the example), and the division of rendering ( 1 ). It gives the result in parameter to the option of subdivision, substeps.
//test on povray subsurf
// Povanim export from : povraysubsurftest , Meshes 
 

#include "matpovraysubsurftest.inc"
 
 

//Mesh number: 1
#declare Plane1 = mesh2 {
subdivision { substeps 1}
                      vertex_vectors{ #include "povraysubsurftestPlane1verts.inc"}
                      normal_vectors{ #include "povraysubsurftestPlane1norm.inc"}
                      face_indices{ #include "povraysubsurftestPlane1faces.inc"}
                      normal_indices{ #include "povraysubsurftestPlane1nindice.inc"}
}

object{ Plane1 
   pigment{rgb<0.8,0.8,0.8>} 
   scale<1.0,1.0,1.0> 
   rotate<0.0,0.0,0.0> 
   translate<0.0,0.0,0.0> 
}

Résultat:

 



Previous          Next



Blender, apprenez, pratiquez, Créez, Ed. Campus Press, coll. Starter Kit
Blender Starter Kit