<br><font size=2 face="sans-serif">Dean,</font>
<br>
<br><font size=2 face="sans-serif">My code is very similar to yours and I couldn't get this to work either. Its not very intuitive. If the cube's origin is correct and the extent 1 in all directions and Repeat is On, I can get an exact copy of my image on all cube faces. If repeat is off, then I get two faces filled, and a very light smear on two other faces with the top and bottom blank. I've tried zillions of extent combos with origin offsets and can make heads or tails out of it. I tried maping to sphere too but I couldn't see anything.</font>
<br>
<br><font size=2 face="sans-serif">What are you seeing....john</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>&quot;Dean Inglis&quot; &lt;dean.inglis@camris.ca&gt;</b></font>
<br><font size=1 face="sans-serif">Sent by: vtkusers-admin@vtk.org</font>
<p><font size=1 face="sans-serif">05/06/2004 02:25 PM</font>
<br>
<td><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; To: &nbsp; &nbsp; &nbsp; &nbsp;&quot;vtkusers archive&quot; &lt;vtkusers@vtk.org&gt;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; cc: &nbsp; &nbsp; &nbsp; &nbsp;(bcc: John Anast-JM/PGI)</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Subject: &nbsp; &nbsp; &nbsp; &nbsp;[vtkusers] texture map to cube</font></table>
<br>
<br>
<br><font size=2 face="Courier New">I am trying to texture map a set of 6 face labels<br>
to a cube. &nbsp;So far I am just trying to map 4 of<br>
the faces with +/- coordinate face labels. The input<br>
image looks like this:<br>
<br>
---------------------<br>
| -X | -Y | +X | +Y |<br>
---------------------<br>
<br>
The unsuccessful pipeline is:<br>
<br>
package require vtk<br>
package require vtkinteraction<br>
<br>
vtkCubeSource cube<br>
cube SetBounds -1 1 -1 1 -1 1<br>
<br>
vtkTextureMapToPlane tmap<br>
#vtkTextureMapToCylinder tmap<br>
tmap SetInput [cube GetOutput]<br>
#tmap AutomaticPlaneGenerationOn<br>
<br>
vtkPolyDataMapper pmap<br>
pmap SetInput [tmap GetOutput]<br>
<br>
vtkPNGReader reader<br>
reader SetFileName &quot;testwrap.png&quot;<br>
<br>
vtkTexture texture<br>
texture SetQualityTo32Bit<br>
texture InterpolateOn<br>
#texture RepeatOn<br>
texture RepeatOff<br>
texture SetInput [reader GetOutput]<br>
<br>
vtkActor tact<br>
tact SetMapper pmap<br>
tact SetTexture texture<br>
<br>
<br>
# Create graphics stuff<br>
#<br>
vtkRenderer ren1<br>
vtkRenderWindow renWin<br>
 &nbsp; &nbsp;renWin AddRenderer ren1<br>
vtkRenderWindowInteractor iren<br>
 &nbsp; &nbsp;iren SetRenderWindow renWin<br>
<br>
# Add the actors to the renderer, set the background and size<br>
ren1 AddActor tact<br>
<br>
ren1 ResetCameraClippingRange<br>
ren1 SetBackground 0 .5 .4<br>
<br>
renWin SetSize 800 800<br>
iren Initialize<br>
<br>
# render the image<br>
#<br>
iren AddObserver UserEvent {wm deiconify .vtkInteract}<br>
<br>
# prevent the tk window from showing up then start the event loop<br>
wm withdraw .<br>
<br>
<br>
any hints? &nbsp;thanks,</font>
<br><font size=2 face="Courier New">Dean<br>
<br>
_______________________________________________<br>
This is the private VTK discussion list. <br>
Please keep messages on-topic. Check the FAQ at: &lt;http://public.kitware.com/cgi-bin/vtkfaq&gt;<br>
Follow this link to subscribe/unsubscribe:<br>
http://www.vtk.org/mailman/listinfo/vtkusers<br>
</font>
<br>
<br>