[vtkusers] Merging Different set of Volumes data...
Kevin Tiow Wee TAN
twtan at cheerful.com
Wed Nov 13 07:01:55 EST 2002
Hi Lisa,
How are you?
Thanks for your great information... Yeap!!! The sorter for the culler
was NOT turn on... Once I set the culler to back-to-front sorting style
on, it works perfectly well... Now I can have any ealier loaded volumes
turning around as expected...
Just in case, anyone need to look at the sample code how to do so, I
attached the followig simple code (based on Java):
vtkRenderer ren1 = new vtkRenderer();
ren1.SetBackground(0,0,0);
((vtkFrustumCoverageCuller)ren1.GetCullers().GetLastItem()).SetSortingStyleBackToFront();
The above way works, but I would always appreciate if anyone can reply
with a better and efficient way...
Thanks again for anyone who helped and contribute any useful advice upon
this problem...
"Lisa S. Avila" wrote:
>
> Hello Kevin,
>
> Your problem is that VTK does not depth sort props by default. You need to
> get the culler from the renderer and turn the back-to-front sorting on.
> This is the same problem you would have with any set of translucent props
> (geometric or volumetric).
>
> Lisa
>
> At 09:03 AM 11/8/2002, Kevin Tiow Wee TAN wrote:
> >Hi,
> >How are you?
> >
> >I had about 5 set of volumes data to be merged into one single Renderer
> >Window. Each set volumes are merge in the different of x,y and z
> >position.
> >
> >I used Renderer.AddVolume method to add each set of them individually at
> >different time into the same renderer. By using Reader.SetTransform
> >method to move those set of volume to specific position.
> >
> >The reason of using AddVolume method is each individual volume will have
> >different set of RGB/Opacity transfer values.
> >
> >The problem is I found that, when I turn the volumes around, the volume
> >that I added LATER always seems to stand in front of the volume I added
> >ealier. Even I turn the Interactor 180 degree, the later added volume
> >still seems to stand in front, rather move behind...
> >
> >Any idea why??? If you have any other better method to load 5 set of
> >volumes at different time rather than using 5 times of AddVolume method,
> >please do also advice me...
> >
> >--
> >Thanks
> >Kevin
> >**********************************
> >Manchester Material Science Centre
> >University of Manchester
> >----------------------------------
> >Centre for Virtual Environments
> >University of Salford
> >**********************************
> >_______________________________________________
> >This is the private VTK discussion list.
> >Please keep messages on-topic. Check the FAQ at:
> ><http://public.kitware.com/cgi-bin/vtkfaq>
> >Follow this link to subscribe/unsubscribe:
> >http://public.kitware.com/mailman/listinfo/vtkusers
--
Thanks
Kevin
**********************************
Manchester Material Science Centre
University of Manchester
----------------------------------
Centre for Virtual Environments
University of Salford
**********************************
More information about the vtkusers
mailing list