<br><font size=2 face="sans-serif">John,</font>
<br>
<br><font size=2 face="Calibri">That all sounds correct. Option 2
might get a little dodgy because the IceT parallel render manager does
all sorts of funny things with the renderer and render window buffers to
handle tile displays. There will also be some oddness with an actor
compositing an image that gets pasted to a framebuffer that gets composited
again.</font>
<br>
<br><font size=2 face="Calibri">I think Option 1 (or some variant of it)
would be easier to implement even if it does break encapsulation.</font>
<br>
<br>
<br><font size=2 face="sans-serif">Ken knows much more than me about the
Icet compositor and tiled display things, so there might be issues that
I am not aware of here. </font>
<br><font size=2 face="sans-serif">Pasting the image to a framebuffer that
gets composited again should not be an issue (the LIC mapper does it, even
though it does nothing about parallel composition)</font>
<br>
<br><font size=2 face="sans-serif">If you do not want to use a shader,
then you need either to use the opengl fixed pipeline (I do not know the
correction that you need to do, but that might be possible), or copy the
pixels back on your RAM, do the work on the CPU and go back to the VRAM...
I fear you will get horrible performance that way! The shaders should be
quite easy to write, the imageProcessingPass does most of the dirty work
for you (setup the framebuffer, render a quad...)<br>
<br>
Best,</font>
<br><font size=2 face="sans-serif">Stephane</font>
<br><font size=2 face="sans-serif"><br>
</font>
<table>
<tr valign=top>
<td rowspan=2><img src=cid:_1_07BA3EB407BA3AF800530B7BC1257917>
<td><font size=1 face="sans-serif"> </font>
<tr valign=top>
<td><font size=1 color=#ff8100 face="Arial"><b>Stephane PLOIX</b></font><font size=1 color=#ff8100 face="Arial"><b><br>
Chef de groupe</b></font><font size=1 color=#0062e1 face="Arial"><br>
EDF – R&D / SINETICS<br>
Réalité virtuelle et visualisation scientifique<br>
1, av du General de Gaulle<br>
92140 Clamart</font><font size=1 color=#0062e1 face="sans-serif"><br>
</font>
<br><font size=1 color=#0062e1 face="Arial"><b>stephane.ploix@edf.fr</b></font>
<br><font size=1 color=#0062e1 face="Arial">Tél. : 01 47 65 51 10</font>
<tr>
<td>
<div align=right><img src=cid:_1_07BA4D7007BA49B400530B7BC1257917></div>
<td><font size=1 color=#0062e1 face="Arial">Un geste simple pour l'environnement,
n'imprimez ce message que si vous en avez l'utilité.</font></table>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>biddisco@cscs.ch</b> </font>
<p><font size=1 face="sans-serif">26/09/2011 16:55</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">stephane.ploix@edf.fr</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">kmorel@sandia.gov, paraview@paraview.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">RE: [Paraview] non ordered composite
distributor and IceT</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=3 color=#004080 face="Calibri">Stephane</font>
<br><font size=3 color=#004080 face="Calibri"> </font>
<br><font size=3 color=#004080 face="Calibri">I like your 2. </font>
<br><font size=3 color=#004080 face="Calibri"> </font>
<br><font size=3 color=#004080 face="Calibri">As a starting point to see
how it all fits together, I decided to create a renderview cloned from
the renderviews plugin which did the RGB correction in a special render
pass. The examples use shaders to apply the ImageProcessingPass, but I
would like a standard imagefilter to accomplish it. </font>
<br><font size=3 color=#004080 face="Calibri"> </font>
<br><font size=3 color=#004080 face="Calibri">I am not forced to use a
shader am I? (I didn’t look too deeply yet, but it seems like the image
processing pass receives an FBO and from that I can access the pixels using
the imageimport and do what’s needed, but it looks a bit messy – is there
a simpler way?).</font>
<br><font size=3 color=#004080 face="Calibri"> </font>
<br><font size=3 color=#004080 face="Calibri">thanks</font>
<br><font size=3 color=#004080 face="Calibri"> </font>
<br><font size=3 color=#004080 face="Calibri">JB</font>
<br><font size=3 color=#004080 face="Calibri"> </font>
<br><font size=3 face="Tahoma"><b>From:</b> Stephane PLOIX [mailto:stephane.ploix@edf.fr]
<b><br>
Sent:</b> 26 September 2011 15:41<b><br>
To:</b> Biddiscombe, John A.<b><br>
Cc:</b> kmorel@sandia.gov; paraview@paraview.org<b><br>
Subject:</b> Re: [Paraview] non ordered composite distributor and IceT</font>
<br><font size=3 face="Times New Roman"> </font>
<br><font size=3 face="Arial"><br>
Hi John,</font><font size=3 face="Times New Roman"> <br>
</font><font size=3 face="Arial"><br>
I see two solutions to your pb : <br>
1/ you can setup special keys to tell the renderpass if a given actor should
be rendered or not by this pass. You can then branch your renderpasses
on two paths, one that does your special compositing and post-processing
on the actors that you flagged with the special key, one that does traditionnal
rendering for all other actors, and you then need to compose the 2 resulting
images.</font><font size=3 face="Times New Roman"> <br>
</font><font size=3 face="Arial"><br>
2/ You could setup an internal renderpass on your mapper that uses the
IceT compositing mechanism, apply your post-processing internally, then
render the result of this compositing on the current framebuffer.</font><font size=3 face="Times New Roman">
<br>
</font><font size=3 face="Arial"><br>
Option 2 should be better since your render effect seems to be actor-centric.<br>
Best,</font><font size=3 face="Times New Roman"> </font><font size=3 face="Arial"><br>
Stephane</font>
<p>
<table>
<tr valign=top>
<td rowspan=2><img src=cid:_1_07BA926007BA8E7800530B7BC1257917>
<td><font size=3 face="Arial"> </font><font size=3 face="Times New Roman">
</font>
<tr valign=top>
<td><font size=3 color=#ff8100 face="Arial"><b>Stephane PLOIX<br>
Chef de groupe</b></font><font size=3 color=#0062e1 face="Arial"><br>
EDF – R&D / SINETICS<br>
Réalité virtuelle et visualisation scientifique<br>
1, av du General de Gaulle<br>
92140 Clamart</font><font size=3 face="Times New Roman"><br>
</font><font size=3 color=#0062e1 face="Arial"><b><br>
stephane.ploix@edf.fr</b></font><font size=3 face="Times New Roman"> </font><font size=3 color=#0062e1 face="Arial"><br>
Tél. : 01 47 65 51 10</font><font size=3 face="Times New Roman"> </font>
<tr>
<td>
<div align=right><img src=cid:_1_07BA9D6807BA998000530B7BC1257917></div>
<td><font size=3 color=#0062e1 face="Arial">Un geste simple pour l'environnement,
n'imprimez ce message que si vous en avez l'utilité.</font></table>
<br><font size=3 face="Times New Roman"><br>
<br>
</font>
<p>
<table width=100%>
<tr valign=top>
<td width=42%><font size=3 face="Arial"><b>biddisco@cscs.ch</b> <br>
Envoyé par : paraview-bounces@paraview.org</font><font size=3 face="Times New Roman">
</font>
<p><font size=3 face="Arial">25/09/2011 22:15</font><font size=3 face="Times New Roman">
</font>
<td width=57%>
<br>
<table width=100%>
<tr valign=top>
<td width=8%>
<div align=right><font size=3 face="Arial">A</font></div>
<td width=91%><font size=3 face="Arial">kmorel@sandia.gov, paraview@paraview.org</font><font size=3 face="Times New Roman">
</font>
<tr valign=top>
<td>
<div align=right><font size=3 face="Arial">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=3 face="Arial">Objet</font></div>
<td><font size=3 face="Arial">Re: [Paraview] non ordered composite distributor
and IceT</font></table>
<br><font size=3 face="Times New Roman"> </font>
<p>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br><font size=3 face="Times New Roman"><br>
<br>
</font><font size=3 color=#004080 face="Calibri"><br>
Ken</font><font size=3 face="Times New Roman"> </font><font size=3 color=#004080 face="Calibri"><br>
</font><font size=3 face="Times New Roman"> </font><font size=3 color=#004080 face="Calibri"><br>
After looking through the sources a little more, I see that the example
plugin RenderPassViews does something similar to what I’m after. It add
a render pass at the end which applies an edge detection algorithm, This
happens after compositing – which is what I need.</font><font size=3 face="Times New Roman">
</font><font size=3 color=#004080 face="Calibri"><br>
</font><font size=3 face="Times New Roman"> </font><font size=3 color=#004080 face="Calibri"><br>
However, this renderpass applies to all mappers/actors in the renderer/view,
so if I used this strategy, then my post processing RGB correction from
the mapper+compositing would happen to all actors, and this is no good.</font><font size=3 face="Times New Roman">
</font><font size=3 color=#004080 face="Calibri"><br>
</font><font size=3 face="Times New Roman"> </font><font size=3 color=#004080 face="Calibri"><br>
So it looks like what I want to do won’t be possible, because there’d
be no way to composite one actor individually and then blend with the others
later.</font><font size=3 face="Times New Roman"> </font><font size=3 color=#004080 face="Calibri"><br>
</font><font size=3 face="Times New Roman"> </font><font size=3 color=#004080 face="Calibri"><br>
Since you don’t know what it is I’m trying to do, it is probably unclear,
but in short, the mapper renders the data on each process, and after all
RGB images are summed in the compositing phase a correction must be applied
to the RGB values (but its not commutative, so can’t be applied on each
process individually). (unless I modify the algorithm which might be possible,
I’ll check on this)</font><font size=3 face="Times New Roman"> </font><font size=3 color=#004080 face="Calibri"><br>
</font><font size=3 face="Times New Roman"> </font><font size=3 color=#004080 face="Calibri"><br>
One approach might be to add a separate pass which renders only the special
geometry, but I suspect this will be too hard because the blending phases
would all need to be tweaked so that the compositing happened twice (?)
– once for the special stuff, once for everything else.</font><font size=3 face="Times New Roman">
</font><font size=3 color=#004080 face="Calibri"><br>
</font><font size=3 face="Times New Roman"> </font><font size=3 color=#004080 face="Calibri"><br>
Can you tell if I’ve I understood things properly from my suppositions
above, and if so, any other tips I might look into before I consider algorithmic
changes.</font><font size=3 face="Times New Roman"> </font><font size=3 color=#004080 face="Calibri"><br>
</font><font size=3 face="Times New Roman"> </font><font size=3 color=#004080 face="Calibri"><br>
Thanks</font><font size=3 face="Times New Roman"> </font><font size=3 color=#004080 face="Calibri"><br>
</font><font size=3 face="Times New Roman"> </font><font size=3 color=#004080 face="Calibri"><br>
JB</font><font size=3 face="Times New Roman"> </font><font size=3 color=#004080 face="Calibri"><br>
</font><font size=3 face="Times New Roman"> </font><font size=3 color=#004080 face="Calibri"><br>
</font><font size=3 face="Times New Roman"> </font><font size=3 color=#004080 face="Calibri"><br>
</font><font size=3 face="Times New Roman"> </font><font size=3 face="Tahoma"><b><br>
From:</b> Moreland, Kenneth [mailto:kmorel@sandia.gov] <b><br>
Sent:</b> 21 September 2011 22:30<b><br>
To:</b> Biddiscombe, John A.; paraview@paraview.org<b><br>
Subject:</b> Re: [Paraview] non ordered composite distributor and IceT</font><font size=3 face="Times New Roman">
</font><font size=3 face="Calibri"><br>
</font><font size=3 face="Times New Roman"> </font><font size=3 face="Calibri"><br>
John,</font><font size=3 face="Times New Roman"> </font><font size=3 face="Calibri"><br>
</font><font size=3 face="Times New Roman"> </font><font size=3 face="Calibri"><br>
If you look more closely, you should see that the data is only distributed
when transparency is on. If everything is opaque, then everything
stays where it is. If I remember correctly, there is a flag in vtkOrderedCompositeDistributor
that turns it to a pass-through filter. It's implemented like this
because it's more convenient than changing around the internal pipeline.
If you never have to do ordered compositing, you could just remove
this filter. Likewise, you can set the parallel render manager to
do non-ordered compositing and just forget about the parallel k-d tree.</font><font size=3 face="Times New Roman">
</font><font size=3 face="Calibri"><br>
</font><font size=3 face="Times New Roman"> </font><font size=3 face="Calibri"><br>
-Ken</font><font size=3 face="Times New Roman"> </font><font size=3 face="Calibri"><br>
</font><font size=3 face="Times New Roman"> </font><font size=3 face="Calibri"><b><br>
From: </b>"Biddiscombe, John A." <</font><a href=mailto:biddisco@cscs.ch><font size=3 color=blue face="Calibri"><u>biddisco@cscs.ch</u></font></a><font size=3 face="Calibri">><b><br>
Date: </b>Wed, 21 Sep 2011 19:55:19 +0000<b><br>
To: </b>"</font><a href=mailto:paraview@paraview.org><font size=3 color=blue face="Calibri"><u>paraview@paraview.org</u></font></a><font size=3 face="Calibri">"
<</font><a href=mailto:paraview@paraview.org><font size=3 color=blue face="Calibri"><u>paraview@paraview.org</u></font></a><font size=3 face="Calibri">><b><br>
Subject: </b>[Paraview] non ordered composite distributor and IceT</font><font size=3 face="Times New Roman">
</font><font size=3 face="Calibri"><br>
</font><font size=3 face="Times New Roman"> </font><font size=3 face="Calibri"><br>
</font><font size=3 face="Times New Roman"> </font><font size=3 face="Calibri"><br>
Can anyone point me to an example of a representarion which interacts with
IceT in any n on standard way. Geometry and UGVolume Representations use
a vtkOrderedCompositeDistributor and then IceT takes over.</font><font size=3 face="Times New Roman">
</font><font size=3 face="Calibri"><br>
</font><font size=3 face="Times New Roman"> </font><font size=3 face="Calibri"><br>
I’d like toe skip the vtkOrderedCompositeDistributor (which is ok), but
I’m not sure how to interact with IceT and see how it doe the image summation
etc.</font><font size=3 face="Times New Roman"> </font><font size=3 face="Calibri"><br>
</font><font size=3 face="Times New Roman"> </font><font size=3 face="Calibri"><br>
Are there any odd representations out there I can use as examples?</font><font size=3 face="Times New Roman">
</font><font size=3 face="Calibri"><br>
</font><font size=3 face="Times New Roman"> </font><font size=3 face="Calibri"><br>
Thanks</font><font size=3 face="Times New Roman"> </font><font size=3 face="Calibri"><br>
</font><font size=3 face="Times New Roman"> </font><font size=3 face="Calibri"><br>
JB</font><font size=3 face="Times New Roman"> </font><font size=3 face="Calibri"><br>
</font><font size=3 face="Times New Roman"> </font><font size=3 face="Courier New"><br>
-- <br>
John Biddiscombe,
email:biddisco @ cscs.ch</font><font size=3 face="Times New Roman">
</font><font size=3 color=blue face="Times New Roman"><u><br>
</u></font><a href=http://www.cscs.ch/><font size=3 color=blue face="Courier New"><u>http://www.cscs.ch/</u></font></a><font size=3 face="Times New Roman">
</font><font size=3 face="Courier New"><br>
CSCS, Swiss National Supercomputing Centre | Tel: +41 (91)
610.82.07</font><font size=3 face="Times New Roman"> </font><font size=3 face="Courier New"><br>
Via Cantonale, 6928 Manno, Switzerland | Fax: +41
(91) 610.82.82</font><font size=3 face="Times New Roman"> </font><font size=3 face="Calibri"><br>
</font><font size=3 face="Times New Roman"> </font><font size=3 face="Calibri"><br>
_______________________________________________ Powered by www.kitware.com
Visit other Kitware open-source projects at </font><a href=http://www.kitware.com/opensource/opensource.html><font size=3 color=blue face="Calibri"><u>http://www.kitware.com/opensource/opensource.html</u></font></a><font size=3 face="Calibri">
Please keep messages on-topic and check the ParaView Wiki at: </font><a href=http://paraview.org/Wiki/ParaView><font size=3 color=blue face="Calibri"><u>http://paraview.org/Wiki/ParaView</u></font></a><font size=3 face="Calibri">
Follow this link to subscribe/unsubscribe: </font><a href=http://www.paraview.org/mailman/listinfo/paraview><font size=3 color=blue face="Calibri"><u>http://www.paraview.org/mailman/listinfo/paraview</u></font></a><font size=3 face="Calibri">
</font><font size=3 face="Courier New">_______________________________________________<br>
Powered by www.kitware.com<br>
<br>
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView<br>
<br>
Follow this link to subscribe/unsubscribe:<br>
http://www.paraview.org/mailman/listinfo/paraview</font><font size=3 face="Times New Roman"><br>
</font><font size=3 face="Courier New"><br>
<br>
<br>
<br>
Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis
à l'intention exclusive des destinataires et les informations qui y figurent
sont strictement confidentielles. Toute utilisation de ce Message non conforme
à sa destination, toute diffusion ou toute publication totale ou partielle,
est interdite sauf autorisation expresse.<br>
<br>
Si vous n'êtes pas le destinataire de ce Message, il vous est interdit
de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout
ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer
de votre système, ainsi que toutes ses copies, et de n'en garder aucune
trace sur quelque support que ce soit. Nous vous remercions également d'en
avertir immédiatement l'expéditeur par retour du message.<br>
<br>
Il est impossible de garantir que les communications par messagerie électronique
arrivent en temps utile, sont sécurisées ou dénuées de toute erreur ou
virus.<br>
____________________________________________________<br>
<br>
This message and any attachments (the 'Message') are intended solely for
the addressees. The information contained in this Message is confidential.
Any use of information contained in this Message not in accord with its
purpose, any dissemination or disclosure, either whole or partial, is prohibited
except formal approval.<br>
<br>
If you are not the addressee, you may not copy, forward, disclose or use
any part of it. If you have received this message in error, please delete
it and all copies from your system and notify the sender immediately by
return message.<br>
<br>
E-mail communication cannot be guaranteed to be timely secure, error or
virus-free.</font>
<br>
<font face="monospace"><br>
<br>
<br>
Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme à sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse.<br>
<br>
Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de votre système, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions également d'en avertir immédiatement l'expéditeur par retour du message.<br>
<br>
Il est impossible de garantir que les communications par messagerie électronique arrivent en temps utile, sont sécurisées ou dénuées de toute erreur ou virus.<br>
____________________________________________________<br>
<br>
This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval.<br>
<br>
If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message.<br>
<br>
E-mail communication cannot be guaranteed to be timely secure, error or virus-free.</font>