VSG Logo   OpenInventor Forum

Go Back   Open Inventor Forum > Open Inventor Main Forum

Reply
 
Thread Tools Display Modes
  #1  
Old 03-04-2010, 08:31 AM
aman.sonu aman.sonu is offline
Junior Member
 
Join Date: Nov 2008
Posts: 22
Default SoVolumeRender Node

Hello Friends,

I m trying to change the number of slices of SoVolumeRender Node, but it is not showing any effect.



SoVolumeRender *volRend = new SoVolumeRender();

volRend->interpolation = SoVolumeRender::LINEAR;
volRend->composition = SoVolumeRender::ALPHA_BLENDING;
volRend->numSlicesControl.setValue(SoVolumeRender::AUTOMAT IC);

volRend->viewAlignedSlices.setValue(true);
volRend->numSlices = 1024;


I tried everything, but all in vain

Please help, if any one know the solution

Thanks in advance,
Aman
Reply With Quote
  #2  
Old 03-05-2010, 03:00 PM
mikeheck's Avatar
mikeheck mikeheck is online now
Moderator
 
Join Date: Sep 2008
Location: Carlsbad, CA, USA
Posts: 334
Default numSlices

Quote:
Originally Posted by aman.sonu View Post
I m trying to change the number of slices of SoVolumeRender Node, but it is not showing any effect.
You're saying that you set different values in the numSlices field and there is no change in the image on the screen, right?
There are no known problems with this... You should be able to confirm that changing the number of slices works by running the VolRend demo/example that comes with the SDK. (On the VolumeRendering tab there is a slider to change the number of slices.)

What are the dimensions of the volume and what values of numSlices have you tried?

-Mike
Reply With Quote
  #3  
Old 04-23-2010, 03:50 PM
aman.sonu aman.sonu is offline
Junior Member
 
Join Date: Nov 2008
Posts: 22
Default SoVolumeRender Node

Thanks Mike.

Problem has solved. I am facing some new problems in Volume Rendering and very strange.

I have machine with following configuration:

Processor : Intel Xeon Quad Core 3.x 8 Cores (16 Threads)
Graphics Card: NVidea Quardro 4GB DDR3
RAM : 12GB DDR3

1.
I am converting DICOMs into Large Data Management, if I am loading DICOMs of *whole body* 2000 Dicoms. it shows artifacts and after clipped to half using ROI Manip.
it becomes clear/

What is this problem?

Is it hardware problem or Application problem?

2.

If i create more than 1 SoVolumeData nodes in the project, it starts showing artifacts?


Thanks in advance,

Aman
Reply With Quote
  #4  
Old 04-25-2010, 12:45 AM
mikeheck's Avatar
mikeheck mikeheck is online now
Moderator
 
Join Date: Sep 2008
Location: Carlsbad, CA, USA
Posts: 334
Default What kind of artifacts?

Hi Aman,

I don't know of any specific problem with either case you mentioned. But I'm also not sure what kind of "artifacts" you're seeing. Could you describe or post an image?

One kind of "artifact" you might see with a large data set like 2000 DICOM slices is incomplete refinement. As you know, when using LDM, VolumeViz starts by loading low resolution (subsampled) tiles of data, then progressively "refines" the image by loading higher resolution data until the full resolution data is displayed -- if possible. One reason it might NOT be possible to display the full resolution data for the whole volume is if the size of the data is larger than the system memory usage limit in VolumeViz. In version 8.0 and earlier, the default limit is only 256 megabytes. :-( If your DICOM slices are 512*512, then to load 2000 slices you need more than 512 megabytes.

If you are not currently setting the system memory limit, try adding this line after initializing VolumeViz:
Code:
// System memory VolumeViz is allowed to use (in MB)
SoLDMGlobalResourceParameters::setMaxMainMemory( 1000 );
You may want to look at some of the other limit settings available in this class (like texture memory). This will work better starting with version 8.1, because VolumeViz dynamically sets the default values based on the available resources.

-Mike
Reply With Quote
  #5  
Old 04-25-2010, 02:46 AM
aman.sonu aman.sonu is offline
Junior Member
 
Join Date: Nov 2008
Posts: 22
Default Artifacts

Dear Mike,

Thanks for your prompt reply.

I have set default memory 4000MB already, it still show artifacts.

when i rotate the volume, the atrifacts reduce to minimal.

Please see the attached snap shot.

Regards,
Aman
Attached Images
File Type: jpg screenshot.jpg (91.4 KB, 10 views)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:10 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright VSG, SAS, 2008.