[vtkusers] Nicola Creati <ncreati at inogs.it>
L.J. van Ruijven
L.J.vanRuijven at amc.uva.nl
Mon Jan 26 04:39:59 EST 2009
Hello Nicola,
I am using VTK 5.2.0 on windows XP 64 and I developed programs with TCL 8.6 and Visual Studio C++. But I never encountered this problem. I regularly use vtkPolyData, tkPolydataMapper, vtkActor, and vtkRenderer. So I think they are not really suspect. But that leaves a lot of potential error sources open. So I suggest you try to narrow down the error.
It is a pity that I never managed to compile Python for the X64 platform, so I cannot test what would happen on my machine. Is there somebody else who is able to test this? That might indicate whether the hardware is responsible.
Also, I never used vtkMaskPoints. Maybe you can check whether the dataset returned by mask is correct? You might use a vtkDataSetWriter to write the result to your harddisk, and check the result.
Finally, you did not mention this explicitly, but did you use the 64 bit versions of Python and VTK with Windows x64 or did you use the same executables as you used on the win32 platform?
Leo.
> Message: 10
> Date: Fri, 23 Jan 2009 14:57:03 +0100
> From: Nicola Creati <ncreati at inogs.it>
> Subject: [vtkusers] No data shown on windows xp 64 bit
> To: vtkusers at vtk.org
> Message-ID: <4979CCAF.2080802 at inogs.it>
> Content-Type: text/plain; charset="iso-8859-15"; Format="flowed"
>
> Hello,
> I'm developing a simple application that use VTK to show laser data
> (x,
> y, z, i). I generally work on both linux and windows computer 32 and
> 64
> bit. My application perfectly work on Linux and windows xp
> professional
> 32 bit but I have some problems on windows xp 64 bit if i have to
> show
> large dataset. On winXp 64 bit the same code show nothing on the
> screen
> and I got no error messages at all. I have the following hardware:
>
> Sun UltraWorkstation 24
> Intel Core2 Duo E6850 3.0Ghz
> 5 Gb RAM DDR2-667
> Nvidia Qadro FX 1700 512 Mb driver version 169.21.
>
> I have also tried to update the video driver but the problem is not
> solved and I generally get a decrease of 3d performance with newer
> video
> drivers.
> I'm working with VTK 5.2.1.
> I have tried to trace the mouse position on screen and even if i see
>
> nothing I got printed the coordinate of my dataset. It seems that the
>
> data are there but not shown..... I do not know what is happening.
> This is an example script that on my 64 bit windows xp pc replicate
> the
> problem (on linux 32 and 64 and windows xp 32 bit it works perfectly):
>
> import vtk
> import numpy as N
> from numpy_support import numpy_to_vtk
>
> # Convert numpy array to vtk array
> xyz = N.ascontiguousarray(N.random.random((9000000,3)))
> vtk_xyz = numpy_to_vtk(xyz)
> scalar = N.ascontiguousarray(N.random.random((9000000,1)))
> vtk_scalar = numpy_to_vtk(scalar)
>
> # create Point vtk object
> points = vtk.vtkPoints()
> points.SetData(vtk_xyz)
>
> #Create Polydata
> pd = vtk.vtkPolyData()
> pd.SetPoints(points)
> pd.GetPointData().SetScalars(vtk_scalar)
>
> # Add a mask
> mask = vtk.vtkMaskPoints()
> mask.SetInput(pd)
> mask.GenerateVerticesOn()
> mask.SetOnRatio(1)
>
> # Create the mapper
> m = vtk.vtkPolyDataMapper()
> m.SetInput(mask.GetOutput())
> m.ScalarVisibilityOn()
>
> # Create the actor
> a = vtk.vtkActor()
> a.SetMapper(m)
> a.GetProperty().SetRepresentation(0)
>
> # Add to renderer
> ren = vtk.vtkRenderer()
> ren.AddActor(a)
>
> renWin = vtk.vtkRenderWindow()
> renWin.AddRenderer(ren)
> rwi = vtk.vtkRenderWindowInteractor()
> rwi.SetRenderWindow(renWin)
>
> rwi.Initialize()
> rwi.Render()
> rwi.Start()
>
>
> Thanks.
>
> Nicola
>
> --
> Nicola Creati
> Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS
> www.inogs.it Dipartimento di Geofisica della Litosfera Geophysics of
> Lithosphere Department CARS (Cartography and Remote Sensing) Research
> Group http://www.inogs.it/Cars/ Borgo Grotta Gigante 42/c 34010
> Sgonico - Trieste - ITALY ncreati at ogs.trieste.it
> off. +39 040 2140 213
> fax. +39 040 327307
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: L.J.vanRuijven.vcf
Type: text/x-vcard
Size: 261 bytes
Desc: Card for "L.J. van Ruijven" <L.J.vanRuijven at amc.uva.nl>
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090126/a4db1659/attachment.vcf>
More information about the vtkusers
mailing list