<DIV>hello!</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I want to render something in the vtkWin32OpenGLRenderWindow using OpenGL. The sentenses are as follow:</DIV>
<DIV>&nbsp;</DIV>
<DIV>////////////////////////////////////////</DIV>
<DIV>...................&nbsp;&nbsp;&nbsp;&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;this-&gt;renWin-&gt;AddRenderer(this-&gt;ren);<BR>&nbsp;this-&gt;renWin-&gt;SetParentId(this-&gt;m_hWnd);</DIV>
<DIV>&nbsp;this-&gt;iren-&gt;SetInteractorStyle(this-&gt;interactorStyle);<BR>&nbsp;this-&gt;iren-&gt;SetRenderWindow(this-&gt;renWin);&nbsp;&nbsp; </DIV>
<DIV>&nbsp;this-&gt;ren-&gt;AddActor(this-&gt;axesActor);</DIV>
<DIV>renWin-&gt;Render();</DIV>
<DIV>for (i = 5; i &gt;= 0; i--)<BR>&nbsp;{<BR>&nbsp;&nbsp;glBegin (GL_LINE_LOOP);<BR>&nbsp;&nbsp;glNormal3fv (&amp;n[i][0]);<BR>&nbsp;&nbsp;glVertex3fv (&amp;v[faces[i][0]][0]);<BR>&nbsp;&nbsp;glVertex3fv (&amp;v[faces[i][1]][0]);<BR>&nbsp;&nbsp;glVertex3fv (&amp;v[faces[i][2]][0]);<BR>&nbsp;&nbsp;glVertex3fv (&amp;v[faces[i][3]][0]);<BR>&nbsp;&nbsp;glEnd ();<BR>&nbsp;}<BR>&nbsp;&nbsp;&nbsp;iren-&gt;Start();</DIV>
<DIV>//////////////////////////////////////////</DIV>
<DIV>but it seems not to&nbsp;take effect. is there anything I should take care of to use vtk with opengl? If someone could offer samples , it would be terrific.</DIV>
<DIV>Thanks in advance.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV><p>
                <hr size=1>DO YOU YAHOO!?<br> 
<a href="http://cn.mail.yahoo.com/?id=77072" target=blank> 
雅虎免费G邮箱-中国最强免费防毒反垃圾超大邮箱</a>