Wed, 03/08/2023 - 18:14
Hi gentlemen, I am using ToPixmap(...) to generate a nice image from a ray tracing view, but there is only one call to Redraw() in ToPixmap() so my image is 'not finished' as it requires many more passes...
I am thinking to create a new class that inherits from V3d_View and override the redraw function to redraw n times in place of one time but I am not sure it is the best solution ?
For the future OCC version maybe adding a redraw count parameter to V3d_ImageDumpOptions ?
Can you please give me some advices?
Mon, 03/13/2023 - 10:52
You may call
Redraw()on your own before making an image dump. If image dump parameters are the same as viewer parameters - you'll get accumulated PathTracing results.
Mon, 03/13/2023 - 12:00
Hi gkv and thanks for your answer. I tried but it is not working as ToPixmap() is switching to another framebuffer for offscreen rendering, this is why I thougth to a more complex way.