[vtkusers] problems with transient unstructured volume rendering

David E DeMarle dave.demarle at kitware.com
Tue Dec 15 15:32:37 EST 2009


To clarify, that filter is vtkTimeSourceExample.cxx. You might quickly
try it in paraview under the sources menu.

David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109



On Tue, Dec 15, 2009 at 3:30 PM, David E DeMarle
<dave.demarle at kitware.com> wrote:
> In CVS, time source produces an unstrucured grid that changes over
> time. Can you reproduce the problem with that?
>
> David E DeMarle
> Kitware, Inc.
> R&D Engineer
> 28 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-371-3971 x109
>
>
>
> On Tue, Dec 15, 2009 at 3:25 PM, Dominik Szczerba <dominik at itis.ethz.ch> wrote:
>> I am quite happy with static unstructured volume rendering.
>>
>> The problems arise when I request subsequent timesteps:
>>
>>        while time<=timeEnd:
>>                executive = reader.GetExecutive()
>>                executive.SetUpdateTimeStep(0,time)
>>                reader.Modified()
>>                window.Render()
>>
>>
>> This results in changing but wrong colors in my volume. Don't know exactly
>> what is rendered, but it is certainly different from rendering the
>> subsequent timestep from scratch. The situation is remedied with the
>> following code:
>>
>>        while time<=timeEnd:
>>                executive = reader.GetExecutive()
>>                executive.SetUpdateTimeStep(0,time)
>>                reader.Modified()
>>                renderer.RemoveVolume(volume)
>>                volume = vtkVolume()
>>                volume.SetMapper(volumeMapper)
>>                volume.SetProperty(volumeProperty)
>>                renderer.AddVolume(volume)
>>                window.Render()
>>
>> Looks like something is not reset, but my color/transfer functions are
>> static (not changing with the changing scalar ranges).
>>
>> I could just shrug and go on, but this does not look fine to me so I thought
>> I'd better ask if it is not a problem somewhere in VTK that should be
>> reported.
>>
>> Dominik
>>
>> PS. Following the great example of David D. I wanted to set up a wiki
>> example, but unfortunately I was unable to find a small (transient
>> unstructured) example dataset or an example code to generate one.
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>



More information about the vtkusers mailing list