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

List:       vtkusers
Subject:    [vtkusers] depth peeling and screenshots
From:       David Feng <dfeng () cs ! unc ! edu>
Date:       2007-03-29 12:36:52
Message-ID: 460BB2E4.8030504 () cs ! unc ! edu
[Download RAW message or body]

I'm noticing some odd behavior when I try to use vtkWindowToImageFilter 
to save a screenshot when depth peeling is enabled on my renderer.  
Here's the code:

mFilter->SetInputConnection(mRenWin->GetOutputPort());
mFilter->Modified();

mWriter->SetFileName(str);
mWriter->Write();

...nothing complicated.  All subsequent calls to Render() seem to render 
each depth peel in z order on the screen (for maybe .3 sec each) and 
then finally render the composited image.  If I take another screenshot 
after that, the output image file is fine, but it again exhibits that 
strange rendering behavior.  It's almost as if each depth peel is 
getting written to the file individually before the final composited 
image is written.  I'm trying to save an animation with hundreds of 
frames, so what should be taking a minute or two is actually taking 20-30. 

Any ideas?

Thanks,
David


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

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