[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vtkusers
Subject:    [vtkusers] Scaling and Volume Mapper Samples
From:       "Kevin H. Hobbs" <hobbsk () ohiou ! edu>
Date:       2008-11-26 15:36:06
Message-ID: 1227713767.3727.30.camel () gargon ! hooperlab
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


I've been having a horrible time with image volume rendering, and I
think I just figured out why.=20

I was not taking sampling distance and the opacity unit distance into
account. I've taken calculus, and differential equations. My bread and
butter is running simulations with ODEs. I should know better.

If I scale a volume and I want the volume rendering to look the same,
then I must also scale the what I set for
vtkVolumeProperty::SetScalarOpacityUnitDistance and
vtkFixedPointVolumeRayCastMapper::SetSampleDistance.

If I cut out a piece of a volume and I want the volume rendering to look
the same as it did in the whole volume, then I must leave what I set for
vtkVolumeProperty::SetScalarOpacityUnitDistance alone, and scale what I
set for vtkFixedPointVolumeRayCastMapper::SetSampleDistance.

If I don't set vtkFixedPointVolumeRayCastMapper::SetSampleDistance at
all the mapper will sometimes sample so sparsely that it will miss thin
structures or even miss most of the volume. If I want every pixel to be
represented in the volume rendering, then I have to set the sampling
distance shorter than the pixel size.

I had no trouble with volume rendering unstructured data because there's
no sample distance. The exact distance each ray takes to pass through
each intersected cell is known and color and opacity are integrated over
that distance.

["signature.asc" (application/pgp-signature)]

_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic