Khai-J-Bach opened this issue on Aug 27, 2010 · 1684 posts
adp001 posted Sat, 28 August 2010 at 10:02 PM
Quote - > Quote - > Quote - The Catmull-Clark subdivision wish is about having it in accessible in the GUI I think.
This, and/or make it accessible via a parameter.
Suggestion:
doCatMul=parameter.get(actor.InternalName(), dict()).get("CC", False)There's already the parameter 'subdivisionlevel'. For example, to export with two levels of Catmull-Clark subdivision applied to each geometry, I simply add the following to my dataOut.bbml file:
Geom<br></br> subdivisionlevel=2<br></br>
(Caution: the export will take a long time that way. Minutes instead of seconds.)
I haven't looked into the bbml code for specifying the interface, but it should be easy to add the corresponding lines, so that this value could be set within the GUI.
The geometry exporter doesn't care how properties are assigned to particular actors. Once you've implemented per-actor or per-figure parameters in the wrapper, simply set the correct value in the option object that's passed to GeometryExporter().
Fine!
I'm going to make it working.
odf, are you in the mood to look into the camera thing?
The methode how the fov is computed seems not correct.
focal = cam.Parameter("Focal").Value()
fov = 360 / pi * atan(12.75 / focal)
print >> file, 'Camera "perspective" "float fov" [%s]' % fov