<!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 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Doesn't this&nbsp;read in a simple bitmap file 
?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>bmpReader = 
vtk.vtkBMPReader()<BR>bmpReader.SetFileName(VTK_DATA_ROOT + 
"/Data/masonry.bmp")</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>it's&nbsp;all there, in&nbsp;TPlane.py in the 
examples/rendering/python dir.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Hope this helps</FONT></DIV>
<DIV><FONT face=Arial size=2>Malcolm</FONT></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=mlouw@unizar.es href="mailto:mlouw@unizar.es">Markus Louw</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=vtkusers@public.kitware.com 
  href="mailto:vtkusers@public.kitware.com">vtkusers@public.kitware.com</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, March 26, 2003 8:29 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [vtkusers] Textures, Colours, 
  SetScalars</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Arial size=2>Hello All</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>I&nbsp;am quite disappointed with vtk´s lack of 
  texture methods.&nbsp;&nbsp; It seems that none of the objects can read in a 
  simple BMP file and&nbsp;paint it onto</FONT></DIV>
  <DIV><FONT face=Arial size=2>a PolyData set. </FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>So I wrote the BMP file reader, now I am trying 
  to visualize my data</FONT></DIV>
  <DIV><FONT face=Arial size=2>&nbsp;(3D vertex points of faces, each face with 
  a texture map), and I´m trying to </FONT></DIV>
  <DIV><FONT face=Arial size=2>convert the byte RGB values to floats [0,1], (so 
  that I can set the scalar values of the vetrices to the new float colour 
  values), but&nbsp;it doesn´t work,&nbsp;</FONT></DIV>
  <DIV><FONT face=Arial size=2>the colours come out&nbsp;all funny.&nbsp;&nbsp; 
  &nbsp; I have set the SetNumberofComponents of the FloatArray scalar set to 3, 
  and have initialized it with the correct number of tuples...</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Thakns</FONT></DIV>
  <DIV><FONT face=Arial size=2>Markus</FONT></DIV></BLOCKQUOTE></BODY></HTML>