<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.3502.5390" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I have made to classes that make the same goal than
vtkImageActor.</FONT></DIV>
<DIV><FONT face=Arial size=2>It's a mapper and a texture that display a texture
with right pixels, not an interpolation like make vtkTexture when image isn't a
power of 2.</FONT></DIV>
<DIV><FONT face=Arial size=2>They have these advantages : </FONT></DIV>
<DIV><FONT face=Arial size=2> - a lookup table (like
vtkTexture)</FONT></DIV>
<DIV><FONT face=Arial size=2> - the possibility to be picked (like all 3D
actor, unlike vtkImageActor)</FONT></DIV>
<DIV><FONT face=Arial size=2> - the use of all possible vtkImageData (I
think of scalar type and number of components) (like vtkTexture, unlike
vtkImageActor wich is limited to gray scale images in 256 colors)</FONT></DIV>
<DIV><FONT face=Arial size=2> - it works in 3D (unlike
vtkImageMapper)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>They inherits respectively from vtkPolyDataMapper
and vtkTexture.</FONT></DIV>
<DIV><FONT face=Arial size=2>It works perfectly under lunix and windows2000 with
OpenGL</FONT></DIV>
<DIV><FONT face=Arial size=2>I'm sorry, but I didn't have made Mesa files
corresponding to OpenGL, and it hasn't been tested under other platforms (that I
haven't)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>In the same consideration, I have made the work to
have multi-texturing... using many vtkImageData on input of a texture. They are
drawn in the order that they have been taken on input.</FONT></DIV>
<DIV><FONT face=Arial size=2>In combination to the multi-texture objet, I have
made the mapper which realize the mapping (it's doesn't use the OpenGL
extensions to accelerate this works but I know who to make it if anyone requires
that).</FONT></DIV>
<DIV><FONT face=Arial size=2>I don't know if it could be good to make only one
vtkTexture that offers this multi-texture possibility... it's to
see...</FONT></DIV>
<DIV><FONT face=Arial size=2>These classes of multi-texture are in the same way
than before, right pixels are drawn.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I think it could be usefull in vtk...
:-)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Files can be found at the URL : <A
href="http://www.creatis.insa-lyon.fr/~regrain/VTK/Rendering/">www.creatis.insa-lyon.fr/~regrain/VTK/Rendering/</A></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>PS : if anyone makes Mesa files, could you inform
me.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Cheer</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>-----------------------------------------------------------------<BR>Benoit
Regrain<BR>Ingénieur d'études CNRS (Creatis)<BR>email : <A
href="mailto:regrain@creatis.insa-lyon.fr">regrain@creatis.insa-lyon.fr</A><BR>INSA
- Bâtiment Blaise Pascal<BR>7, avenue Jean Capelle<BR>F - 69621 Villeurbanne
Cedex</FONT></DIV></BODY></HTML>