<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Really many thanks!!! :D<br><br>Giancarlo<br><br>&gt; Date: Mon, 22 Jun 2009 10:21:42 -0500<br>&gt; Subject: Re: [vtkusers] vtk &amp; shaders &amp; GPU<br>&gt; From: gbivins@objectreservoir.com<br>&gt; To: gbivins@objectreservoir.com; wsales@gmail.com; ilferraresebono@hotmail.it<br>&gt; CC: vtkusers@vtk.org<br>&gt; <br>&gt; Found it:<br>&gt; http://www.vtk.org/Wiki/images/3/39/Vtk_shaders_tudelft_tut.pdf<br>&gt; <br>&gt; <br>&gt; On 6/22/09 10:20 AM, "Gerrick Bivins" &lt;gbivins@objectreservoir.com&gt; wrote:<br>&gt; <br>&gt; &gt; Also, vtkEdge which I think is more focused on GPGPU algorithms has license<br>&gt; &gt; restrictions. If you are trying to do CAD type effects (simple phong<br>&gt; &gt; lighting or bump mapping for example) these can be done within the framework<br>&gt; &gt; of "regular" VTK.<br>&gt; &gt; <br>&gt; &gt; You can load a shader (glsl or cg) to an actor's property via an xml<br>&gt; &gt; material file or it can be defined inlined. Then turn shadingOn() on the<br>&gt; &gt; associated property.<br>&gt; &gt; <br>&gt; &gt; Although the  documentation is somewhat lacking (changing<br>&gt; &gt; uniforms,attributes etc) I've found that most of what I wanted to do can be<br>&gt; &gt; done.<br>&gt; &gt; <br>&gt; &gt; Basic methods you need look like this (Java):<br>&gt; &gt; {<br>&gt; &gt; ...<br>&gt; &gt;  property = actorToShade.GetProperty();<br>&gt; &gt;  property.LoadMaterialFromString(shader.getXMLShaderCodeString());<br>&gt; &gt;  property.ShadingOn();<br>&gt; &gt; ...<br>&gt; &gt; }<br>&gt; &gt; <br>&gt; &gt; I think some of the some of the tests in VTK show exactly how to do this.<br>&gt; &gt; <br>&gt; &gt; Here are the references I found a while back on the wiki<br>&gt; &gt; Implementation:<br>&gt; &gt; http://www.vtk.org/Wiki/VTK_Shaders<br>&gt; &gt; <br>&gt; &gt; Brief description:<br>&gt; &gt; http://www.vtk.org/Wiki/Shader_In_VTK<br>&gt; &gt; <br>&gt; &gt; There was a pretty good paper that I found (not easily) that walked through<br>&gt; &gt; a tutorial describing the basic parts of defining the shader pretty well...I<br>&gt; &gt; can try to dig that up if you'd like as well.<br>&gt; &gt; Gerrick <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; On 6/22/09 9:56 AM, "Wagner Sales" &lt;wsales@gmail.com&gt; wrote:<br>&gt; &gt; <br>&gt; &gt;&gt; Hi Giancarlo,<br>&gt; &gt;&gt; <br>&gt; &gt;&gt; You are looking for www.vtkedge.org.<br>&gt; &gt;&gt; <br>&gt; &gt;&gt; Regards,<br>&gt; &gt;&gt; <br>&gt; &gt;&gt; Wagner Sales<br>&gt; &gt;&gt; <br>&gt; &gt;&gt; 2009/6/22 Giancarlo Amati &lt;ilferraresebono@hotmail.it&gt;:<br>&gt; &gt;&gt;&gt; Hello guys,<br>&gt; &gt;&gt;&gt; <br>&gt; &gt;&gt;&gt; I would love to improve the my 3d software. I have a NVIDIA 7900GS GeForce<br>&gt; &gt;&gt;&gt; which I suppose it has a GPU. now, does vtk supports shaders and GPU<br>&gt; &gt;&gt;&gt; programming. If yes How? any example available? Any tutorial in building a<br>&gt; &gt;&gt;&gt; shader with VTK?<br>&gt; &gt;&gt;&gt; <br>&gt; &gt;&gt;&gt; very kind regards.<br>&gt; &gt;&gt;&gt; GC<br>&gt; &gt;&gt;&gt; <br>&gt; &gt;&gt;&gt; <br>&gt; &gt;&gt;&gt; ________________________________<br>&gt; &gt;&gt;&gt; Personalizza Messenger 2009. Scegli la grafica che ti rappresenta meglio!<br>&gt; &gt;&gt;&gt; _______________________________________________<br>&gt; &gt;&gt;&gt; Powered by www.kitware.com<br>&gt; &gt;&gt;&gt; <br>&gt; &gt;&gt;&gt; Visit other Kitware open-source projects at<br>&gt; &gt;&gt;&gt; http://www.kitware.com/opensource/opensource.html<br>&gt; &gt;&gt;&gt; <br>&gt; &gt;&gt;&gt; Please keep messages on-topic and check the VTK FAQ at:<br>&gt; &gt;&gt;&gt; http://www.vtk.org/Wiki/VTK_FAQ<br>&gt; &gt;&gt;&gt; <br>&gt; &gt;&gt;&gt; Follow this link to subscribe/unsubscribe:<br>&gt; &gt;&gt;&gt; http://www.vtk.org/mailman/listinfo/vtkusers<br>&gt; &gt;&gt;&gt; <br>&gt; &gt;&gt;&gt; <br>&gt; &gt;&gt; _______________________________________________<br>&gt; &gt;&gt; Powered by www.kitware.com<br>&gt; &gt;&gt; <br>&gt; &gt;&gt; Visit other Kitware open-source projects at<br>&gt; &gt;&gt; http://www.kitware.com/opensource/opensource.html<br>&gt; &gt;&gt; <br>&gt; &gt;&gt; Please keep messages on-topic and check the VTK FAQ at:<br>&gt; &gt;&gt; http://www.vtk.org/Wiki/VTK_FAQ<br>&gt; &gt;&gt; <br>&gt; &gt;&gt; Follow this link to subscribe/unsubscribe:<br>&gt; &gt;&gt; http://www.vtk.org/mailman/listinfo/vtkusers<br>&gt; &gt; <br>&gt; &gt; _______________________________________________<br>&gt; &gt; Powered by www.kitware.com<br>&gt; &gt; <br>&gt; &gt; Visit other Kitware open-source projects at<br>&gt; &gt; http://www.kitware.com/opensource/opensource.html<br>&gt; &gt; <br>&gt; &gt; Please keep messages on-topic and check the VTK FAQ at:<br>&gt; &gt; http://www.vtk.org/Wiki/VTK_FAQ<br>&gt; &gt; <br>&gt; &gt; Follow this link to subscribe/unsubscribe:<br>&gt; &gt; http://www.vtk.org/mailman/listinfo/vtkusers<br>&gt; <br><br /><hr />Preparati alla sfida all'ultima combinazione, <a href='http://livesearch.games.msn.com/crosswire/default_it/' target='_new'>gioca con Crosswire!</a></body>
</html>