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