[vtkusers] No data shown on windows xp 64 bit

Nicola Creati ncreati at inogs.it
Fri Jan 23 08:57:03 EST 2009


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

_____________________________________________________________________
This communication, that may contain confidential and/or legally privileged information, is intended solely for the use of the intended addressees. Opinions, conclusions and other information contained in this message, that do not relate to the official business of OGS, shall be considered as not given or endorsed by it. Every opinion or advice contained in this communication is subject to the terms and conditions provided by the agreement governing the engagement with such a client. Any use, disclosure, copying or distribution of the contents of this communication by a not-intended recipient or in violation of the purposes of this communication is strictly prohibited and may be unlawful. For Italy only: Ai sensi del D.Lgs.196/2003 - "T.U. sulla Privacy" si precisa che le informazioni contenute in questo messaggio sono riservate ed a uso esclusivo del destinatario.
_____________________________________________________________________ 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ncreati.vcf
Type: text/x-vcard
Size: 270 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090123/178bd15a/attachment.vcf>


More information about the vtkusers mailing list