[Paraview] Discrepancy between paraview display and python rendering

David Doria daviddoria at gmail.com
Sat Jun 27 11:28:07 EDT 2009


(Demo files are available here: http://www.rpi.edu/~doriad/Cars/ )

If I load 0.vtp and 1.vtp in paraview, set the camera focal point to
(0,0,0), the camera position to (20, -20, 5), and the viewing angle to 45,
the car in 0.vtp looks "bigger" than the car in 1.vtp. However, if I run the
script CreateThumbnails.py (in the above link) with these commands

./CreateThumbnails.py --input=0.vtp --rep=Surface --output=python_0.png
--campos=20 -20 5
./CreateThumbnails.py --input=1.vtp --rep=Surface --output=python_1.png
--campos=20 -20 5

in the resulting images car 1 looks bigger than car 0!! Is this some
perspective projection illusion? Or am I missing a camera parameter in the
script that is making it look different? I feel like I may be doing
something wrong in the script because if I run this command

./CreateThumbnails.py --input=1.vtp --rep=Surface --output=1test.png
--campos=1 -1 .25

(the difference is that campos is scaled), the exact same image is produced
(as python_1.png).  It seems like this one should be a zoomed in version as
the camera should be very close to the car.

Any thoughts?

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20090627/ac8080d1/attachment.htm>


More information about the ParaView mailing list