<HTML>
<HEAD>
<TITLE>Patch: Re: [vtk-developers] Exporter bugs</TITLE>
</HEAD>
<BODY>
<FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Here are the associated patch files. I’ve tested on MacOSX 10.5.4 and windows xp 32 against the VTK 5.2 branch.<BR>
Hopefully these can make it into the 5.2 release.<BR>
Gerrick<BR>
<BR>
<BR>
On 8/7/08 9:54 AM, "Gerrick Bivins" <gbivins@objectreservoir.com> wrote:<BR>
<BR>
</SPAN></FONT></FONT><BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hello,<BR>
I ran across a couple of bugs with the following Exporters in the vtk 5.2 branch while trying to export my scenes in from my vtk application:<BR>
VRML Exporter:<BR>
  1) Exported file won’t load in Paraview or most other VRML viewers.If it is succesful, only the last *Set is read in. The problem is that there needs to be one *Set per Shape node. <BR>
  2) Exported file doesn’t take into consideration actor’s visibility so all actors are exported even if they aren’t visible in the render window.<BR>
I have fixed both of these.<BR>
<BR>
In trying to verify some of these bugs by exporting to obj and reading in the file, I ran into these bugs:<BR>
OBJExporter<BR>
  1) Exported file doesn’t take into consideration actor’s visibility so all actors are exported even if they aren’t visible in the render window.<BR>
  2) Exporter file only uses Actors color rather than the mappers scalars for coloring (color by vertex).<BR>
  3) Exported file doesn’t use transparency. This is because the variable set for transparency is named incorrectly as “Tf” should be “Tr” according to specs.<BR>
  4) Exported file’s transparency is inverse of vtkProperty opacity value (1.0-opacity). Should just be opacity.<BR>
<BR>
I have fixed 1,2 and 4 in my local build. 3 seems like it will be a little more complicated so it may take some time<BR>
<BR>
Eventually, I’d like to use x3D (or some other embeddable format UCD maybe) so I gave that a shot but ran into another issue:<BR>
<BR>
X3DExporter<BR>
  1)Exported file is unloadable in external viewers. I’m not familiar enough with X3D format yet to debug this one.<BR>
<BR>
My question is, has anyone run into these issues or are the Exporters not used that much? Also, how do I go about submitting the fixes I have so far, patch, whole files, submission list? Not sure on this one.<BR>
I’ve read these links:<BR>
<a href="http://vtk.org/contribute.php">http://vtk.org/contribute.php</a><BR>
<a href="http://www.vtk.org/Wiki/VTK_Coding_Standards">http://www.vtk.org/Wiki/VTK_Coding_Standards</a><BR>
But submission information seems to be missing.<BR>
<BR>
Gerrick<BR>
<BR>
  <BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_______________________________________________<BR>
vtk-developers mailing list<BR>
vtk-developers@vtk.org<BR>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers">http://www.vtk.org/mailman/listinfo/vtk-developers</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE>
</BODY>
</HTML>