Hi Nil,

you are right, geometry shaders are not supported by mitk yet.
I just tried to implement them but I am not sure if it works or if we will support them in the near future:
http://bugs.mitk.org/show_bug.cgi?id=18026

Regards
Christoph


On 08/19/2014 04:15 PM, Nil Goyette wrote:
Hi all,

I tried replacing the Fragment shader in mitkShaderFiberClipping.xml with a Geometry shader, but I haven't been able to do it. One of the error was "Invalid scope for shader: GeometryShader", which lead me to vtkXMLMaterial.cpp where we can see this code:
switch (shader->GetScope()) {
case vtkXMLShader::SCOPE_VERTEX:
this->Internals->VertexShaders.push_back(shader);
  break;
case vtkXMLShader::SCOPE_FRAGMENT:
this->Internals->FragmentShaders.push_back(shader);
  break;
default:
  vtkErrorMacro("Invalid scope for shader: " << shader->GetName());
}

Is it possible that MITK doesn't accept geometry shader?

--
Logo Imeka <http://imeka.ca/>     Nil Goyette, M.Sc.
www.imeka.ca <http://imeka.ca/>


------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to