<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hello everyone,<br>
<br>
I succeeded in integrating transparent windows as well on Windows
platform than on Linux X11. The only problem remaining is that I
wanted to be able to modify the transparency color in a coherent
way with the clearColor of the main camera. Is there a way to
access the window handler during the (pre)render stage ? I don't
want to integrate some platform specific code to the render stage
code, but maybe there is a way to register a call to a method of
osgViewer::GraphicsWindow implementation ?<br>
Once I've treated this problem I will propose it on the submission
list with a complete example for Linux and Windows.<br>
<br>
Thanks for your help,<br>
<br>
Christian<br>
<br>
Le 29/07/2015 11:05, Christian Schulte a écrit :<br>
</div>
<blockquote cite="mid:55B89756.7030303@onera.fr" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
Hello everyone,<br>
<br>
I'm currently integrating in osgViewer the transparency an I'm
looking for some advices.<br>
I started with the code published by Chris Hidden on the mailing
list, and modified it a little bit in order to be able to choose
between color transparency (LWA_COLORKEY), or alpha transparency
(LWA_ALPHA) or both. The probleme is that it is, for the moment,
done during the window creation. What I wanted is to be able to
adapt the LWA_COLORKEY whenever the user wants, same for
LWA_ALPHA. My questions to the community :<br>
<ol>
<li>Where would be the right place to make these changes (as I
need to be able to recover the window handle) ?</li>
<li>Do you think that it could be interesting to be able to
switch from transparent to non transparent during execution ?</li>
<li>Should the color, alpha and activation boolean be added to
the traits and be modified through GraphicsWindow class ?</li>
<li>Has someone already implemented the transparency for another
OS / Windowing System, and if yes could we try to unify the
way it is done ?</li>
</ol>
<p>Sorry for all these questions, but as it is my first
contribution try, I want to be sure to make no mistake !<br>
</p>
<p>Cheers,<br>
</p>
<p>Christian<br>
</p>
<pre class="moz-signature" cols="72">--
SCHULTE Christian
Ingénieur Recherche
Responsable du Laboratoire de Simulation
ONERA - DCSD/PSEV
Département Commande des Systèmes et Dynamique du Vol
ONERA - Centre de Salon de Provence
BA 701
13661 SALON AIR Cedex - France
Tel :04.90.17.01.45</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
osg-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
SCHULTE Christian
Ingénieur Recherche
Responsable du Laboratoire de Simulation
ONERA - DCSD/PSEV
Département Commande des Systèmes et Dynamique du Vol
ONERA - Centre de Salon de Provence
BA 701
13661 SALON AIR Cedex - France
Tel :04.90.17.01.45</pre>
</body>
</html>