LWJGL
May 22, 2012, 16:31:10
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
LWJGL 2.8.3 released!
Home
Help
Search
Login
Register
LWJGL
>
Programming
>
General Java Game Development
>
How to set Display Canvas transparent?
Pages: [
1
]
« previous
next »
Print
Author
Topic: How to set Display Canvas transparent? (Read 1099 times)
GeoMaster
Newbie
Posts: 2
How to set Display Canvas transparent?
«
on:
September 30, 2011, 06:20:45 »
Hallo,
I wonder how I can set the org.lwjgl.Display´s canvas transparent. I can only set a background color (RGB) or a background image for the main window. I´ve tried a couple of things to avoid lwjgl to clear the canvas and draw a complete background but I was not able to avert it.
Does a solution exist for my need?
Thank you
Tobias
Logged
Chuck
Newbie
Posts: 42
aka sproingie on freenode
Re: How to set Display Canvas transparent?
«
Reply #1 on:
September 30, 2011, 09:36:11 »
Window transparency is something the window manager does, and isn't something you can easily control from the application. I don't think lwjgl directly supports transparent windows at all.
Logged
broumbroum
Prolific Timewaster
Posts: 285
Re: How to set Display Canvas transparent?
«
Reply #2 on:
September 30, 2011, 12:40:17 »
perhaps the directx (
http://lwjgl.org/forum/index.php/board,14.0.html
) implementation of lwjgl would solve you're problem if your on windows :
http://cboard.cprogramming.com/windows-programming/98875-transparent-window-without-using-layers.html
JDK 7 also provides native window translucency, but opengl doesn t seem to.
(EDIT : links)
(EDIT 2 : so far no news from a d3d rendering on lwjgl...)
Logged
Sf3JSwing project (Apache License) -
http://sf.net/projects/sf3jswing
Sf3jswing Project Forum -
http://apps.sourceforge.net/phpbb/sf3jswing/
(recent updates)
Mercurial Repository -
http://sf3jswing.hg.sourceforge.net/hgweb/sf3jswing/sf3jswing/summary
kappa
Administrator
Nerdus Imperius
Posts: 961
Re: How to set Display Canvas transparent?
«
Reply #3 on:
September 30, 2011, 13:28:03 »
As it stands LWJGL's native Display window doesn't support transparency. It is possible these days to create a transparent window pretty easily and draw OpenGL, especially with Aero, Compiz, etc around. Not sure how useful a feature it would be though and if it would be worth the effort. However anyone willing to give it a go should feel free to create a patch.
Logged
jediTofu
Prolific Timewaster
Posts: 280
Re: How to set Display Canvas transparent?
«
Reply #4 on:
September 30, 2011, 21:41:28 »
Right before your app displays a window, take a screenshot. Then use it as you background
This would at least work for fullscreen apps...
Logged
cool story, bro
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Programming
-----------------------------
=> Lightweight Java Library Game Development
=> LWJGL Documentation
=> Bug Reports / RFE
=> OpenGL
=> OpenAL
=> General Java Game Development
-----------------------------
Archive
-----------------------------
=> Resolved Bugs/RFE
=> DirectX
=> DevIL
=> FMOD
Loading...