[vtkusers] Missing texture file in vtkTexturedSphere example?

BBerco bebe0705 at colorado.edu
Fri Oct 28 21:26:04 EDT 2016


Hi all, 

I have been trying to map a 2D texture onto a spherical surface following
the tutorial on vtkTexturedSphere

http://www.paraview.org/Wiki/VTK/Examples/Cxx/Texture/TexturedSphere

Unfortunately, no information on the image used in this example (dimensions,
image pre-processing , not to mention the actual file) is provided to the
user. Applying the example code to an arbitrary rectangular image results in
an incorrect results, as if the texture image was wrapped multiple times
around the sphere.

I'm thinking that the input file used in the example was probably applied
some sort of transform before being fed to vtk. I tried to use the SetScale
method in vtkTexturedSphere, to no avail (I honestly don't know which way to
look here).

Any advice as to how I could get rid of the wrapping discrepancies using a
rectangular image such as  this one
<http://naturalearth.springercarto.com/ne3_data/8192/textures/2_no_clouds_8k.jpg> 
?

Thanks!

Ben







--
View this message in context: http://vtk.1045678.n5.nabble.com/Missing-texture-file-in-vtkTexturedSphere-example-tp5740971.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list