<div dir="ltr">Hello Xiaoming,<div><br></div><div>I created a new vtkOpenGLProperty and set it to the actor, anyways i tried to cast the vtkProperty obtained by the a <span style="font-family:arial,sans-serif;font-size:13px">vtkActor::GetProperty(), because vtkProperty is an abstract class. I tried so many things to make it work but i didn't manage to do it. Also i tried to use vtkOpenGLActors instead of vtkActors but it also didn't work.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div>Carlos.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-07-18 9:46 GMT+02:00 xiaoming [via VTK] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=5727905&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span>:<br>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

        i'm sorry but i see that vtkActor::GetProperty() returns a pointer to the vtkProperty not vtkOpenGLProperty,which has a member of SetPropProgram,i 'm just confused with the 7th step,would you bother to tell me sth about that ,thanks in advance.
<br>Quote:
<br><div class=""><  7- Put ShadingOn to the property and SetPropProgram with the
<br>vtkShaderProgram2 build before (The vtkShaderProgram on debug has only the
<br>2 shaders I put in).>
<br><br>

        
        
        
        <br>
        <br>
        </div><hr noshade size="1" color="#cccccc">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div class="">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </div><a href="http://vtk.1045678.n5.nabble.com/GLSL-Shader-on-a-vtkActor-VTK-6-1-and-Qt-5-2-1-tp5727788p5727903.html" target="_blank" rel="nofollow" link="external">http://vtk.1045678.n5.nabble.com/GLSL-Shader-on-a-vtkActor-VTK-6-1-and-Qt-5-2-1-tp5727788p5727903.html</a>
        </div><div class="HOEnZb"><div class="h5">
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from GLSL Shader on a vtkActor (VTK 6.1 and Qt 5.2.1), <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>

                <a href="http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></div></div></blockquote></div><br></div>


        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/GLSL-Shader-on-a-vtkActor-VTK-6-1-and-Qt-5-2-1-tp5727788p5727905.html">Re: GLSL Shader on a vtkActor (VTK 6.1 and Qt 5.2.1)</a><br/>
Sent from the <a href="http://vtk.1045678.n5.nabble.com/VTK-Dev-f1251487.html">VTK - Dev mailing list archive</a> at Nabble.com.<br/>