[vtkusers] seam around texture

Sebastien sebastien.calvi at yahoo.com
Thu Jan 12 18:21:44 EST 2012


Hello all,

I am pretty new with vtk and I am having issues with the handling of
textures. I create a bunch of images through the Qt library (QImage) that i
want to tile on a plane in a 3D space. So far it works but I am not happy
with the result because I have seam all around my actors loaded with the
textures, OR, if I set my texture with "SetInterpolate( TRUE )" then I can
see that there is no seam anymore but instead I can observe a sort of
"shift" (horizontal and vertical) of about 1 pixel and this for all my
actors (all the texture).

I have done some pretty extensive research before writing this and I have
found the following thread:


/A few weeks ago, texture edge clamping was added to vtkTexture. If
you are using the CVS head of VTK (as opposed to a stable release),
you might try EdgeClampOn() + RepeatOff() on your texture.

    David
________________________________________
From: [hidden email] [[hidden email]] On Behalf Of Matthias Riechmann
[[hidden email]]
Sent: Saturday, December 06, 2008 16:23
To: [hidden email]
Subject: [vtkusers] Seams in textures

Hi,

I applied a cylindrical texture mapping to a polydata in order to render
a texturized object. So far it works quite well but at the border
between the texture coordinates 1.0 and 0.0 there is some stragne
behavior. The class vtkTextureMapToCylinder calls this "seam" and tries
to solve this by adding a mirrored instance of the texture. But in my
case I need to apply an exact texture without any mirroring and
duplicating. Does VTK provide any way of solving this issue? Or do I
have to accept this as a feature of VTK?


Matthias 
/

So, I have tried what is said above but with no success. Actually as soon as
I switch to RepeatOff() my textures do not even look the same than when it
is in repeat mode ON.

I try to perform this "Tiling" operation because the image that I have to
display might be pretty big (couple of MB...).

so, how come one can see these seam around the actors?
Why is there this mirroring effect on the very edge (2 in fact) of my actor?
Am I being a bit too obstinate with my solution, is there a different
approach to handle that?
Can I use a texture of even big size or am I going to be limited? (I believe
that there is limitations about size of texture...).

Thank you for your help,
Seb.

--
View this message in context: http://vtk.1045678.n5.nabble.com/seam-around-texture-tp5141316p5141316.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list