Re: [osg-users] Transparent Window Application for Windows and more OS

2015-08-27 Thread Christian Schulte
Hello everyone, 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.

[osg-users] Transparent Window Application for Windows and more OS

2015-07-29 Thread Christian Schulte
Hello everyone, I'm currently integrating in osgViewer the transparency an I'm looking for some advices. 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

Re: [osg-users] Transparent Window Application [SOLVED]

2014-12-15 Thread Roy Arents
Hi Sergey, I've changed my profile setting. Thanks for you pointers,'I'll look into them and post the solution soon Thank you! Cheers, Roy -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=62060#62060

Re: [osg-users] Transparent Window Application [SOLVED]

2014-12-14 Thread Roy Arents
Hi, I've found another example which allows drawing over directx: http://www.codeforfun.it/2012/08/30/directx-hooking-with-a-proxy-dll/ This one works for splash screen and menu's as well. Now the second step seems more difficult as I expected... How to add osg on top of it. There are quite a

Re: [osg-users] Transparent Window Application [SOLVED]

2014-12-14 Thread Sergey Kurdakov
Hi Roy, I think the next step is just to run osg with simple dx app. I think that osg can be combined with dx via *GraphicsWindowEmbedded* and https://sites.google.com/site/snippetsanddriblits/OpenglDxInterop so - that osg renders inside pair dxRenderer-BeginGlDraw(); dxRenderer-EndGlDraw();

Re: [osg-users] Transparent Window Application [SOLVED]

2014-12-14 Thread Sergey Kurdakov
Hi Roy, as you use forum I do not see your email address ( otherwise I would likely send personal message ) but anyway, might be that someone else will benefit of such discussion in future in similar situation. one quite unusual, but useful example for your purposes was discussed in discussion

Re: [osg-users] Transparent Window Application [SOLVED]

2014-12-10 Thread Roy Arents
Hi Sergey, Thank you very much. I've used the following link to succesfully draw over a directX window: http://graphics.stanford.edu/~mdfisher/D3D9Interceptor.html It's working quit well. I have one problem left that concerns the spash screen and game menu. When using the method described in

Re: [osg-users] Transparent Window Application [SOLVED]

2014-12-04 Thread Roy Arents
Hi Sergey, Thanks for your help. I'll try to use them and hopefully post a solution soon. Thanks! Roy -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=61981#61981 ___ osg-users mailing list

Re: [osg-users] Transparent Window Application [SOLVED]

2014-12-04 Thread Sergey Kurdakov
Hi Roy, I also found, that not only hooks might work see http://graphics.stanford.edu/~mdfisher/D3D9Interceptor.html and http://www.codeguru.com/cpp/g-m/directx/directx8/article.php/c11453/Intercept-Calls-to-DirectX-with-a-Proxy-DLL.htm for old dx9 games (possibly there are similar dx10/11

Re: [osg-users] Transparent Window Application [SOLVED]

2014-12-03 Thread Roy Arents
Hi, Great to see that you got around the transparent mouse clicks as well. I just needed it yesterday and again your method works great. Unfortunatly I have another problem though... I would like to place this application on top of another full-screen windows (game). I didn't think of it

Re: [osg-users] Transparent Window Application [SOLVED]

2014-12-03 Thread Sergey Kurdakov
Hi Roy, if you game runs full screen and cannot do anything else even with 'full screen emulation' ( such that you render game full screen but in windowed mode ) the answer might be - an old trick to use hooks to write overlays for games ( search on the web - the trick is used in number of

Re: [osg-users] Transparent Window Application

2014-11-12 Thread Chris Hidden
Just wanted to update this thread and provide information on how I achieved what I was looking for. We managed to make a transparent application that you can click through with OSG. This means that you can display models on the screen and have them move around with regards to input and at

Re: [osg-users] Transparent Window Application

2014-11-12 Thread Christian Buchner
You know what would be great? If you submitted a very basic example of this to the osg-submissions mailing list, for inclusion in the osg examples directory. Even if it is a Windows-only example, this might be helpful for a lot of folks. Maybe someone else could extend it to work on Linux too.

Re: [osg-users] Transparent Window Application [SOLVED]

2014-11-12 Thread Chris Hidden
cbuchner1 wrote: You know what would be great? If you submitted a very basic example of this to the osg-submissions mailing list, for inclusion in the osg examples directory. Even if it is a Windows-only example, this might be helpful for a lot of folks. Maybe someone else could extend it

Re: [osg-users] Transparent Window Application

2014-10-21 Thread Chris Hidden
Have been meaning to respond to you about this for a while now Sergey but we've been so busy. Managed to get the window click through-able in another way. We set the window to a layered window and using this line: Code: SetLayeredWindowAttributes(_hwnd, RGB(0, 0, 0), 0, LWA_COLORKEY);

Re: [osg-users] Transparent Window Application

2014-10-20 Thread Roy Arents
Hi Sergey, Thanks you very much. It's working great with the code you shared. For now, I do not need the transparent clicks, but thanks for the heads up. Kind reagrds, Roy -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=61340#61340

Re: [osg-users] Transparent Window Application

2014-10-17 Thread Roy Arents
Hi Chris Erghis, Thank you for explaining your solution. I'm trying to achieve something similar, but cannot get it work just yet. Is it possible to share you source completely? Did you manage to work out the FBO? If not, I sould be albe to help you with that. Thank you! Cheers, Roy

Re: [osg-users] Transparent Window Application

2014-08-22 Thread Chris Hidden
Ok, with your pushes in the right direction I have finally managed to get this working! :D. Its not very performance friendly but that I can optimize later. Ill break it down so that people who are looking to do somethings similar can see what I did and suggest betters ways of doing it if

Re: [osg-users] Transparent Window Application

2014-08-22 Thread Sergey Kurdakov
Hi Chris, I think that the use of FBO in place of pbuffer, and use of async read pixels see my message https://www.mail-archive.com/osg-users@lists.openscenegraph.org/msg50831.html could improve speed a bit in your case. Regards Sergey On Fri, Aug 22, 2014 at 11:55 AM, Chris Hidden

Re: [osg-users] Transparent Window Application

2014-08-21 Thread Chris Hidden
Yes! Ok, I read that forum and it gave me a better idea of how I might do this. To account for transparency though I need to get the current pbuffer and put it into a local byte array. Something like Code: static BYTE pixels[width * height * 4] = {0}; unsigned char* ptr =

Re: [osg-users] Transparent Window Application

2014-08-21 Thread Sergey Kurdakov
Hi Chris, for read pixels there are examples http://trac.openscenegraph.org/projects/osg//browser/OpenSceneGraph/trunk/examples/osgscreencapture/osgscreencapture.cpp https://code.google.com/p/osgworks/source/browse/trunk/src/osgwTools/ScreenCapture.cpp Regards Sergey On Thu, Aug 21, 2014

Re: [osg-users] Transparent Window Application

2014-08-19 Thread Chris Hidden
Anyone have any ideas? This is what Im working on so far. I have used the exmaple linked in the above post. I create a layered window: Code: int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { DetectMemoryLeaks(); MSG

Re: [osg-users] Transparent Window Application

2014-08-19 Thread Sergey Kurdakov
Hi Chris, I did not followed your code, sorry, but reading the question I realized that what you need is a silent renderer see discussion here http://forum.openscenegraph.org/viewtopic.php?t=7202 just read all the discussion on three forum pages. then taking rendered images - you can put them

[osg-users] Transparent Window Application

2014-08-18 Thread Chris Hidden
Hello again everyone! I am currently developing an application with a company and we have a challenge. We want our application to run over top of any other application. So in windows our app is basically several graphical elements that will react to input from sensors. So to start with I

Re: [osg-users] Transparent window

2010-07-21 Thread Anthony Face
Hi, this is a realy fun function :D can you post a simple code exemple? do you tried it on windows XP / VISTA (joke) / Linux ? (http://www.hordes.fr?ref=litllechicken) -- Read this topic online here:

Re: [osg-users] Transparent window

2010-07-21 Thread Josh Jacob
Hey, I was just wondering exactly how you called DWM to disable Decorations/ thanks, Josha -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=30145#30145 ___ osg-users mailing list

Re: [osg-users] Transparent window

2010-02-11 Thread Serge Lages
Thank you very much Farshid, I'll try it as soon as I can, but it looks definitely cool ! :) On Thu, Feb 11, 2010 at 8:30 AM, Torben Dannhauer z...@saguaro-fight-club.de wrote: Hi, That looks cool! Where do I call the DwmEnableBlurBehindWindow function? Is this in OSg or just a c++

[osg-users] Transparent window

2010-02-10 Thread Serge Lages
Hi all, Anyone knows if it's possible to have a transparent OpenGL application window ? Let's say I set my main camera's clear color to (1, 1, 1, 0.5), the idea would be to be able to see my desktop for example behing my application window. I would like to do it with Windows 7, any idiea if it's

Re: [osg-users] Transparent window

2010-02-10 Thread Torben Dannhauer
Hi, That looks cool! Where do I call the DwmEnableBlurBehindWindow function? Is this in OSg or just a c++ Windows API call? How many bits are requiered to set for alphachannel? Thank you! Cheers, Torben -- Read this topic online here: