Posts: 1
Joined: Thu May 17, 2018 9:43 am

JavaFX and transparency

Thu May 17, 2018 9:50 am

Hello all, I'm working on a project who involve JavaFX and Omxplayer.
On Windows, where I develop, my code works.

I set my stage to

Code: Select all

On Windows, there is no problem, I can see behind the stage my other window.
But on the Raspberry Pi with JavaFXPort (Gluon), I try the same .jar and opacity and Transparent seem to not work.

I don't use the X11, only in framebuffer.

If I start the Omxplayer before (or after) the JavaFX .jar, I can't see it.

JavaFX is in fullscreen mode on framebuffer, but on Windows it's on 800x600 (like I defined for test purposes).

This is the command I use to launch my .jar

Code: Select all

 /opt/jdk1.8.0_161/bin/java  -Djava.ext.dirs=/root/armv6hf-sdk-corrected/armv6hf-sdk/rt/lib/ext/ -Dcom.sun.javafx.experimental.embedded.3d=true -Dprism.verbose=true -Dmonocle.screen.fb=/dev/fb0 -Dprism.forceGPU=true -Dprism.order=es2,sw,j2d -Dsun.java2d.opengl=true -Xms300m -Xmx400m -jar /root/PlayerOmx.jar
And for Omxplayer, it's simple :

Code: Select all

 omxplayer --win "1920 1080 0 0" /root/movie.mp4 --loop

I already tried with

Code: Select all

Can you help me please ?

Return to “Java”