| Author |
Message |
GMartin
Joined: Feb 5, 2010 Posts: 308
|
Posted: Mar 15, 2013 8:36 PM Post subject: Transparency |
|
Jarek,
Is there a way to create a transparent layer over a display where the level of transparency could be change based on feedback? This way a display such as a flash game could be dimmed if thresholds are not met. On a similar note is there any chance that a brightness control could be added to the flash player?
Thanks
George |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Mar 15, 2013 9:31 PM Post subject: |
|
There is ChartTransparency which does exactly that. And it works with any chart, including FlashPlayer.
Please note though - it has been very little tested. It works in my snippet, but may need an improvement.
Jarek
|
|
 |
GMartin
Joined: Feb 5, 2010 Posts: 308
|
Posted: Mar 15, 2013 9:37 PM Post subject: Transparency |
|
Jarek,
Thanks. I remember now that is available in the newer version. I did test it out. It seemed to work will over a chart that had no movement in, Over a video player it showed the edges of the chart when transparent but did show any of the video.
Could you post a link to the snippet you created so I can play around with it?
Thanks
George |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Mar 15, 2013 10:35 PM Post subject: |
|
Here is a simple snippet which adds transparency for VideoFilePlayer. You can use Slider to change the transparency level dynamically, while the video plays. The same should be with FlashPlayer or any other chart.
There is one limitation of the ChartTransparency: it can't pass through the mouse events. So if the flash movie requires a mouse interaction (e.g. to start it), it won't work. It will work fine when the flash movie is controlled entirely from BioEra (using FlashPlayer inputs).
http://proatech.com/design/chart_transparency_snippet.bpd |
|
 |
GMartin
Joined: Feb 5, 2010 Posts: 308
|
Posted: Mar 19, 2013 12:15 AM Post subject: Transparency |
|
Jarek,
thanks for the snippet. It made it clear that I was connecting things in correctly. One issue came up. At the top of the video the transparency flickered when the red background was becoming clearer. Just the top part. this happened on Flash games and DVD as well. Any suggestions? I always wonder if it is my low powered video system when I have issues like thisl Mobile Intel 965 chip set 348Mb shared memory. I have 2Gb of ram.
|
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Mar 19, 2013 12:31 AM Post subject: |
|
I didn't see any flickering when I tested that snippet on 2 computers (one with Windows 7, other Windows 8), even when I resized the video to the full screen size. So it may be your computer. But other reasons are also possible, this is an experimental option, and I don't think it was used by anyone on a regular basis.
|
|
 |
GMartin
Joined: Feb 5, 2010 Posts: 308
|
Posted: Mar 19, 2013 12:42 AM Post subject: |
|
Jarek,
The flickering is worst if I use the slider. If I simply click on a position along the slider axis it works more reliably although there is still the occasional problem.
One of the flash games I is requires a mouse click on a button to get the game started after that the keyboard is used. I can not get a mouse click to work on the flash player. Can I emulate a mouse click over that button in some way?
The game works well if I use the application player but there appears to be no way to control the transparency with that element
Thanks
George
|
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Mar 20, 2013 5:12 AM Post subject: |
|
As of version 3.026, the ChartTransparency should now pass mouse clicks to FlashPlayer.
|
|