<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div>Hi,</div><div><br></div><div>I am currently trying to do some shader operations in a standard C++ filter. This filter (inherits from vtkMultiBlockDataSetAlgorithm, resides in VTK/Graphics) will be used to voxelize a polygonal object (basically the result of the contour filter) and write the results to a 3D texture.</div><div><br></div><div>I tried to do the following:</div><div><div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">vtkXMLShader *xmlShader = vtkXMLShader::New(); </div>
<div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"> vtkGLSLShader *glslShader = vtkGLSLShader::New(); </div><div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><br></div><div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">Which results in:</div><div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">Undefined symbols for architecture x86_64:</div><div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"> "vtkXMLShader::New()", referenced from:</div><div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"> vtkRepulsiveForceFieldGenerator::RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*)in vtkRepulsiveForceFieldGenerator.cxx.o</div><div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"> "vtkGLSLShader::New()", referenced
from:</div><div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"> vtkRepulsiveForceFieldGenerator::RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*)in vtkRepulsiveForceFieldGenerator.cxx.o</div><div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">ld: symbol(s) not found for architecture x86_64</div><div style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">collect2: ld returned 1 exit status</div><div><br></div><div>I'm going to guess that standard filters can't use code like this, and that my filter should reside inside of the VTK/Rendering folder and follow the examples in that folder.</div><div><br></div><div>Thanks,</div><div>Sohail</div></div></div></div></body></html>