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.
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
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
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
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();
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
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
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
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
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
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
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
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.
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
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);
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
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
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
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
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 =
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
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
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
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
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:
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
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++
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
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:
29 matches
Mail list logo