<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4207.2601" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Oops, I forgot to insert the program, sorry.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>Here it is:</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>void main( int argc, char *argv[] )<BR>{<BR>&nbsp; // create a 
rendering window and renderer<BR>&nbsp; vtkRenderer *ren_upper = 
vtkRenderer::New();<BR>&nbsp; vtkRenderer *ren_lower = 
vtkRenderer::New();<BR>&nbsp;&nbsp;&nbsp; 
ren_upper-&gt;SetViewport(0,0.5,1.0,1.0);<BR>&nbsp;&nbsp;&nbsp; 
ren_lower-&gt;SetViewport(0,0,1,0.5);<BR>&nbsp;&nbsp; <BR>&nbsp; vtkRenderWindow 
*renWindow = vtkRenderWindow::New();<BR>&nbsp;&nbsp;&nbsp; 
renWindow-&gt;AddRenderer(ren_upper);<BR>&nbsp;&nbsp;&nbsp; 
renWindow-&gt;AddRenderer(ren_lower);<BR>&nbsp; renWindow-&gt;SetSize( 300, 300 
);<BR>&nbsp;&nbsp; vtkRenderWindowInteractor *iren = 
vtkRenderWindowInteractor::New();<BR>&nbsp;&nbsp;&nbsp; 
iren-&gt;SetRenderWindow(renWindow);</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp; // create an actor and give it cone geometry<BR>&nbsp; 
vtkVectorText *text = vtkVectorText::New();<BR>&nbsp;&nbsp;&nbsp; 
text-&gt;SetText("1");<BR>&nbsp; vtkPolyDataMapper *textMapper = 
vtkPolyDataMapper::New();<BR>&nbsp;&nbsp;&nbsp; 
textMapper-&gt;SetInput(text-&gt;GetOutput());<BR>&nbsp; vtkActor *textActor = 
vtkActor::New();<BR>&nbsp;&nbsp;&nbsp; 
textActor-&gt;SetMapper(textMapper);<BR>&nbsp;&nbsp;&nbsp; 
textActor-&gt;SetPosition(100.25,100.25,100.25);<BR>&nbsp;&nbsp;&nbsp; 
textActor-&gt;SetScale(0.5,0.5,0.5);</FONT></DIV>
<DIV><FONT size=2>&nbsp;&nbsp;&nbsp; 
textActor-&gt;GetProperty()-&gt;SetColor(0,0,1.0);</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp; vtkSphereSource *sphere = 
vtkSphereSource::New();<BR>&nbsp;&nbsp;&nbsp; 
sphere-&gt;SetCenter(100,100,100);<BR>&nbsp;&nbsp;&nbsp; 
sphere-&gt;SetRadius(0.5);<BR>&nbsp; vtkPolyDataMapper *sphereMapper = 
vtkPolyDataMapper::New();<BR>&nbsp;&nbsp;&nbsp; 
sphereMapper-&gt;SetInput(sphere-&gt;GetOutput());<BR>&nbsp; vtkActor 
*sphereActor = vtkActor::New();<BR>&nbsp;&nbsp;&nbsp; 
sphereActor-&gt;SetMapper(sphereMapper);<BR>&nbsp;&nbsp;&nbsp; 
sphereActor-&gt;GetProperty()-&gt;SetColor(1.0,0,0);</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp; vtkVectorText *text2 = 
vtkVectorText::New();<BR>&nbsp;&nbsp;&nbsp; text2-&gt;SetText("2");</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp; vtkPolyDataMapper *textMapper2 = 
vtkPolyDataMapper::New();<BR>&nbsp;&nbsp;&nbsp; 
textMapper2-&gt;SetInput(text2-&gt;GetOutput());<BR>&nbsp; vtkActor *textActor2 
= vtkActor::New();<BR>&nbsp;&nbsp;&nbsp; 
textActor2-&gt;SetMapper(textMapper2);<BR>&nbsp;&nbsp;&nbsp; 
textActor2-&gt;SetPosition(100.25,100.25,100.25);<BR>&nbsp;&nbsp;&nbsp; 
textActor2-&gt;SetScale(0.5,0.5,0.5);</FONT></DIV>
<DIV><FONT size=2>&nbsp;&nbsp;&nbsp; 
textActor2-&gt;GetProperty()-&gt;SetColor(0,0,1.0);<BR>&nbsp; </FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp; vtkSphereSource *sphere2 = 
vtkSphereSource::New();<BR>&nbsp;&nbsp;&nbsp; 
sphere2-&gt;SetCenter(100,100,100);<BR>&nbsp;&nbsp;&nbsp; 
sphere2-&gt;SetRadius(0.5);<BR>&nbsp; vtkPolyDataMapper *sphereMapper2 = 
vtkPolyDataMapper::New();<BR>&nbsp;&nbsp;&nbsp; 
sphereMapper2-&gt;SetInput(sphere2-&gt;GetOutput());<BR>&nbsp; vtkActor 
*sphereActor2 = vtkActor::New();<BR>&nbsp;&nbsp;&nbsp; 
sphereActor2-&gt;SetMapper(sphereMapper2);<BR>&nbsp;&nbsp;&nbsp; 
sphereActor2-&gt;GetProperty()-&gt;SetColor(1.0,0,0);</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp; // assign our actor to the 
renderer<BR>&nbsp;&nbsp;ren_upper-&gt;AddActor(textActor);<BR>&nbsp; 
ren_upper-&gt;AddActor(sphereActor);<BR>&nbsp; 
ren_lower-&gt;AddActor(textActor2);<BR>&nbsp; 
ren_lower-&gt;AddActor(sphereActor2);</FONT></DIV>
<DIV><FONT size=2>&nbsp; </FONT></DIV>
<DIV><FONT size=2>&nbsp;&nbsp;ren_upper-&gt;SetBackground(1,1,1);<BR>&nbsp; 
ren_lower-&gt;SetBackground(0.8,0.8,0.8);</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp; // draw the resulting scene<BR>&nbsp; 
renWindow-&gt;Render();</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp; iren-&gt;Start();</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp;&nbsp;</FONT><FONT size=2>// Clean up<BR>&nbsp; 
ren_lower-&gt;Delete();<BR>&nbsp; ren_upper-&gt;Delete();<BR>&nbsp; 
renWindow-&gt;Delete();<BR>&nbsp; text-&gt;Delete();<BR>&nbsp; 
textMapper-&gt;Delete();<BR>&nbsp; textActor-&gt;Delete();<BR>&nbsp; 
sphere-&gt;Delete();<BR>&nbsp; sphereMapper-&gt;Delete();<BR>&nbsp; 
sphereActor-&gt;Delete();<BR>&nbsp; text2-&gt;Delete();<BR>&nbsp; 
textMapper2-&gt;Delete();<BR>&nbsp; textActor2-&gt;Delete();<BR>&nbsp; 
sphere2-&gt;Delete();<BR>&nbsp; sphereMapper2-&gt;Delete();<BR>&nbsp; 
sphereActor2-&gt;Delete();<BR>}</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=tarifa@rpi.edu href="mailto:tarifa@rpi.edu">Asad A. Abu-Tarif</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=vtkusers@public.kitware.com 
  href="mailto:vtkusers@public.kitware.com">vtk User List</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, October 18, 2001 4:12 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [vtkusers] Strange response on 
  Linux</DIV>
  <DIV><BR></DIV>
  <DIV><FONT size=2>Hi,</FONT></DIV>
  <DIV><FONT size=2>I started recently porting the code I've been developing for 
  2 years</FONT></DIV>
  <DIV><FONT size=2>on NT to Linux. So, I'm really new to Linux!!</FONT></DIV>
  <DIV><FONT size=2>I compiled and ran the following program on both WinNT and 
  Linux.</FONT></DIV>
  <DIV><FONT size=2>The program runs as expected on NT (a sphere in the upper 
  renderer</FONT></DIV>
  <DIV><FONT size=2>with the number 1 and a white background; and a sphere in 
  the lower</FONT></DIV>
  <DIV><FONT size=2>renderer with the number 2 and a grayish 
  background).</FONT></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><FONT size=2>However, when I run it under linux the following 
  happens:</FONT></DIV>
  <DIV><FONT size=2>1) The upper renderer is black (not white)&nbsp;and contains 
  no actors.</FONT></DIV>
  <DIV><FONT size=2>2) The lower renderer is white (not grayish) but has the 
  correct actors.</FONT></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><FONT size=2>Did anyone encounter such a problem on Linux 
  before?</FONT></DIV>
  <DIV><FONT size=2>I'm using Linux RedHat 6.2 and Mesa 3.1.2</FONT></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><FONT size=2>Thanks,</FONT></DIV>
  <DIV><FONT size=2>Asad</FONT></DIV>
  <DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  __________________________________________________<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
  /&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  Asad A. 
  Abu-Tarif&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  \<BR>&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp; Computer 
  Engineering.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  |&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp; PhD 
  Candidate, Rensselaer Polytechnic Institute 
  (RPI).&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |</FONT></DIV>
  <DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;PhD Thesis: 
  Multi-Model 3D&nbsp;Registration&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
  \___________________________________________________/ 
<BR></DIV></BLOCKQUOTE></FONT></BODY></HTML>