Changes between Version 11 and Version 12 of Examples/Ear5Animating


Ignore:
Timestamp:
07/20/18 12:19:32 (6 years ago)
Author:
Herwig Zilken
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Examples/Ear5Animating

    v11 v12  
    171171bash -c 'export DISPLAY=:0.0 && pvserver --disable-xdisplay-test' & sleep 2; pvpython ./script.py
    172172}}}
    173 
     173== Hints for generating a textured sphere ==
     174As there are some bugs in !ParaView, a nice looking textured sphere must be defined as follows:
     175* Don't set the !EndTheta of the sphere to 360. Instead use a little bit lower value: "sphere.!EndTheta = 359.9999"
     176* To use a texture, the !TextureMaptoSphere filter must be attached to the sphere via "textureMaptoSphere = !TextureMaptoSphere(Input=sphere)". To work correctly, the !PreventSeam attribute has to be disabled: "textureMaptoSphere.!PreventSeam = 0"
     177* here is how to attach a texture image to the sphere (tested with !ParaView 5.5):
     178{{{
     179#!python
     180textureMaptoSphere = TextureMaptoSphere(Input=sphere)
     181textureMaptoSphere.PreventSeam = 0
     182textureMaptoSphereDisplay = Show(textureMaptoSphere, renderView)
     183textureMaptoSphereDisplay.Representation = 'Surface'
     184texProxy = servermanager.CreateProxy("textures", "ImageTexture")
     185texProxy.GetProperty("FileName").SetElement(0, "./images_earth/earth_heller_transformed.jpg")
     186texProxy.UpdateVTKObjects()
     187textureMaptoSphereDisplay.Texture = texProxy
     188}}}
    174189== Sample session on how to use the attached scripts ==
    175190All files needed to run this sample session can be found in the attachment at the end of this page! Just download from there.\\