Re: [osg-users] cmake errors with 2.9.8

2010-07-17 Thread Stephan Huber
Hi, Am 16.07.10 16:43, schrieb Jean-Sébastien Guay: But if what Stephan says is true, then it means that even if guarded by an IF(APPLE) the parser will choke on the FRAMEWORK keyword so it won't work... I was wrong, there are two occurances of the FRAMEWORK-keyword. One is guarded, the other

Re: [osg-users] Event Handling from outside a Viewer

2010-07-17 Thread Robert Osfield
Hi Tom, The EventQueue's CurrentEventState is a event state tracker that is used to populate new events with current settings such as mouse position, buttons pressed. This is done as events coming in from windowing toolkits are specific to the event type. If you want to pass events on then

Re: [osg-users] osgVolume volume rendering ?

2010-07-17 Thread Emmanuel Roche
Hello Dzenan! i've just tried the website you suggested, downloaded the baby.pvm, bonsai1.pvm and bunny.pvm datasets, and tried commands such as: osgvolume --window 50 50 600 400 --raw 256 256 98 1 1 big baby.pvm -- As I have no idea about the numberOfcomponents and endianness of those files I

Re: [osg-users] osgVolume volume rendering ?

2010-07-17 Thread Dženan Zukić
Hi, I don't think osg's data folder has anything to do with it. I just took a look, and realized .pvm format is compressed. You can get gzipped datasets from volvis.org, for example this 256x256x256 dataset: http://www.gris.uni-tuebingen.de/edu/areas/scivis/volren/datasets/data/bonsai.raw.gz

Re: [osg-users] osgVolume volume rendering ?

2010-07-17 Thread Emmanuel Roche
Thanks for your help Dzenan, but unfortunetaly, this is still not working (still get a crash and no display), I used: *osgvolume --raw 256 256 256 1 3 big bonzai.raw* Note that I must specify the endianness and number of components (but I tried multiple tests again), here is the help for the

Re: [osg-users] osgVolume volume rendering ?

2010-07-17 Thread Emmanuel Roche
One very interesting detail concerning those osgVolume tests (still on Windows) by the way: I use a command like: *osgvolume --test2 --shader --zSize 100 --window 50 50 600 400 CEMRA_HIGHRES\IM-0001-0001.png CEMRA_HIGHRES\IM-0001-0002.png CEMRA_HIGHRES\IM-0001-0003.png ... [more files here] ...

Re: [osg-users] osgVolume volume rendering ?

2010-07-17 Thread Emmanuel Roche
Okay guys ! I've just tested this on linux, and the command: *osgvolume --raw 256 256 256 1 1 big bonzai.raw worked just fine !!! *So I guess this problem is only on Windows. The good news is, I also did: *osgvolume --raw 256 256 256 1 1 big bonzai.raw -o bonzai.dds [on linux] *then used

Re: [osg-users] osgVolume volume rendering ?

2010-07-17 Thread Dženan Zukić
Hi, The command you used on linux should also work on windows. Don't have time to investigate that right now, but you manged to get it to work, in some way. Cheers, Dženan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=30097#30097

Re: [osg-users] cmake errors with 2.9.8

2010-07-17 Thread Stephan Huber
Hi, Am 17.07.10 11:12, schrieb Stephan Huber: I was wrong, there are two occurances of the FRAMEWORK-keyword. One is guarded, the other not. AFAIK it is safe to remove the unguarded FRAMEWORK line completely as it is redundant. I'll try it, but recompiling all the stuff needs some time.

Re: [osg-users] osgVolume volume rendering ?

2010-07-17 Thread Emmanuel Roche
Concerning the DICOM issue, I performed additional tests: - The error seems to be related to compressed DICOM datasets. - On the website http://pubimage.hcuge.ch:8080/, most dataset will generate errors (Invalid data value) when trying to read the dcm files as is). the PHENIX dataset works (it

Re: [osg-users] osgVolume volume rendering ?

2010-07-17 Thread Dženan Zukić
Hi, I don't know which version of GDCM osg is using, or how well is it integrated. You could check out ITK library (http://itk.org), it has an example (called DicomReadImageWrite or similar) which can read dicom images and convert them to other formats - I recommend .mha, because its header